Hello,
I want to use some shortcodes before and after an element so that I can hide or visit the content.
I can use the code-block and insert the whole code but I want to use e.g. the button-element.
For example:
[memb_has_any_tag tagid=123]
Picture or Button-element
[/memb_has_any_tag]
This don’t work: https://imgur.com/a/Ghw4G
So I can’t copy “[memb_has_any_tag tagid=123]” in the code-block1 and “[/memb_has_any_tag]” in code-block2.
How is it possible to insert code before and after an element?
Thank you for your help!
Hey christianichristiani,
The shortcode you mentioned above “[memb_has_any_tag tagid=123]” is it from a third party plugin?
What is the purpose you are trying to achieve with the custom shortcode?
If the shortcode does not work in code block I doubt it will work elsewhere unless a third party plugin is capable of handling it.
Please try inserting the shortcode in the text block element > text view.
Best regards,
Vinay
Hello Vinay,
the shortcode works fine but I can’t start it in the code-block1 and end it in code-block2. So I can’t e.g. hide an element.
Hi christianichristiani,
You can give the element an id and hide it with css.
Could you please give us a link to your website, we need more context to be able to help you.
And please specify the element you want to hide and on which screen size?
Best regards,
Victoria