Skip Navigation

[Resolved] CSS Classes not saved for Toolset Image block on front-end template

This support ticket is created 2 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by davidW-32 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2402491

We are using the Toolset Image block inside a View (View Loop element) on the front-end template. When we enter CSS Classes and save the template, the CSS Classes disappear and the field is empty. What can we do to assign CSS Classes to this block element? n fact, we need to assign CSS Classes to the link. On the template page, the view element is under the heading "Downloads".
Setup: WP 6.0, Gutenberg block editor, Astra theme

#2402513

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I checked the single post template you created using Blocks and under the Downloads section I can see you added a view that displays the image block:
=> hidden link

To add a CSS class name, you should select your desired block (in this case image block) and on right panel under the Advanced tab you will find the place where you can set CSS ID and CSS class. Please check the following screenshot:
- hidden link

I've added the class name myimage and I can see it displays on the frontend. Please make sure to hit Enter key once you add the css class name.

#2402573

My issue is resolved now. Thank you!