image for site

Why Class Attributes Are Removed in Zendesk Content Blocks

Understand why class attributes are removed from content block HTML in Zendesk Guide. Learn about supported HTML elements.

Why are class attributes removed from content block HTML?

In Zendesk Guide, the content block editor removes class attributes from the HTML source, except for top-level div tags. This is part of the system's design to maintain consistency and security across content blocks.

While this might limit some formatting options, it ensures that content blocks are displayed uniformly across different articles. If you need specific formatting, consider using other supported HTML elements or CSS solutions.


More related questions

How do I edit a content block in Zendesk Guide?

To edit a content block in Zendesk Guide, you need to be a Guide admin or an agent with the necessary permissions. You can access the content block editor from the content block list or directly from any article using the content block. Once you…

Can I edit the HTML source code of a content block?

Yes, you can edit the HTML source code of a content block in Zendesk Guide. This feature is available to Guide admins and agents with the appropriate permissions. You can access the HTML source by clicking the Source Code button in the editor's…

What happens when I update a content block?

When you update a content block in Zendesk Guide, all articles containing that block are automatically updated with the new content. This process does not affect the publication status of the articles, meaning you don't need to republish them for…

How can I edit a content block from within an article?

To edit a content block from within an article, you need to open the article in Edit mode. Hover over the content block you wish to edit, click the Options menu icon, and select Edit. This opens the content block editor where you can make your…

Is there a way to edit content blocks without publishing changes immediately?

Currently, in Zendesk Guide, when you edit a content block, the changes are automatically applied to all articles using that block. There isn't an option to save changes without publishing them immediately. This automatic update feature ensures…

Does Zendesk support revision control for content blocks?

As of now, Zendesk Guide does not support revision control for content blocks. This means you cannot view or revert to previous versions of a content block like you can with articles. This lack of revision control can be a limitation for managing…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites