Skip Navigation

[Resolved] Use views and fields shortcodes within CSS and/or JS editors

This thread is resolved. Here is a description of the problem and solution.

Problem:

I wonder if it is possible to use fields shortcodes within CSS and/or JS editors ?

Solution:

No, in the CSS/JS editors, it does not support shortcodes or other custom shortcodes.

You can move the your custom CSS/JS codes into content area, for example:

https://toolset.com/forums/topic/use-views-and-fields-shortcodes-within-css-and-or-js-editors/#post-1226966

Relevant Documentation:

This support ticket is created 5 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by romanB-3 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1226829

Hello,
I wonder if it is possible to use fields shortcodes within CSS and/or JS editors ?
If so, is there a specific syntax ?
If not, is it a possible feature ?
Thank you.

#1226966

Hello,

No, in the CSS/JS editors, it does not support shortcodes or other custom shortcodes.

You can move the your custom CSS/JS codes into content area, for example:

<script type="text/javascript">
// here your custom JS codes with shortcode
</script>
<style type="text/css">
/** here your custom CSS codes with shortcode **/
</style>
#1227033

My issue is resolved now. Thank you!