Home Forums WoodMart support forum Shortcode in product short description

Shortcode in product short description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #519017

    simon-0580
    Participant

    Hi,

    Have recently purchased your theme and I am tryig to output a shortcode in the sort description for use on the single product page.

    This is the page I am working on:

    https://pureoffers.staging.tempurl.host/product/ikos-olivia/

    Essentially what I and doing is linking external products with a parent product as grouped and want customers to link out to the external products from the parent product page.

    This part works fine, but I want to add info about each provider. I have made an HTML block and put the shortcode for this in the short description, but it just outputs the code rather than the content.

    I have created a child theme and added the following to functions.php:

    // Enable shortcodes in product short descriptions
    add_filter(‘woocommerce_short_description’, ‘do_shortcode’);

    Please let me know if you can help.

    Thanks
    Simon

    #519035

    Luke Nielsen
    Keymaster

    Hello,

    Define the HTML Block in the “Short description” area in this way: https://take.ms/OM2JY
    Result: https://take.ms/rFwEK

    Let me know the result.

    Kind Regards

    #519480

    simon-0580
    Participant

    Hi Luke,

    This is what I have done: https://snipboard.io/QaLJ0F.jpg

    An my result is this: https://snipboard.io/LlONQR.jpg

    It works if I build a custom loop in Elementor and assign to products but I would like to use the theme add to cart widget.

    Thanks
    Simon

    #519536

    Luke Nielsen
    Keymaster

    Hello,

    In this case, is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)