[Resolved] Use [types field='name'][/types] shortcode and match destination style
This support ticket is created 3 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to use shortcode to insert type fields into some non Toolset blocks and also to use it with Toolset block like the button one for example. I want a mix of a dynamic field and default text on the button. So, when I use [types field='name'][/types] Click for more, it works just fine, only problem is that the types field got its own style assigned. I want it to have no own style, so it can match the buttons style. Thanks for the help.
Given that you are using the shortcode itself, you will need to manually style the output in the way you want it. This is because it will inherit the default styling that your theme provides.
Is there no way to use a shortcode to output the field data that I want without it being wrapped in [php] tags? That would solve the problem and all would be fine.
When I use that shortcode it doesn't work for example with the Toolset button block, it only adds an empty
in place.
It does work though with non Toolset blocks, like the default button or the stackable button block. That is good enough for me but feels still strange that it doesn't work where I would most expect it to work.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.