WordPress.org

Ready to get started?Download WordPress

Forums

Ward
[resolved] Remove Jumbotron from all but home page (10 posts)

  1. GMLGeek
    Member
    Posted 10 months ago #

    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!

  2. GMLGeek
    Member
    Posted 10 months ago #

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

  3. pbspirits
    Member
    Posted 9 months ago #

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

  4. GMLGeek
    Member
    Posted 9 months ago #

    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!

  5. lfreitas
    Member
    Posted 6 months ago #

    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();
    } ?>
  6. Matt_hew
    Member
    Posted 6 months ago #

    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!

  7. lfreitas
    Member
    Posted 6 months ago #

    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: http://codex.wordpress.org/Conditional_Tags

  8. Matt_hew
    Member
    Posted 6 months ago #

    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.

  9. lfreitas
    Member
    Posted 6 months ago #

    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.

  10. smarc
    Member
    Posted 1 month ago #

    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;
    }

Reply

You must log in to post.

About this Theme

About this Topic