Sub Into section - remove from other pages

I only want the Sub Intro section to show on the home page, and remove it from all other pages. it just takes up too much space, and it doesn't make sense to show the same message or HTML in every other pages.

I can't find where that code is located - can you show me where to edit, and what I need to do?

To be specific, I'm talking about the section that is controlled in the Admin->Homepage area titled:

Your Network sub intro post text
you can insert post text for the sub intro on homepage

Thanks!

  • Richie_KS
    • HummingBird

    hi try open header.php line 300+

    chnage this

    <?php
    if(is_home() && !strstr($_SERVER['REQUEST_URI'], '/wp-signup.php')) {
    locate_template ( array('lib/templates/wp-template/panel-home.php'), true );
    } else if (strstr($_SERVER['REQUEST_URI'], '/wp-signup.php')) {
    locate_template ( array('lib/templates/wp-template/panel-index.php'), true );
    } else {
    locate_template ( array('lib/templates/wp-template/panel-index.php'), true );
    custom_img_header_call();
    }
    ?>

    to

    <?php
    if(is_home() && !strstr($_SERVER['REQUEST_URI'], '/wp-signup.php')) {
    locate_template ( array('lib/templates/wp-template/panel-home.php'), true );
    } else if (strstr($_SERVER['REQUEST_URI'], '/wp-signup.php')) {
    //locate_template ( array('lib/templates/wp-template/panel-index.php'), true );
    } else {
    //locate_template ( array('lib/templates/wp-template/panel-index.php'), true );
    custom_img_header_call();
    }
    ?>

    added // to comment out the panel when not in home.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.