Title: Shortcode &amp; Buttons in Elementor
Last modified: December 19, 2018

---

# Shortcode & Buttons in Elementor

 *  Resolved [Stefan Mueller](https://wordpress.org/support/users/stevethebeef/)
 * (@stevethebeef)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-buttons-in-elementor/)
 * 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)

 *  [benpines](https://wordpress.org/support/users/benpines/)
 * (@benpines)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-buttons-in-elementor/#post-11062840)
 * Currently, you cannot add shortcodes to buttons
 *  [born2fly2](https://wordpress.org/support/users/born2fly2/)
 * (@born2fly2)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/shortcode-buttons-in-elementor/#post-11348263)
 * 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](https://wordpress.org/support/users/born2fly2/).
    -  This reply was modified 7 years, 2 months ago by [born2fly2](https://wordpress.org/support/users/born2fly2/).
 *  [DigitalGdn](https://wordpress.org/support/users/bkno/)
 * (@bkno)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/shortcode-buttons-in-elementor/#post-11645030)
 * 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.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [DigitalGdn](https://wordpress.org/support/users/bkno/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/shortcode-buttons-in-elementor/#post-11645030)
 * Status: resolved