Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Uplift
  • #313153
    micheal_w
    Member
    Post count: 498

    Hi guys,

    One of our payment solution (Afterpay) put an extra line of text on each product page right under the product price, saying:
    “or 4 payments of $11.25 with Afterpay | More info →”. This text was put in a field of the payment plugin’s admin page.

    I would like to have the above “more info” having as text modal, but it doesn’t work 🙁
    I’d like to achieve same as here: https://www.hypedc.com/gazelle-purple-white-silver.html
    (click on the Afterpay logo below the price)

    Unfortunately the plugin code is written to print plain text (not with short code). I contacted the plugin dev and they recommended to modify the plugin codes to parse it using the contents filter. https://wordpress.org/support/topic/apply-filters-to-get_the_content. However they also warned that it will start adding <p> tags all over the place, too.

    I tried few things but it is out of scope of my knowledge… I am sure I miss something or it is simple as a circle, but I just can’t work out what to do to make it work…

    Do you have any recommendation?
    See link above, a screenshot below…

    I would really appreciate your direction…
    Thanks in advance…

    Mic

    Attachments:
    You must be logged in to view attached files.
    #313491
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You are looking to output a shortcode, not to format the text. To do that you need to use the WP function to format the shortcode. do_shortcode()

    Ref: https://developer.wordpress.org/reference/functions/do_shortcode/

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

You must be logged in to reply to this topic.