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.