• Resolved NickyThissen

    (@nickythissen)


    So now getting to try some more CSS.

    Trying to adjust sizes:

    .left-sidebar{
    float: left;
    width: 300px;
    }

    Please learn me more ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    GeneratePress uses percentages for the content and sidebars.

    The easiest way to adjust the width of the sidebars is using the Spacing addon.

    Without it, you’ll need to use PHP functions to adjust some filters in GeneratePress.

    Let me know if you’re comfortable with PHP functions and don’t want the spacing addon.

    Thanks!

    Thread Starter NickyThissen

    (@nickythissen)

    Just added the addon’s… THX

    Theme Author Tom

    (@edge22)

    Awesome – thank you!

    Hey, I’m trying to do this as well, and I would rather use the PHP to adjust the filters. I can’t seem to find where the classes grid-25, etc. are added.

    Thanks

    Theme Author Tom

    (@edge22)

    Hi there,

    You can adjust the sidebar widths with these functions:

    add_filter( 'generate_right_sidebar_width','generate_custom_right_sidebar_width' );
    function generate_custom_right_sidebar_width()
    {
          // 25 being 25% - increase or decrease by 5%
          return '25';
    }
    
    add_filter( 'generate_left_sidebar_width','generate_custom_left_sidebar_width' );
    function generate_custom_left_sidebar_width()
    {
          // 25 being 25% - increase or decrease by 5%
          return '25';
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Resize sidebars’ is closed to new replies.