1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, 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

Blog Post Header

Discussion in 'Basic Support Forum' started by Sharon Marks, Dec 10, 2019.

  1. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

    When there is no featured image for a blog post I would like it to pick one of three random images to use as the blog post header. Do you have any pointers of how I could make this happen? Thanks!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    If you are using our custom blog post feature, then you can set a static blog header background image for those blog posts that didn't have any featured image. It's just a static background image, not one of three random images.

    To achieve that, try the below CSS in Divi > Theme Options > Custom CSS:
    **Change YOUR BACKGROUND IMAGE URL to your background image URL.
    Code:
    Log In or Sign Up to view this code.
     
  3. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

    Thank you! That will work for that. One more thing...Is there a way to use the image I specify above (or can I use a new image) behind the header text but leave the featured image the same? Please see attached image. I would like to replace the image with the star on it with a more branded image but retain the featured image (the image of the turtle).
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now
  4. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

    Here's the photo

    Photo.jpg
     

    Attached Files:

  5. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    To set a static background image for all your blog header, you can try the CSS in Divi > Theme Options > Custom CSS:
    **Change YOUR BACKGROUND IMAGE URL to your background image URL.
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Freelancer' Divi layout for all Pro members:View Demo