[Support request] Front Page with only Right and Left Sidebars

Home Forums Support Front Page with only Right and Left Sidebars

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #455831
    Linda

    Trying to create front page with just right and left sidebars (also header and footer of course) without content area. I played with Front-page.php and used the code below:

    add_filter( ‘generate_right_sidebar_width’, ‘generate_custom_right_sidebar_width’ );
    function generate_custom_right_sidebar_width()
    {
    return ’25’;
    }

    add_filter( ‘generate_left_sidebar_width’, ‘generate_custom_left_sidebar_width’ );
    function generate_custom_left_sidebar_width()
    {
    return ’70’;
    }

    As soon as I increase the left sidebar to above 70, sidebars on longer line up.

    Appreciate your help. Thank you.

    GeneratePress 2.0.1
    GP Premium 1.5.6
    #455842
    Leo
    Staff
    Customer Support

    Hi there,

    I don’t think using sidebar is the good way.

    You should try using two columns instead: https://docs.generatepress.com/article/creating-columns/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.