Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello, you can add a template instead of a text, just create your template under Templates > Add New and select it on your accordion.

    Thread Starter mstudioIL

    (@mstudioil)

    Thanks for the answer, not sure I understand, how do I add template to the accordion?

    When you open an accordion repeater, in the Select Source option, instead of Custom, select Template and you will be able to select a template created under Templates below Elementor in your dashboard.

    Thread Starter mstudioIL

    (@mstudioil)

    OK, so if create 5 items I need 5 templates, and if I create more items I need to create more templates and add them to the accordion?

    Exactly 👌
    Sorry, there is no other way to do it, or if you really want just to add a button, then you can add it with HTML and with CSS instead of creating 5 templates just to add text with buttons.

    Thread Starter mstudioIL

    (@mstudioil)

    Thasnks, I warp the text with div, added class and use it to create the CSS,
    It opening popup.

    That’s very weird, can you send me your site url where you have this issue?

    Thread Starter mstudioIL

    (@mstudioil)

    Hey, no need.
    I fixed it, just other question, I want to use jQuery to get the title of the item I clicked on, how can I do it?
    I need it to be send in form the user send the company.

    You can use JS via your child theme.
    I misunderstood about the form, do you an example?

    Thread Starter mstudioIL

    (@mstudioil)

    It is OK, I need to know the classes to use, I tried but I didn’t got the title.
    I want to get “Accordion #1” when I click the first item, “Accordion #2” for second and so on.

    $('.zeus-accordion-title').click(function(){
    		title = $(this).text();  
    		console.log(title);
    	});

    didn’t work

    You can do it with this code:

    $('.zeus-accordion-title').click(function(){
        console.log($(this).text().trim());
    });

    But the big issue is that the accordions will not open anymore as your code will load before the widget code.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Accordion and button’ is closed to new replies.