1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Where can I adjust the Blog post list article item css?

Discussion in 'Free Divi Community Forum' started by Grant Senior, Jan 5, 2024.

  1. Grant Senior

    Grant Senior Member

    I am trying to solve a design issue that I have asked about here https://divi.help/threads/how-can-i-list-blog-posts-in-grid-style.11458/ - I have a feeling the designer is not going to go with results from what I am trying to achieve in the solutions discussed on the link so am also looking at a css based solution as described below.

    Please see the screenshot below. I am trying to get the Divi Blog module to output the list content in a grid pattern across the page. The styled list in the top of screenshot is how Divi loads the output but I want the output to display as I have adjusted things via the console.

    I can't make the adjustments anywhere in the Custom Code section of the Divi Blog module and I have tried adding the styles to the Divi style.css file but I'm not having any luck targeting the article element. Can anybody see what I am doing wrong?

    In the Divi css file I have added the following to target the article '.trgt-blog-posts .trgt-row .trgt-posts .et_pb_blog_1:not(.et_pb_blog_grid_wrapper) .et_pb_post {
    styles here
    }

    The first class in the path is a custom class I added to the Section, the second is a custom class I added to the Row the third is targeting the Blog module.

    Any help gratefully appreciated!
    Grant

    console-style-adjustments.jpg
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade rolling text design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Since you're our Pro Member, you can access to our Divi Block builder: https://divi.help/pages/divi-block/

    In Divi Block, there's similar premade design that's close to what you want to achieve, by using just one single blog module. See screenshot below:

    upload_2024-1-6_16-30-39.png

    If you need the title to be in the center, then just go to the Blog module settings > Advanced > CSS Class & add: free-blog-title-center

    Let me know if it helps.
     
  3. Grant Senior

    Grant Senior Member

    Thanks! When I add the class 'free-blog-title-center' in the CSS Class field, it removes the existing classes that were in the module already. Are yuo able to tell me what the full list should be with the extra one you suggest?

    Cheers.
     
    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    The full list of the CSS Classes would be: free-blog-list-2 free-hover free-blog-title-center
     
  5. Grant Senior

    Grant Senior Member

    Hey, thanks for your help! I didn't end up using the Divi Block element in the end, and went with a code customization of the default Blog element. But I wouldn't have got there without your help! So, thanks again.

    custom-blog-layout.jpg
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring unique comment design on single blog post page:View Demo