-
Dear Jscheuer1,
Thank you for your reply Jscheuer1. :)
I did the things same as you have written and yes also put that script at the end of page.
But still it is not working. At the time of starting this thread (means starting from the first post) I put the following thing (that is commented now & applied your suggestion that is jQuery('li.cat-item-8').trigger('click'); ) :- :)
Code:
<?php
if($_POST['page']!='') // this means logo design. I am getting no problem with that
{
?>
<script>
/*function lightboxPhoto123() {
jQuery("a[rel^='prettyPhoto']").prettyPhoto({
animationSpeed:'fast',
slideshow:5000,
theme:'facebook',
show_title:false,
overlay_gallery: true
});
}*/
jQuery('li.cat-item-8').trigger('click');
</script>
<script type="text/javascript">
/*var s = jQuery.noConflict();
// Clone applications to get a second collection
var $data123 = s(".portfolio-area").clone();
s(".filter li").removeClass("active");
// Use the last category class as the category to filter by. This means that multiple categories are not supported (yet)
//var filterClass=$(this).attr('class').split(' ').slice(-1)[0];
var filterClass123 = "cat-item-8";
if (filterClass123 == 'all') {
var $filteredData123 = $data123.find('.portfolio-item2');
} else {
var $filteredData123 = $data123.find('.portfolio-item2[data-type=' + filterClass123 + ']');
}
//alert($filteredData);
s(".portfolio-area").quicksand($filteredData123, {
duration: 600,
adjustHeight: 'auto'
}, function () {lightboxPhoto123();});
s(this).addClass("active");
*/
</script>
<?php
}
?>
You can see script.js for why I put that code which is commented now.
I think that will help.
Thanks
Kaushal
-
This:
Code:
jQuery('li.cat-item-8').trigger('click');
should be:
Code:
jQuery(window).load(function(){
jQuery('li.cat-item-8').trigger('click');
});
-
My God..........Jscheuer1 you are simply the superb, man.
Thank you...........Thank you very very much :)
It is working fine now. :)
Thanks
Kaushal