- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by
David.
-
AuthorPosts
-
November 10, 2020 at 6:44 am #1525240
David
Hello
I’m trying to move the related products, to underneath the block I have which say ask us about…
http://185.20.51.60/~holleyhextallco/product/bayonne-provence-limestone/
The Ask us about block has got a hook position of generate_before_footer. Any ideas how I can switch these 2 block around?
Thanks
DaveNovember 10, 2020 at 8:22 am #1525581David
StaffCustomer SupportHi there,
you can move your Ask us Block to the
woocommerce_after_single_product_summaryhook you may need to reduce the Hook Priority to below10but it should appear before the related products… but it won’t be full width.November 10, 2020 at 8:28 am #1525588David
Thanks David, any ideas how to get it full width and not sitting in the right column?
http://185.20.51.60/~holleyhextallco/product/bayonne-provence-limestone/
November 10, 2020 at 9:11 am #1525661David
StaffCustomer SupportGive you
.moreinfoswatch-blockawidth: 100%;to force it below.To make it full width is not easy without hackish CSS which i would hate to suggest.
My method would be this:1. Use the Layout Element to make the single Product > Full Width.
2. Now to contain the galllery/summary:2.1 Hook into:
woocommerce_before_single_product_summarythe opening for a contained wrapper:<div class="woo-summary-wrap grid-container"><!-- open wrap -->Note: if using a Hook Element delete the
</div>that it will automatically add in the editor.2.2 Now hook into
woocommerce_after_single_product_summarywith a lower priority then your Ask us block the closing</div>This should keep the top half contained and the remainder of the page Full Width.
3. The related posts will need some CSS to contain them:
.single-product .related.products { max-width: 1350px; margin: auto; }November 10, 2020 at 9:20 am #1525680David
That worked brilliantly David 🙂 only issue is my breadcrumb sits outside of the container
November 10, 2020 at 9:26 am #1525687David
StaffCustomer SupportTry the related product CSS for the breadcrumb:
.woocommerce .woocommerce-breadcrumb { max-width: 1350px; margin: auto; }In the Hook code i added the
woo-summary-wrapclass you may want to use that to add some left/right padding to stop it from touching the edges on smaller screens.November 10, 2020 at 9:39 am #1525702David
Thanks David, really appreciate your help.
November 10, 2020 at 9:46 am #1525716David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.