Change Global Article Tag

Hey :wave:

I use a couple of custom post types in combination with the layout builder. By default, the Single layout type wraps the entire site’s content in an article HTML tag.

This is great for your typical blog posts but not quite ideal on other non “article” pages you may want to use the layout builder on. Unfortunately, I wasn’t able to find an option to disable this or to change the article tag to a simple div tag, for example. So my question would be, how could I change this?

The WC Single layout type, for example, does not do this (since it’s literally meant for Woocommerce and therefore shouldn’t use the article tag), but that layout type is tied to the Products post type and can’t be assigned to any other post type. If there were a workaround, like a snippet of code for my functions.php that would allow me to manually assign a WC Single layout to a custom post type, that would work as well.

All the best,
Oguzhan

Hi Oguzhan,

Thanks for reaching out.
You can set the HTML tag to Div or anything else for the Section instead of the Article as shown in the screenshot.

Hope it helps.
Thanks

Hi Tristup,

I’m aware of what you described, but that’s not what I was referring to. I know that I can change the HTML tag of the individual sections within the builder. But all those sections are by default wrapped in an article HTML tag.

Best,
Oguzhan

Hey Oguzhan,

There’s no option in our theme settings to change the article HTML tag. What you are trying to achieve will require changing the template but customization is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Thank you for understanding.

Hi Marc,

Well, if this could be forwarded as a feature request of some sort, that’d be helpful.
Also, I’m very comfortable customizing my site myself. If you or a developer could point me in the right direction by letting me know which one of the templates in the theme files handles the Single layout type output, that’d be greatly appreciated.

Best,
Oguzhan

Hi Oguzhan,

I will surely check that and if there is any possibility I will add this as a feature request so it might be taken into account in the future.

Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.