Can I remove the slide bar only on the Home page?

Good morning.
I’d like to remove the slider box (on the top of my site), where there are my recently blog posts only on the Home page? Is it possible?
Thank you so much if you can help me.
Best regards
Patrizia

Hello Patrizia,

Thanks for writing in! The post carousel is active in all pages by default. To get rid of it in your homepage, we must need to use a custom css. Please add the following CSS code in the X > Theme Options > Global CSS (http://prntscr.com/evui3r)

.home .x-post-carousel {
    display: none;
}

We would loved to know if this has work for you. Thank you.

1 Like

Thank you so much! It works perfectly!
:slightly_smiling_face:
Patrizia

And if I want to remove the Carousel also on another page, for istance on the page “chi-sono”, have I to do the same thing but writing .chi-sono instead of .home?
I have tryed with another page, but it seams that it works only with the home page.
Where am I doing something wrong?
Thank you

Hey Patrizia,

If you want to get rid of the post carousel in other pages, you use the following class as a replacement of the .home:

  • .page - for all pages
  • .single-post - for all single blog post
  • .archive - for all archive pages
  • .author - for all author pages
  • .page-id-123 where 123 is the page ID. This is useful if you want to disable the post carousel on a specific page. To find out the page ID, please check this out: https://theme.co/apex/forum/t/setup-how-to-locate-post-ids/59

Hope this helps.

THANK YOUUU. I have found it right now! :slight_smile:
Thank you so much. With the page-id everything works well.
Best regards.
Patrizia

You are most welcome Patrizia!
Happy Holidays.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.