Recent searches


No recent searches

Resources for reusing content with content blocks



image avatar

Jennifer Rowe

Zendesk Documentation Team

Edited Dec 04, 2024


4

41

41 comments

Does anyone know if you can use a div in a list item in content blocks? It keeps throwing out my divs of my lists.

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey Heather Firth,

The anchor element is likely being removed because it would be considered invalid markup. Can you try it with a closing tag and an href attribute i.e:

<h2><a href="#" id="title2">Title2</a></h2>

Edit: I've just become aware that the id attribute will be automatically removed from <a> tags when added manually via the content blocks code editor. I would suggest adding the id to the <h2> tag instead.

0


UPDATED:

I resolved this issue by using <div> instead.  So, this gets around the issue (most likely Zendesk's "unsafe content" filtering):

<div class="alert alert-info">warning text here</div>

*****************************

I am trying to create a content block for a disclaimer we often put on articles. As part of the disclaimer text, I'm trying to use this HTML code:

<aside class="alert alert-info">warning text here</aside>

However, after I save the content block, I find that this HTML code isn't saved and replaced with <p></p>.  And actually this seems to be the case with other HTML codes I try to save into a Content Block.

Is this a known issue? I know there's a similar issue with dynamic content.  Please let me know if this is a known issue or if I'm doing something wrong, or if there is a workaround.  Thanks

1


Jay Lee have you tried enabling the option to "Display unsafe content" in guide settings. Enabling this option has worked for me in keeping Zendesk from swapping out my completely valid code for "safer" code. 

1


Is there a way to create or update content blocks via API?

0


image avatar

Gabriel Manlapig

Zendesk Customer Care

Hi Shayan, 
 
As of the moment, we do not have any way to utilize (create & update) the Content Blocks via the Guide API at this time. I can imagine, it would be incredibly helpful. 
 
I would recommend you to leave Feedback in our Community. Our Teams are frequently looking through the posts in order to get ideas on future additions to the Software. The more a votes a post gets, the higher the chance that the feature will be added in the future. Thank you!
 

0


When will HTML be supported in content blocks? I agree with some in that it is a blocker for us as we use a lot of custom HTML elements within our articles. 

0


Is it possible to create a Content Block, or an entire article, that appears in more than one Help Center?  Since we have multiple HC / Brands in our instance and we want to show the same article in multiple ones... it would be good to avoid having to copy it and then maintain two identical copies.

0


image avatar

Arianne Batiles

Zendesk Customer Care

Hi Mark, 

Content blocks can now be reused to one or more articles across different help center brands in your account. See Creating and Inserting Reusable Information with content blocks for more details. 

0


Arianne Batiles is there any update on content blocks with images?

Seems this feature has missed several deadlines, and content with only text is a fairly poor customer experience (let alone videos or gifs), especially content that is important enough to be considered for content blocks.

1


image avatar

Arianne Batiles

Zendesk Customer Care

Hi Luke Bradshaw,

We can indeed add images to content blocks. Images can be similarly inserted into content blocks to how you include them in help center articles. You can add up to 50 images per content block. Sharing with you our article on this here

I would also like to share our guide on how you can work with images in the media library. Hope this helps! 

0


Please sign in to leave a comment.