Site logo

Archived topic

Element Hook: Full Width Container

5 replies · Started by Lucas on January 5, 2019

Viewing posts 1–6 of 6

Hi,

I have a hook showing right below the woocommerce product list:

<div id="after-products" style="margin-bottom: 40px; margin-top: -30px; text-align:center; background-color:#731f73;">
	<img src="">
</div>

How can I make this div full-width, but leave the rest of my page as it is?

I tried the code below, but this one makes all elements in the page full-width:

body .grid-container {
      max-width: 100%;
}

Thanks.

Hi there,

which Hook are you using?

Please check my website again, it's actually the .black-bg div
Hook is woocommerce_after_main_content

I am in fact using the Hook Element, but my question is how can I make this specific element full-width.

Did you try moving it to the before_footer hook, this should take up the full width of the page?

This archived topic is closed to new replies.