Site logo

Archived topic

Hooks before site-content

5 replies · Started by Markku on March 24, 2016

Viewing posts 1–6 of 6

Hello,

I would like to know if there is a way to put content before the class "site-content"? I tested the hooks but still no luck. This would allow me to put content directly after header image.

Thank you!

<div id="page" class="hfeed site grid-container container grid-parent">
--> Content here
<div id="content" class="site-content">

Hi there,

Currently a hook doesn't exist there.

Any reason why you need to add your HTML in there and not inside the site-content element?

Hi Tom,

I came to this thread searching for a way to add content before <div class="site-content" id="content">. The reason why I need that option are breadcrumbs. I find this position ideal for them as they could spread through the entire content width when using a layout with sidebars.

If I place the breadcrumbs code inside GP Hooks locations "Inside Content Container" or "Before Content" I only get the content-area width for them.

If you have a better solution please let me know.

Cheers!

That did the trick, thanks a lot!

You're welcome :)

This archived topic is closed to new replies.