• Resolved aliinxnt

    (@aliinxnt)


    Hello!
    I’m making accordions with a large amount of text. When you read to the bottom and click the next accordion, the large amount of text is collapsed and I’m left at the bottom of the page.

    I’d like to scroll to the top of the specific active panel that is open.

    I found this code from internet but don’t know how to apply in Elementor Accordion

    <script>
    jQuery( document ).ready( function( $ ) {
    $( ‘.kt-blocks-accordion-header’ ).click( function( ) {
    var pane = $(this);
    setTimeout(function(){
    var $panel = pane.closest(‘.kt-accordion-pane’);
    $(‘html,body’).animate({
    scrollTop: $panel.offset().top
    }, 500);
    }, 300 );
    });
    });
    </script>`

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    Did it happen after an update?
    Have you tried regenerating CSS and syncing the library?

    If you want to add scripts through Elementor, have a look at this page –
    https://developers.elementor.com/add-javascript-to-elementor-widgets/

    Other than that, can you send us your website URL?

    Thread Starter aliinxnt

    (@aliinxnt)

    not there is no issue of updates. I want to explain in my accordion I have a huge amount of text therefore when someone next other accordion the last open accordion was closed which have huge amount of text and when it’s closed the page move from the position to bottom just coz of huge amount of text. there for I add to shared JS which I got on internet. I also have another issue in accordion I am adding button using Elementor and setup that button for popup but on my elementor editing mode that’s working and show the popup but on the user end that redirects to 404 error page. i don’t why this is happened also please guide on these two issues.

    Hi,

    I can’t enter the site that you send us,

    can you send me the correct URL, please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Accordion issue on website’ is closed to new replies.