How to Add and format [Shortcodes] in text fields
-
Hello here!
It seems that they can just add shortcodes in Lay Theme as a separate element trough +more + shortcode, right? For some reasons I also can't put a shortcode element between two text elements. The shortcode always appears at the bottom of the site below the both text elements.
- Is there a possibility to ad shortcodes kind of inline in text?
- If I created a shortcode via +more + shortcode how I can format it then (color, style, etc.)?!
Best!
-
Hey there, so styling short codes: it really depends on what the short code delivers. A short code can produce all kinds of things. That is defined by the plugin author who provides the short code. If you want to style the output of a short code, it has to be done in the plugin settings or the plugin authoor needs to help you with that, not me.
Short codes in text: I mean, you could try to enable "content filter" In Lay Options. In lay options, just search for those words, and you will see the setting.
This should make it possible to have shortcodes in text elements too.
About short codes between two text elements, this, I think, really depends on the shortcode itself. Without a URL to where you have the issue, I can't really inspect and see what's going on, so if you could post a URL, that would be great.
-
Hi, Arnim!
Thank you for your answer. At the moment our homepage is not online. Ill try this "content filter" feature for first.
Best! -
With "Content filter" option activated, the [shortcode] is displayed in the text also. Unfortunately I cant format it and don't follow the formatting of the text (is black on black background) :
HTML- Example:
Sie können Ihre Cookie-Einstellungen jederzeit über den Consent-Link hier <span style="color: #ffffff;">[revoke_consent text="Hier können Sie Ihre Zustimmung zu Cookies widerrufen."]</span> oder am Ende dieser Seite anpassen oder Ihre Zustimmung widerrufen.
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it