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 Trying to use css property focus on buttons but the text is not changing

Discussion in 'Free Divi Community Forum' started by emmsmythuk, Feb 9, 2023.

  1. emmsmythuk

    emmsmythuk New Member

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. emmsmythuk

    emmsmythuk New Member

    I also want the "All" button to be selected by default when the page loads or refreshes.
     
  3. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    This is the CSS code to style the active button:
    Code:
    Log In or Sign Up to view this code.
    **Though it seems like your custom jQuery doesn't change the active CSS Class when other buttons are clicked. And so the active button will always remains at the All button.
     
    1. PRO MEMBER PERKS Divi.Help Header AI Generator - Try the power of AI to generate a custom Divi header for you:Try Now
  4. emmsmythuk

    emmsmythuk New Member

    Thank you for the help i figured it out. However i have another issue if you can guide me on that too i will really appreciate it. I am using Divi filters plugin found here (https://wordpress.org/plugins/filter-for-divi/) to filter the Divi blog module so if you click any button like the "News English" button the posts below get filtered but they appear in random order. Is there a way to make them appear in the order they were published as in the date they were published.Any help regarding this will be greatly appreciated.
     
  5. emmsmythuk

    emmsmythuk New Member

    I am also willing to buy any premium plugin if it can be achieved using any plugin.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More