I’m a pretty decent wordpress coder. Maybe I’m being stupid, but I can’t work out how to edit the Divi blog module layout… basically the archive.php
for the Divi theme – it doesn’t seem to have one.
What I want to do is change the HTML of the blog when it added to the Divi page builder as a module… How do I go about editing the code for that?
(I’ve searched everywhere and they all talk about CSS changes, but I want to edit the HTML that is output as well).
Thanks!
EDIT: To clarify my question, I’m looking for specific help with DIVI. I have a good understanding of WordPress, and know the usual hierarchy structure. My question for Divi is more to do with the blog module that you add to the Page Builder – that’s the bit I want to edit the HTML output of.
All google searches (and stackoverflow!) point me to CSS changes only, but I want to edit the HTML output of that page builder (Which I’m guessing is using a shortcode)
3
Answers
There is usually a page (under pages in WordPress) that has an “Archive” template. Check it out and edit that template.
You can check more about page templates (and maybe even creating your own, if you wish) here – https://www.elegantthemes.com/blog/resources/an-introduction-to-wordpress-page-templates
That should work 🙂
You can use Divi Builder for categories pages or custom categories pages.
You simply have to go in Divi > Theme Builder. Then, go into a new model, and select the archive page you need. Finally, you can add custom content within the builder into the header, body or footer. That content will be available in the archive pages you selected.