Code by Day | Explore By Weekend

How To Style Customize and Change The Divi Blog Read More Button Tutorial by Pee Aye Creative

How To Style And Customize The Divi Blog Read More Button

This tutorial will show you how to style and customize the Divi Blog module read more link and turn it into a button with an icon and custom text!

Adjust The Basic Divi Design Settings

Start by styling what you can in the Divi settings. The weird thing is that they have incomplete settings, treating it like text instead of a button. Strange, but that’s why we need this tutorial and snippet.

settings for the Divi Blog module read more button

So go ahead and start with things like the font, font weight, text size, text color, etc.

Make The Divi Blog Read More Text Link Into A Button

Now that we have some basic styles set, let’s continue by adding some CSS to make it look more like a button. We will be adding a background color, border, and hover effect.

If you are using our free Divi child theme, place this snippet into the style.css file. Otherwise, place this in your Divi>Theme Options>Custom CSS code box. If you need help, check out our complete guide on Where To Add Custom Code In Divi.

/*style the Divi blog link text as a button*/

.et_pb_post a.more-link {
  color: #ffffff;
	background: #0071fc;
	border: 2px solid #0070fc;
	padding: .7em 1.3em;
	margin-top: 20px;
	border-radius: 50px;
	text-transform: capitalize;
	display: inline-block;
	transition: all 0.3s ease-in-out;
}


/*style the Divi blog link text as a button on hover*/

.et_pb_post a.more-link:hover {
	background: transparent;
	color: #0070fc;
	border: 2px solid #0070fc;
	transition: all 0.3s ease-in-out;
}

Add An Icon To The Divi Blog Read More Button

To add some more character to our button, let’s add an icon to it. This is especially important if you alrady use icons on your buttons across your site. This will help you be consistent and fill in a missing gap where there are missing Divi settings.

/*add an icon to the Divi blog read more button*/

.et_pb_post .more-link:after {
	content: "24";
	font-family: ETModules;
	vertical-align: middle;
	margin-left: 10px;
}

The easiest way to change the icon is to go to the Elegant Themes blog post

Change The Actual Read More Text Terminology Into Something Else

A great way to customize this button is to change the words. So instead of using the default “Read More,” let’s change it to something else. In my example, I am going to change it to “View Full Post,” but of course you can make it say anything you want by replacing the words in the snippet.

If you are using our free Divi child theme, place this snippet into the scripts.js file and remove the <script> tags at the beginning and end. Otherwise, place this in your Divi>Theme Options>Integrations tab in the "Add code to the < head > of your blog" code area.

<script>
	jQuery(document).on('ready ajaxComplete', function () {
		//Replace read more link text
		jQuery(".et_pb_post a.more-link").html(function () {
			return jQuery(this).html().replace('read more', 'View Full Post');
		});
	}); 
</script>
14
Last updated Jan 11, 2021 @ 5:47 pm

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative Co in the beautiful state of Pennsylvania. He loves helping small businesses, exploring, building websites with Divi, and teaching others.
Divi Adventure Club Product And Course Membership by Pee Aye Creative

Become A Member!

Gain access to everything we offer!

Learn More

Recent Posts

Leave A Response!

Subscribe
Notify of
guest
16 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Cletus
Cletus
5 months ago

Thank you so very much for this article.
I have a question, I added the .js script but it did not change the text

Jim Offutt
4 months ago

My designer wants different text for each post. We plan on reusing the same post so I pnly need to do about a dozen of them. Just change the date and content and repost. SO maybe I should be using an individual class for each? Where can I put the class in a post? Using DIVI for the content area. THanks.

Senan
Senan
4 months ago

Hi Nelson,

Thanks for the useful tutorial!

Is there any way to display custom fields (from the ACF plugin) on Divi Blog module in Grid mode?
Is there any plugin to inject a custom field value under the post title?

It’s possible to do it on Elementor loop using Elementor PRO and Elementor Custom Skin plugin.

Amy Valentine
4 months ago

Perfect! The js code was exactly what I needed to edit the Read More text only. Thanks Nelson:)

Tom Wright
2 months ago

Great wee tutorial- this is exactly what I’ve been looking for, Thank you, Nelson

TT619
TT619
2 months ago

This is wonderful. Can it be achieved for only selected blog modules – not all?

bobo bobo
bobo bobo
1 month ago

Hi, How to solve this in the case of a multilingual website? Otherwise a perfect website!

Reine-Marie
Reine-Marie
21 days ago

Thanks you so much for the quality of your Tutorials Pee Aye Creative !
But I encounter a problem on hover effect read more button blog : I exactly follow your instructions but in hover effect I got nothing but just only the border with any text inside (it doesn’t appear). (in my case Color is #0021be)
I don’t know why it doesn’t work or what could be conflict ?
(I use the Divi builder)

Thanks for your help and your answer !

Shop Our Divi Products

Plugins • Courses • Templates

Visit The Shop

Divi Adventure Club Product And Course Membership by Pee Aye Creative

Become A Member!

Gain access to everything we offer!

Learn More

Divi Tutorials On YouTube

Join over 4,700 others and subscribe to our helpful Divi videos!

Visit Our Channel

Pin It on Pinterest

0

Your Cart