Skip Navigation

[Resolved] JS custom code on custom templates

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.

This topic contains 5 replies, has 3 voices.

Last updated by Luo Yang 4 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#1580511

We found that in the new block editor of the content templates there is no more the box for inserting custom JS code but only custom CSS. How can we achieve that feature also in the block editor? In the normal editor it was possible to insert some custom JS code at the end of the content template as you see in the screenshot.
Thanks

Franco

#1580741

In the Inspector on your right end of the screen when using Blocks Editor, when looking at the "Document" Tab.

I hope this helps

#1580753

Hi Beda, in the right part of the page I see only the custom CSS and not custom JS as you see inthe following screenshot

#1580799

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

Thanks for the details, this is a known issue, there isn't JS editor when you edit content template with Block editor. And it is in our to-do list, will be fixed in next version of Toolset Blocks plugin 1.2.0, which is still under QA status, but I am not sure when will it be released.

#1607779

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

It is fixed in next version of Toolset Blocks 1.2, which is under QA status, will be release soon.

#1634085

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

This is fixed in latest version of Toolset Blocks plugin, you can download it here:
https://toolset.com/account/downloads/

Please test and feedback if it is fixed.