0

I have an slider in home page and this slider show 5 product in every line
everything all right but, when a user's page is small the number of products decreases and the slide starts to move.

How can I disable the slider only in the homepage only ?

0

There are many ways to do that, it depends how your block is integrated

Solution1

  1. Check if your slider has some admin configuration, maybe you can set that to display it just for the home page

  2. Check your the slider xml and find this block slider, maybe it is displayed in all pages so you can remove it from your homepage in local.xml like this:

    app/design/frontend/{package}/{theme}/layout/local.xml

    <cms_index_index>
        <remove name="block.slider.name" />
    </cms_index_index> 
    

Solution2

  1. Enable the path hints to find the phtml who diplays this slider
  2. Add the piece of code bellow

        <?php if(!$this->getIsHomePage()) : ?>
           //your slider code here...
        <?php endif; ?>
    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.