Title: Modify main-modules.php in Divi child Theme
Last modified: August 30, 2016

---

# Modify main-modules.php in Divi child Theme

 *  [drasier](https://wordpress.org/support/users/drasier/)
 * (@drasier)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/modify-main-modulesphp-in-divi-child-theme/)
 * Hello!
 * My first post here, I’ve been searching a lot today looking for a solution to
   my problem. Hope we can work this out! 😉
 * I’m developing a new WP site using Divi (as usual) and I want to change the way
   divi shows the information in the “Blog” (4 most recent posts) module.
 * I’ve managed to do a lot, but now I need to modify this core file:
 * wp-content/themes/Divi/includes/builder/main-modules.php
 * In here Divi creates the <article> list and I want to change the information 
   shown in each <article>. For example:
 * – The featured image is shown as a <img> inside a link. I need this to be shown
   as a background-image of the <article> element.
 * I already tried a lot but I can make WP ‘read’ my “custom-main-modules.php” located
   in the child-theme.
 * Is there any way we can modify the .php in the /includes folder?
 * Thanks a lot for your support!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [tatiyaki12](https://wordpress.org/support/users/tatiyaki12/)
 * (@tatiyaki12)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/modify-main-modulesphp-in-divi-child-theme/#post-6695743)
 * Hi, we had same problem on how to customize the main-module on the builder.
 * i can`t even update my client website due this matter also i tried to do the 
   same path on my child theme but still not working.
 *  [iz4atkal](https://wordpress.org/support/users/iz4atkal/)
 * (@iz4atkal)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/modify-main-modulesphp-in-divi-child-theme/#post-6695786)
 * Bump for having the same issue.
 * We need to put the pagination below the blog headline. It can easily be done 
   with the parent ‘main-modules.php’ file, but it won’t get recognized as a file
   from the child-theme.
 *  [phillystyle123](https://wordpress.org/support/users/phillystyle123/)
 * (@phillystyle123)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/modify-main-modulesphp-in-divi-child-theme/#post-6695806)
 * Anybody figure this out? I’m having the same issue -can you provide a solution?
 *  [davidyurchuk](https://wordpress.org/support/users/davidyurchuk/)
 * (@davidyurchuk)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/modify-main-modulesphp-in-divi-child-theme/#post-6695818)
 * I just found this post and shortly after, found this article from ElegantTweaks:
 * [http://www.eleganttweaks.com/divi/change-replace-modules/](http://www.eleganttweaks.com/divi/change-replace-modules/)
 * I haven’t fully reviewed it, but it looks promising in solving our dilemmas. 
   Good luck!
 * Best,
    DAY

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Modify main-modules.php in Divi child Theme’ is closed to new replies.

## Tags

 * [child](https://wordpress.org/support/topic-tag/child/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 5 participants
 * Last reply from: [davidyurchuk](https://wordpress.org/support/users/davidyurchuk/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/modify-main-modulesphp-in-divi-child-theme/#post-6695818)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
