Carousel, is it possible only in frontpage?

Featured Theme Forums Bootville Lite Carousel, is it possible only in frontpage?

This topic contains 2 replies, has 2 voices, and was last updated by  erimvelik 2 weeks, 5 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18081

    erimvelik
    Participant

    Dear Zeak, I started to use Bootville Lite today and it’s great! I like it very much.
    I also installed Carousel slider plugin, and I am totally satisfied.

    But there is one thing I need to understand; after I installed Carousel; i see carousel slider on all pages. But I want to see carousel only on my front page. Is this possible?

    Thank you so much!
    Erim Velik.

    #18082

    zeaks
    Keymaster

    Hi Erim, this is possible. You can edit header.php directly buy you should do this by creating a child theme https://codex.wordpress.org/Child_Themes

    Open header.php and find this line

    			<!-- Show cpt-bootstrap-carouselplugin if active, show header image if it's not -->
    			<?php if (function_exists('cptbc_columns_head') ) { ?>

    You will need to add a conditional to the if statement that checks if it is the front page being viewed, if it is then show the slider, if not then don’t show it.

    Change those lines to this.

    			<!-- Show cpt-bootstrap-carouselplugin if active, show header image if it's not -->
    			<?php if (function_exists('cptbc_columns_head') && is_front_page() ) { ?>

    If you want the header to show on other pages then it will need to be modified but I can help with that too.

    Here is a pastebin link to the entire header code with the changes already added.
    http://pastebin.com/8d4Bi8v0

    #18083

    erimvelik
    Participant

    Great! That was exactly what I was looking for!
    Thank you so much.

    Respect,
    Erim Velik.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.