Site logo

Archived topic

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

1 reply · Started by Jon on January 13, 2022

Viewing posts 1–2 of 2

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. :)

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.

This archived topic is closed to new replies.