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

Solved Customized Read More Buttons

Discussion in 'Free Divi Community Forum' started by Sharon Marks, Sep 7, 2020.

  1. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

    I am trying to find a way to change the text on blog buttons depending upon the blog category. So if it is a video the button will say Watch Now, If list is a podcast it will say Listen and if it is a traditional blog post I want it to be the traditional read more button. I have been spinning my wheels trying to figure it out. I think the best way is to use Custom Post Types but is there a way to show all Custom Post Types in one blog module? See https://lehm.wpmudev.host/media/ to see what I am talking about. I did it using the blog post grid but it doesn't do exactly what I want either. Any suggestions?
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below code in WP Admin > Divi > Theme Options > Integration > Body Code:
    Code:
    Log In or Sign Up to view this code.
    Tweak it to fit your need.
     
    Sharon Marks likes this.
  3. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Freelancer' Divi layout for all Pro members:View Demo
  4. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

    You are amazing! That worked perfectly. Thank you so much for your help.
     
  5. Sharon Marks

    Sharon Marks New Member
    Divi Ultimate Child Theme

    Hello - Any idea how I could use jquery to open these specific buttons in a new window? I don't want all read more buttons to open in a new window just these two categories. Thanks! Sharon
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    To open the link in new tab, try the below code:
    Code:
    Log In or Sign Up to view this code.