In WordPress, CSS is not always your best solution when it comes modifying a style. Sometimes, you need to use php and consider applying hook to overwrite the default value.
In this tutorial, I’m going to walk you through how you can transform your Divi blog module to look like Instagram.
Are you ready?
Note: Please make sure to install a Child Theme. If you’re not sure what child theme, check my video here.
Step 1: Video Stamp: (12:03) – Add A Hook Function: Add_filter
Go to Appearance > Theme Editor > Functions.php > Paste the code below.
Optional: If you want to add additional zoom in effect on blog module. Kindly add a class ID in your blog module called #square-blog and add the following code in Divi > Theme Options > CSS Code or put it on the “Child Theme” > Style.CSS
If you want to add Instagram feed style in mobile version, simply put the additional CSS code in the Theme Option > Custom CSS