Need to add a header and footer to the single post, etc, pages.

Hello,

I need to add a header and a footer the single post page, the category pages (and basically any other pages that relate to blogs that I have forgotten.)

  • We have the main blog page built out as a builder page.
  • One of the reason this is important is because we have a link that jumps down to the bottom of the page in the navigation. So until we get the footer in there it is broken (not a good sign for a ‘hire us’ link).

So, I’m looking for guidance as to

  • where to alter the code.
  • how to make sure the changes (obviously) are within the child theme.’

Our site development site is http://ecbiz182.inmotionhosting.com/~sagepr6/

Thanks,

Nicole
(working on this on behalf of SagePresence folks)

Hey Nicole,

Unfortunately, the current public release of BB doesn’t have that ability, but in our beta available via your account page, we have released a shortcode feature which is pretty powerful. Have a look at this blog post regarding that shortcode and how it works. We hope to have it out of beta in the next few weeks or so, but you are welcome to try out the beta now to see if it helps!

Best,
Billy

Hi Billy,

Thanks for your response.

Yes, I knew that you couldn’t add header via the builder. I was hoping you would point me to the place in the PHP files where that is rendered. And also, point me to how I can make sure it remains within the child theme.

And - so you think that the beta shortcodes will allow me to put a header and footer in these new posts?

Thanks,

Nicole.

Hey Nicole,

I’d just chime in here. Basically, the shortcode allows you to draw in content from a BB page. Which means you can create any layout using BB, then place it anywhere using the shortcode. Furthermore, do you know how to save the templates you created with BB? More info on the link below. Once you’re ready, go ahead and start creating your custom header and footer. Let us know once you’ve done that and we’ll guide you through customizing the theme files.

http://forum.wpbeaverbuilder.com/row-and-module-templates-are-now-in-beta/

Thanks!

KC

Thanks KC,

So that is cool. Played with it on a development site. And now I’m looking to get that footer and header short-code page pieces all the way to the header and footer spots (as opposed to within the content of the post page still.)

It sounds like I can add some code into the template to make that happen. Will much appreciate your guidance.

Thanks,

Nicole.

Hey Nicole,

All page layouts are using the same header and footer template. These can be found under the /bb-theme/ directory, specifically the header.php and footer.php files. These files call in another set of files under the /bb-theme/includes directory, nav-.php, footer.php, and footer-col.php files.

Where you’ll place your shortcode would depend on where you want it to appear. Feel free to snoop around the code inside the files above.

Hope this helps! :slight_smile:

Ben