Product preview does not render shortcodes
-
See attached screenshot and links provided in the Private Content area.
Attachments:
You must be
logged in to view attached files.
Hello,
Please try to check the problem switching to the default theme to be sure the problem caused by our theme. Actually, this is the WooCommerce option. If the problem is only on our theme, please contact us with credentials.
Best Regards
Hello Elise! What is the WooCommerce option and how/where can it be enabled? Thank you!
Do you mean that you want to disable WooCommerce reviews?
The issue mentioned in this topic is not related to WooCommerce product reviews.
But the name of the topic says Product preview does not render shortcodes
. Maybe we understand you wrong. Have we missed something?
Product PREVIEW not review 🙂 when you hover over a product in the list/search results and the description, add to cart and quick view buttons appear. Have a look at the screenshot fragment attached in the first message.
See also attached screenshot.
Attachments:
You must be
logged in to view attached files.
Sorry for that, our mistake. The screenshot was not clear for us.
But as we can see, there are too much text in your short description for products. We can give you an instruction how to enable shortcodes there. But it will not look well because of too much content there.
But the product description in the preview is by default abbreviated anyway so this should not be a problem.
In any case – displaying shortcodes to the visitors in the product preview also gives the impression that something is broken on the website.
Hello,
Try go to woodmart/woocommerce/content-product-base.php
and replace this line
the_excerpt();
with this one
echo do_shortcode( get_the_excerpt() );
Regards