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

Change Element ID?

Discussion in 'Free Divi Community Forum' started by Joseph, May 2, 2019.

  1. Joseph

    Joseph New Member

    *I apologize if this is already a question, i did my due diligence and tried to search this forum but didn't see exactly what I was looking for. *

    Is there any way to change the id for elements? I'm using JQuery to control a slider and each of the slider buttons id is 1,2,3,4 etc. When i make a second and third section with a similar set up (slide and controllers) all the slides are affected by the first section controllers BECAUSE Divi assigns the same element id to each little controller button.

    I attached a photo with maybe some more clarity. Again i apologize if i am asking a dupe or posted in the wrong section i literally signed up just to ask this question >.<
     

    Attached Files:

    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring modern overlay archive blog layout with hover effects:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Still don't quite understand what you're explaining, but changing element ID is not possible with default Divi settings. You will need custom jQuery code to change the CSS ID of the slider elements.
     
  3. Joseph

    Joseph New Member

    Any direction to where i might find a code like that? I cant be the first person to have ever asked about changing css id in Divi. Thanks so much for you help!!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade dynamic background hover design for your Divi site without using any plugins:View Demo
  4. Joseph

    Joseph New Member

    I don't get why divi would give similar elements the same id? eg two different sldiers on the same page having identical id's for their elements. Any custom CSS would be tricky with that.
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    There shouldn't be 2 similar CSS ID. From what I see from my demo site, there isn't any CSS ID in any of the slider elements. Which elements are you referring to?

    If you're referring to the tiny dots, it's not part of the slider. It's just a general div section, shared among all the sliders. Also I didn't see any CSS ID in it. See screenshot below:

    upload_2019-5-3_22-45-21.png
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo