Custom Shortcode in Non-Classic Button Link

We had a custom shortcode that was generating a link (whether a page or telephone #) within the functions file, and calling by a custom shortcode ( lets say [custom-shortcode] ). This was working flawlessly with Classic Buttons. We are in the process of updating one of our websites, and want to control the button styling a bit more using the new Button Element, but using the shortcode for the link (whether its HTML, Email, or TEL link) is not working anymore, and is just showing the shortcode, itself.

Hi there,

The V2 elements are coded completely different than the Classic elements and the information are saved to meta options database table. That is why the shortcodes inside the label of the button or in the link option will not render.

If you want to keep using your shortcode you need to use the Classic Button element and then add a unique class to that button and style it using CSS.

Thank you for your understanding.

Thanks for a fast response @christopher.amirian.

you are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.