skip to Main Content

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


  1. There is usually a page (under pages in WordPress) that has an “Archive” template. Check it out and edit that template.

    enter image description here

    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

    Login or Signup to reply.
    1. Make a copy of the index.php file from the Divi parent theme
    2. Paste the file into your child theme directory
    3. Change the name of the file to archive.php
    4. Modify the html/php as you need

    That should work 🙂

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search