[Support request] Looking for documentation to create additional widget space above/below content

Home Forums Support [Support request] Looking for documentation to create additional widget space above/below content

Home Forums Support Looking for documentation to create additional widget space above/below content

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2079798
    Jon

    Hi,

    I’m new to WP and Generate Press premium. I would like to add a widget location above and below the blog content / page content area (separate of sidebar). I am not sure what the correct verbage for this would be, and as such haven’t had any luck in searching for documentation. If you could kindly point me in the right direction, that would be much appreciated. 🙂

    #2080089
    David
    Staff
    Customer Support

    Hi there,

    the Codex here explains how to define your widget area:

    https://codex.wordpress.org/Widgetizing_Themes

    And part of that includes displaying the widget area using a function like so:

    <?php dynamic_sidebar( 'home_right_1' ); ?>

    In GP you can hook that function in to the available hooks ( some shown here ):

    https://docs.generatepress.com/article/hooks-visual-guide/

    Using a Hook Element or you can use an add_action function.

    Of course if you don’t need widgets specifically then you can just the Hook or Block Element to add your own content. And bypass creating a custom widget area altogether.

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