Divi by Elegant Themes is another theme that I often use. It is a great all purpose theme and is highly customizable. I especially recommend it for beginners and people who really want to put together a good looking site quickly. It does have a few drawbacks and is not quite as feature rich as some themes on Theme Forest. Some of these bloated themes can really be slow though and Divi is pretty snappy in my opinion.
So I started another site recently using Divi. While the Divi builder is great for throwing together nice looking layouts pretty fast, if you ever think you may change themes it may also make it hard to do so. Take a look at this post by Chris Lema for a little more in depth analysis of switching from Divi. What I am writing about here is the lack of the read more button after a each excerpt in your blog feed.
No read more link?
On the recent Divi site I made my first post using the default editor. I did this because I don’t think the builder plugin is always necessary. Especially for blog posts and also because I like to see the word counter at the bottom of the default editor. I made a short 500 word post, went to my home page displaying my latest posts and saw my truncated post. Fine, it looked good, except there is no read more link. So that means I have to manually add the read more tag into each post? That seems ridiculous. I searched around and could not really find a good way to do this. Elegant themes published an article in 2014 showing how to do this. However it did not work for me for what ever reason.
How to auto add a Divi read more button to every post
As usual I delved into the code myself. First off, I always use a child theme. For Divi I usually just use the Barebones Divi Child Theme . First I copied the index.php from the Divi parent theme into my child theme. Then I went into the file through in Appearance > editor and added the following code:
This will put your default Divi button after each truncated post in your feed linking to the entire post. To style it just go to your theme customizer and adjust the button settings accordingly. Hope this saves someone the trouble of having to search around for a simple solution to a simple problem, with not many answers on how to do it out there.