Is it Possible to Have a Global Block as a Footer on all Pages with a Side Bar?

Hi, I’ve created a footer as a global block and I’d like to use it on all the pages I’ll be doing which have a side bar, but haven’t got a clue how to do this (or if it’s possible!) as when I add it in to the page, it doesn’t stretch the full width as it’s just seen as part of the page content!

Hope you can help!

I’ll put the URL in a secure note as it’s being built on a temp link.

Thanks!

Hi @core365,

Thanks for reaching out.

Are you referring to the section WE ARE THE MOBILE TOWBAR FITTING SPECIALISTS just above the footer? It’s because the footer in your page is a default one which can’t be made from global black.

But if you’re just referring to the section above the footer then you must also turn off Inner Container option of the row within the global block. You only turned off the inner container of the page so the global block element still has spaces.

Thanks!

Hi, yep it is the ‘We are the Mobile Towbar Fitting Specialists’ section and I’d like it to go above the footer that has the social media icons and list of pages so it’s the same as on the Home page - to go across the full width of the screen and not be within the content area on the left hand side of the page. Is this possible to do?

I turned off the Inner Container option of the row within the global block but it still isn’t stretching across the full width of the page as on the Home page.

Thanks!

Hi There,

The global block will not stretch to full width because that page has a sidebar on right side.

To make the global block above the footer for all the page, please add this custom code under functions.php file locates in your child theme:

add_action( 'x_before_view_footer_base', 'x_print_footer_global_block' );
function x_print_footer_global_block(){
	echo do_shortcode( '[cs_gb id=203]' );
}

Don’t forget to replace the [cs_gb id=203] shortcode with your shortcode.

Hope it helps :slight_smile:

Excellent! Many thanks, that’s fab!

I really appreciate your time and help!

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.