• Resolved GMLGeek

    (@gmlgeek)


    Hello,

    I’m loving this theme, but I really need to remove the jumbotron from all the pages except the home page. I’m using a child theme, so is there a way to do it?

    Any help is appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter GMLGeek

    (@gmlgeek)

    I guess I should point out that my child theme uses a static home page…

    What a waste. Such a great theme… about 5-6 questions and no responses… bye bye :{

    Thread Starter GMLGeek

    (@gmlgeek)

    Yeah, I’ve moved on also. Seems the developer is a machine, turning out products but not supporting them. I’ll not use anything else by c. bavota!

    Hi,
    to anyone having the same issue, I’ve solved like this:

    in header.php of my child theme where it says:

    bavotasan_jumbotron();
    bavotasan_home_page_default_widgets();

    I changed to:

    <?php if ( is_front_page() ) {
    bavotasan_jumbotron();
    bavotasan_home_page_default_widgets();
    } ?>

    Thanks! That works great!

    Is there a way to add it to certain pages. For example if I only wanted the Jumbotron to show up on the homepage and blogpage. Thanks again!

    You can use conditional tags to include, like:

    <?php if ( is_front_page() || is_archive() ) {
    ---- rest of the code ----
    } ?>

    Or you can exclude with an exclamation point:

    <?php if ( ! is_front_page() && ! is_search() && ! is_archive() ) {
    ---- rest of the code ----
    }?>

    A list of all: https://codex.www.ads-software.com/Conditional_Tags

    Thanks!

    That list is extremely helpful. Do you know how to change the red power image at the bottom of the jumbotron? I appreciate the help.

    The image is an icon on functions.php:

    <i class="middle-circle icon-off"></i>

    If you change there it will be overwritten next time you update the theme. You should create a copy on your child theme.

    I tried this but I got the blank page when added functions.php to my child theme. So I still haven’t figured it out…

    I suggest you create a separated thread to this issue and maybe someone can help.

    You can’t just copy functions.php to your child theme – redeclaration of functions will throw an error and you’ll get a blank page…

    I like to create a local.css where I make my tweaks.
    I add this to style.css

    @import url("local.css");

    The icon itself is easy to remove, add this to your css:

    i.middle-circle.icon-off {
            display: none;
    }

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove Jumbotron from all but home page’ is closed to new replies.