Offset in Blog module not working with Divi Children 2.0

Besides Divi I’m using the Divi Children plugin (developed by Luis Alejandre who runs divi4u.com). It’s a great plugin to help you create a child theme for Divi and adds some extra functionality as well.

I recently updated to Divi 2.3 where the offset function was introduced in the blog module. However, it didn’t want to work. Click on Read more to learn about the “bug” and the fix.

The offset

The offset function in the blog module is a great addition. It basically allows you to have several blog modules on the same page, and you can tell each module how many blog entries it should skip. For example you can have a wide blog module on the top showing the latest entry, then another one below with 2 columns. In the second one you obviously don’t want to show the post that already appears on the top, so you just need to set the offset value to 1, and ta-daaaa!

This is what I expected, but the offset didn’t work.

The “bug”

Thanks to the help of ET support (these guys are amazing!!!) they quickly figured there’s something wrong with the child theme. More specifically it is a child theme generated by the Divi Children 2.0 plugin (with Divi Children Engine Version: 1.0.0).

I did some digging and found out, that the engine is missing some lines of code that have been added to Divi with the 2.3 update. So these need to be added to the Divi Children Engine. I’m sure this will be fixed in the next version of the Divi Children plugin. But if you need a solution now, then keep reading.

The fix

And here it becomes a bit technical, but don’t despair, you just need notepad or your favourite code editor and copy a few lines of code. (Don’t forget to make a backup first, just in case!!!)

3 hozzászólás

Daniel
2015. június 10. szerda-n 12:03 közelében

Thanks a lot!
I was wondering for a few days why this Offset number options didn’t work. I pinpointed the problem to divi_mod_functions.php, searched the web and found your post. I have just a question. There has been new releases of the divi children plugin and the bug was not solved. Did you inform Luis Alejandre?What will happen for the next release? The fix will have to be done again I suppose.
Köszönöm szépen

Yes, I informed Luis about it, however I dunno whether he implemented it or not.
There’s a new version of Divi Children called Engined, but I didn’t manage to test it yet, so I have no clue whether it has been fixed.

You can subscribe to the rss feed if you want, it’s on the right side (RSS (bejegyzés). I also recommend to check my other blog which is focusing on Divi and everything related under http://www.divi-magazine.com in English.