Return to Support

2 sidebars homepage 1 sidebar all others

Home Forums Graphene WordPress theme Support 2 sidebars homepage 1 sidebar all others

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8513
    spanol
    Member

    I’ve searched but I cannot find an answer. I would like 2 sidebars on the homepage (one on left and one on right). All other pages/posts I only need the sidebar on the right. I need the post to open up wider than it would appear on the homepage.

    Thanks

    #41350
    Prasanna SP
    Member

    If you have a child-theme, add this to child-theme functions.php.

    <?php
    function two_sidebar_homepage(){
    global $graphene_settings;
    if ( is_home() ) {
    $graphene_settings['column_mode'] = three_col_center;
    }
    }
    add_action( 'template_redirect', 'two_sidebar_homepage' );

    #41351
    spanol
    Member

    Thank you. Ill work on a child’s theme next.

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

You must be logged in to reply to this topic.