Site logo

Archived topic

Dividing line at Top of footer

5 replies · Started by Jordan on November 22, 2021

Viewing posts 1–6 of 6

Hi,

The designer has spec'd a white background on pages and the footer widget area with a gray dividing line or 'seperator' in WP speak. How can I easily implement this in GP?

Thanks
Jordan

Sure thanks!

Hi Jordan,

I'm not exactly sure what's required.

But if it's simply adding a separator line on ALL posts at the top of the footer, you can create a Block element with a Separator block in it.

You then hook this Block element to generate_before_footer with a display rule location set to "Posts - All posts".

This should display the Block element w/ a Separator block in it on every post's top of footer area.

Awesome. This works perfectly except the separator line when set to default or wide line runs the full width of the page. How can I make this separator line the same width as the content box?

You can wrap a container block or something like that outside the separator, set the container block to max width 1200pxto match the content container width.

Or you can trygenerate_after_main_content instead ofgenerate_before_footer hook.

Let me know if this helps :)

This archived topic is closed to new replies.