WordPress.org

Ready to get started?Download WordPress

Forums

Atlantica Theme, Disabled Gallery on Home Page, yet jCarousel Coming Up (2 posts)

  1. thewhitelantern
    Member
    Posted 2 years ago #

    Okay, I don't know what the heck I'm doing, so far....

    I'm using Atlantica theme, for a client, which is using the jCarousel program. First time doing a WordPress blog. Everything going fine until I disabled the gallery on the WordPress-Native Home Page using this javascript code

    <script type="text/javascript">
    $(document).ready(function()	{
     $('.gallery').css('display','none');
    });
    </script>

    Now, every time the home page comes up, this error message comes up every few seconds.

    jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..

    Now the above script is about the extent of my jQuery knowledge. I need to keep jCarousel from calling up the non-existent "mycarousel" element, and I need to ONLY do it on the home page (and a couple other pages would be nice too, like the new "blog" page).

    Whether it's jQuery or PHP, I don't care, I just want to be able to resolve this so I can FINALLY implement the transfer and be done with this.

  2. jimmerd
    Member
    Posted 2 years ago #

    So in the header.php, did you remove/modify the following:

    <div class="gallery">
    <ul id="mycarousel" class="jcarousel-skin-atlantica">
    
    <? $lrgslider = get_page_by_title('lrg-slider');
    echo apply_filters('the_content', $lrgslider->post_content); ?>
    
    </ul></div>

    Removing the UL and all within it should delete the gallery from the homepage and not call any javascript.

    Is there a link where we can see what you've got?

Topic Closed

This topic has been closed to new replies.

About this Topic