Tagged: woocommerce
-
AuthorPosts
-
November 30, 2016 at 8:49 pm #718967
Hi!
I’m using the latest enfold and woocommerce versions.
When I add a product to the cart, I would expect the woocommerce warning/message box to appear at the top of the page, below the header. Instead, it appears below a code block inside a color section.
This is weird behaviour. How can I make enfod output the message box to the top of the page?
December 1, 2016 at 9:20 am #719139Hey catarina_sobral,
I’m not sure I understand the problem, could you post a screenshot of it please?
Best regards,
RikardDecember 1, 2016 at 6:10 pm #719365Here:
woocommerce box bug" />The woocommerce box (“Vazio has been added to your cart”) show up below the book title and awards (they’re in a code block).
I would like to move the woocommerce message box to the top of the page.
Cheers
December 6, 2016 at 10:21 pm #721221Hi,
Sorry for the late reply!
Unfortunately, it would not be easily possible as you have another code block above your element that has “O Meu Avô” etc.
I wanted to try a jQuery solutin, however login credentials are not working for meBest regards,
YigitDecember 6, 2016 at 10:57 pm #721230No problem. Well, I don’t really know if this is enfold- or woocommerce-related (or even Envira Gallery’s fault).
Still, I didn’t delve into woocommerce’s code, but I assumed the default behavior should be to create the.woocommerce-message
div at the top of a page, perhaps as the first child of#main
. Hence the confusion, why should woocommerce insert the div in the in the second code block of a page?It’s weird. Any ideas?
( The hidden text block above the code blocks serves as a helper for my client in the backend – as codeblocks don’t have identifiers or names I added text blocks describing each code block, visible only in the backend)
December 7, 2016 at 5:25 pm #721597Hi,
Which item is addable to cart? I managed last time but could not find an item this time :)
You are using Envira gallery plugin to dislay your items. That is the issue. We can give jQuery solution a try.Best regards,
YigitDecember 7, 2016 at 9:19 pm #721717You can try any of the items in the “Vazio” gallery. Sure, go ahead.
December 12, 2016 at 3:04 pm #723147Hi,
I added following code to Functions.php file of your child theme
function av_move_ci(){ ?> <script> jQuery(window).load(function(){ jQuery(".page-id-26 .woocommerce-message").detach().prependTo('#av_section_1 .entry-content-wrapper') }); </script> <?php } add_action('wp_footer', 'av_move_ci');
Please review your website now
Best regards,
YigitDecember 12, 2016 at 6:26 pm #723282Great, it’s solved. I would rather get to the root cause than remedy the problem via js, but I understand it could be tremendously complex. Thank you for the help, you can close the ticket.
Cheers!
December 12, 2016 at 6:38 pm #723290Hey!
You are welcome! :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Regards,
Yigit -
AuthorPosts
- The topic ‘Woocommerce warning boxes in weird place’ is closed to new replies.