- This topic has 47 replies, 3 voices, and was last updated 5 years, 6 months ago by Ivan Cazorla.
-
AuthorPosts
-
October 4, 2018 at 8:01 am #693427DavidStaffCustomer Support
Aah ok – yes the code above CSS and the hooks will only apply to GeneratePress
October 5, 2018 at 6:21 am #694120Ivan CazorlaAlright, thank you anyways!
October 5, 2018 at 6:44 am #694128DavidStaffCustomer SupportYou’re welcome
October 11, 2018 at 7:22 am #698707Ivan CazorlaHi, on this website: https://new.campingsport.es/cubremochilas-funda-viaje/
What I’ve done so far is adding this php snippet to wrap galley and summary on woocommerce product:
add_action( 'woocommerce_before_single_product_summary', 'awp_before_woo_summary', 5 ); function awp_before_woo_summary() { echo '<div class="awp-woo-wrap grid-container">'; } add_action( 'woocommerce_share', 'awp_after_woo_summary', 10 ); function awp_after_woo_summary() { echo '</div>'; }
And CSS:
@media (min-width: 768px) { .single-product .site { max-width: 100% !important; } .single-product .woocommerce-breadcrumb, .single-product .related.products { max-width: 1100px !important; margin-left: auto; margin-right: auto; } }
I’ve also installed the plugin Extend tabs to expand the tabs but keeping each of the tabs in their own wrapper.
I’ve done all this proccess on a different website and it worked out, but in this other web page I’m working on, seems like I’m missing something, because it’s not working.
Any thoughts?
thanks,
IvanOctober 11, 2018 at 7:33 pm #699139TomLead DeveloperLead DeveloperIs
woocommerce_share
the correct hook? Perhaps you’re using a different plugin on the problem site that’s using the same hook? That could cause a mixup of the HTML.October 15, 2018 at 7:21 am #701280Ivan CazorlaI’ve also tried the other hook
woocommerce_after_single_product_summary
but neither seems to be working. I cannot get to wrap all the hooks and shop them full screen as I did in this other websiteWhat hook should I replace it with, then?
October 15, 2018 at 9:39 am #701486TomLead DeveloperLead DeveloperI’m not sure. If it’s working on one site and not the other, you need to find where the difference is.
What’s the purpose of the wrapper exactly? I’m only seeing padding added on the working site.
October 16, 2018 at 8:03 am #702304Ivan CazorlaHi there, so I have the exact same code and that’s why i don’t really know why is not working. The main purpose of the wrapper is to show the contents all expanded next to the other instead of showing in tabs, making each one of those divs full screen with some padding and background color, so that I can make different colored rows.
October 16, 2018 at 8:14 am #702324DavidStaffCustomer SupportHi there,
the Woocommerce Share Hook was used in the other instance to create a wrapper around the gallery and summary which allowed them to be treated as a single section for different styling to the tabs. Can you put the hook back to woocommerce share so i can see the issue.
October 16, 2018 at 8:16 am #702326Ivan CazorlaAlright check now. thanks!
October 16, 2018 at 8:25 am #702334DavidStaffCustomer SupportOne of the plugins you are using is injecting other HTML – an Opal Wrapper (?) which means the other CSS won’t work. It adds quite a few layers of markup that would need custom CSS to unpick.
Does Opal Wrapper mean anything? Try disabling plugins to see which one is causing it.October 16, 2018 at 8:36 am #702350Ivan CazorlaI have disabled Opal Framework now, still not getting full width rows
October 16, 2018 at 8:39 am #702354DavidStaffCustomer SupportNot sure if its a cache issue, but the Opal markup is still in there.
October 16, 2018 at 8:41 am #702358Ivan CazorlaI don’t know. I don’t have any cahce plugin installed
October 16, 2018 at 9:08 am #702400DavidStaffCustomer SupportServer caches?
I am not aware of the Opal Framework – so not sure how it was added or whether it would leave code behind. -
AuthorPosts
- You must be logged in to reply to this topic.