Is there a way to style an element in the UI and retrieve it's resulting shortcode?

As an example, I’d like to use a button in a content area with some other non-X shortcodes. Is there an easy way to style the button using the UI and get the actual shortcode? I tried looking at the page content in the WP page editor (just to view) and while I found the button, it didn’t have all the attributes I expected to see, given the documentation on button shortcodes… If there’s an easy way to get that info, it would be great. As a work around, I’m using global blocks, but that’s not a very scalable solution.

Hello @ioamnesia,

Thanks for writing in!

Please be advised that only the classic elements offers a shortcode. You can use classic elements shortcodes in the default WP editor. The v2 elements like the v2 button element does not offer any shortcode. It can only be used inside a page built with Cornerstone or within Global Blocks. There are no available shortcodes for v2 button elements. Editing the page to see the v2 button element will not guarantee that it will inherit all the styling you have set. The best way to use v2 elements is to use it inside Global Blocks and use the global block shortcode if you want to use it outside of Cornerstone like the WP default editor.

Hope this helps.

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