• Resolved mgpelobello

    (@mgpelobello)


    Hi Richie,

    I just added the code for “Adding a Left Sidebar” in function.php but I want to hide it in Homepage and show only in post pages. I’m thinking of using conditional tags but I don’t know where to specifically insert it. Please help me figure it out.

    Thank you.

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Richie KS

    (@rkcorp)

    edit the function dez_add_bpp_call() {) to this

    function dez_add_bpp_call() {
    global $in_bbpress, $bp_active;
    if( is_home() || is_page_template('page-templates/template-full-width.php') || $in_bbpress == 'true' || ( $bp_active == 'true' && function_exists('bp_is_blog_page') && !bp_is_blog_page() ) ) {
    } else {
    add_action('bp_after_blog_home','dez_add_sidebar_left');
    add_action('wp_head','dez_add_sidebar_left_style');
    }
    }
    add_action('wp','dez_add_bpp_call');

    i added the is_home()

    Thread Starter mgpelobello

    (@mgpelobello)

    Thanks Richie. You’re the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Left Sidebar in Homepage’ is closed to new replies.