Shortcode Wrapper

BradK
22 Posts
BradK posted this 02 August 2020
Wishlist

While Nicepage includes a shortcode element, it's a standalone element that can't be wrapped around other elements. There are many instances where you want to wrap a shortcode around another element, like a button. For example, my form builder plugin uses a shortcode wrapper to make a button open a modal form. I realize you can do whatever you want, by entering HTML code manually in the shortcode box, but this defeats the purpose of using Nicepage, because then you have to create your buttons manually in HTML.

Therefore, I'd like to request that Nicepage include a shortcode section in the properties pane, for elements like buttons that could potentially be wrapped in a shortcode. The shortcode section would include a field for the opening shortcode and a field for the closing shortcode. Whatever you enter in this fields would be wrapped around the element. For example, in a button element, you might enter:

Opening Shortcode: [popup-form id="1"]
Closing Shortcode: [/popup-form]

When the button is rendered, it would be wrapped in these two shortcodes.

While Nicepage includes a shortcode element, it's a standalone element that can't be wrapped around other elements. There are many instances where you want to wrap a shortcode around another element, like a button. For example, my form builder plugin uses a shortcode wrapper to make a button open a modal form. I realize you can do whatever you want, by entering HTML code manually in the shortcode box, but this defeats the purpose of using Nicepage, because then you have to create your buttons manually in HTML. Therefore, I'd like to request that Nicepage include a shortcode section in the properties pane, for elements like buttons that could potentially be wrapped in a shortcode. The shortcode section would include a field for the opening shortcode and a field for the closing shortcode. Whatever you enter in this fields would be wrapped around the element. For example, in a button element, you might enter: Opening Shortcode: [popup-form id="1"] Closing Shortcode: [/popup-form] When the button is rendered, it would be wrapped in these two shortcodes.
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 03 August 2020

Hi Bradley,

Thanks for the suggestion, we will add it to our wishlist.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Bradley, Thanks for the suggestion, we will add it to our wishlist. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments