• Resolved Stefan Mueller

    (@stevethebeef)


    Hi.

    I have a shortcode that generates a Buddypress “Add as Friend” Link.
    Now i would like to use this Shortcode with an Elementor Button.

    Is there a simple way to do this? Adding a shortcode to a button?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Currently, you cannot add shortcodes to buttons

    Well if that’s the case then why is there an option under buttons to add shortcodes?? It’s very confusing. I’ve just spent the entire day wrestling with trying to get a shortcode to work with a button.That feature should be disabled from that menu then!!

    • This reply was modified 7 years, 2 months ago by born2fly2.
    • This reply was modified 7 years, 2 months ago by born2fly2.

    I was having an issue with a button shortcode and found this thread. First, just to confirm that button link shortcodes do work now but I was not seeing the button’s href attribute being populated on the front-end.

    It turned out there was no problem with my shortcode which was returning a dynamic get_field ACF value. I realised that I was testing using the ‘View page’ Elementor link, which was showing the template page, not the URL of a real content page. Viewing the template via the real content’s URL made it work fine. It is also possible to set the Preview Settings in Elementor to a real piece of content, then when hovering over the button I can see the URL is being correctly applied.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shortcode & Buttons in Elementor’ is closed to new replies.