Add A Custom CSS Class
We are going to starty by adding a custom CSS class to the Divi Blog module. Using a custom class like this will make sure that our code only affects the module with this class, rather than affecting other Blog modules on your site.
Open the Divi Blog module settings and go to the Advanced tab and open the CSS ID & Classes toggle. From there, copy and paste or write “pa-blog-no-links” into the CSS Class input field, as shown in the the screenshot.
Where To Add The Code Snippets
Now that you have added the custom CSS class to the module, you can proceed and choose one or more of the snippets below. Each one is labeled and you can use either one, two, or all three of them.
If you are using our free Divi child theme, place the snippet(s) into the style.css file. Otherwise, place them 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.
Remove The Divi Blog Module Title Link
This first snippet will disable the cursor on the title link. By default, all of the Divi Blog module titles are clickable links that take you to the individual blog posts. But for some reason if you want to disable this, just use this snippet and the users will not be able to click on them.
Remove The Divi Blog Module Author Link
The page this links to would show all posts by the author, but if you only have one author on your blog, then there is absolutely no reason to link your visitors to separate author archive page. So that would be one reason you may want to remove the link from the author in the Divi Blog module meta.
NOTE that if you are also wanting to remove the category, you can just use the snippet for the category as it will apply to the author as well.
Remove The Divi Blog Module Category Link
If you simply want to showcase the blog post category without actually sending users to the category archive page, then this snippet is perfect for you. This would go great with our other tutorial about highlighting the Divi Blog module meta over the featured image.
NOTE that if you want to only hide the link on the category without affecting the author or comments count link, then you will need to add target the link more accurately. See the video to learn more about a workaround for that.
Be sure to watch the video to see all of this live and in action! Let me know in the comments if you enjoyed this!