• Resolved benporg

    (@benporg)


    Hi there

    I am using the “YITH WooCommerce Product Add-ons” plugin.
    I am trying to add a popup to a product addon’s description like this:

    https://www.sofysofas.co.za/wp-content/uploads/2021/03/screenshot12-scaled.jpg

    On the frontend, when I click on the “Learn more’ link, it redirects to a blank page with this URL: about:blank#blocked
    You will find the link just above the add to cart button.

    Please let me know if you need more info?
    Thanks for your help in advance!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching here.

    You are passing our shortcode in your <a> tag. it’s wrong.
    please refer to the below step.

    1. You are using the page then please try the below shortcode.
    [popup_anything id="6654"]

    2. You are using the PHP core file then please try the below shortcode.
    <?php echo do_shortcode('[popup_anything id="6654"]'); ?>

    Thanks,

    Thread Starter benporg

    (@benporg)

    Thanks Ketan!

    I tried both, and they both only show the shortcode on the frontend:
    https://www.sofysofas.co.za/wp-content/uploads/2021/03/screenshot4-scaled.jpg

    I am trying to add it here in the backend (plugin: YITH WooCommerce Product Add-ons):
    https://www.sofysofas.co.za/wp-content/uploads/2021/03/screenshot5-scaled.jpg

    Any suggestions?

    Plugin Support Riddhi Shukla

    (@ridhimashukla)

    Hi,

    Thank you for your update…

    I have checked your shared screenshot in which you have added popup shortcode in some description option but that box not supporting shortcode display.

    You have to add your shortcode either any content section like add in product edit content area or directly in you file using do_shortcode().

    Please check and add shortcode in proper section so it will work for you!!

    Thank You!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode in HTML’ is closed to new replies.