Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #953301

    Hi @All,

    we have trouble with the accordeon (only onen element active) and the position of the active element. After clicking on one element the active accordeon opens correctly but je does not get focus and the scroll position is wrong, so that the heading is behind the header amd not visible.

    #953727

    Hey pixelsaft,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #953745
    This reply has been marked as private.
    #954387

    Hi,

    Thanks for that, I get the same problem on my end. It seems to be related to this file: jquery.smoothState.functions.js. Is that something that you have added on your own?

    Best regards,
    Rikard

    #954519

    Hi Rikard,
    we added the file jquery.smoothState.functions.js by our own and tested the accordion without the file, further. But the bug perfom with and without the custom file.

    Do you know how we can setup a fixed top positon for the active toogle?

    Best regards,

    Timo

    #955018

    Hi Timo,

    Thanks for the feedback, though I haven’t seen this happen on any other sites so I think it’s due to a customisation you have made, or maybe a plugin conflict. All I can see in the console is the file I mentioned earlier, could you remove it so that we can look at your site without it please?

    Best regards,
    Rikard

    #955218

    Hi Rikard,

    thank you for your respond. We removed the file.

    Best regards,

    Timo

    #955576

    Hi Timo,

    Thanks for that, though I’m seeing the same behaviour as before like you mentioned. It looks like some .js files are cached by your caching plugins, could you try to clear and turn of the caching to see if that is the cause of the problem?

    Best regards,
    Rikard

    #955587

    Hey Rikard,

    we have disabled the cache plugin and the browser cache is cleared, too. But this does not solve the problem.

    What do you think?

    Thanks,
    Timo

    #955939

    Hi Timo,

    I’m not sure to be honest with you, could you try updating the theme to the latest version (4.3.1) to see if that helps? http://kriesi.at/documentation/enfold/updating-your-theme-files/

    Best regards,
    Rikard

    #957687

    Hi Rikard,

    now we have updated the template to the latest version and the scroll position do not work as expected, unfortunately.

    Do you have another suggestion?

    I look forward to your reply.

    Best regards,
    Timo

    #959133

    Hi,
    I read that you removed the “jquery.smoothState.functions.js” but it is still loading when I view your page, please try to remove it.
    Can you please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

    #959429
    This reply has been marked as private.
    #959462

    Hi,
    Thank you for that, I took a look at your accordion and believe is is working correctly.
    When opening one the content and title show, I see you have none set to Initial Open, so you must click to see one.
    As I re-read your first post, I believe you expect the active toggle to take focus and scroll the page to be shown.
    But this is not how the toggle works, the toggle opens downward and closes up, but doesn’t take focus. That is if the title is up and half way behind the header, the title will not show. You can see this on our demo site. Here is an example of the title behind the header:
    2018-05-20_095650
    Here is another example of the title at the bottom of the page:
    2018-05-20_100553
    I hope this explains well.

    Best regards,
    Mike

    #1150188

    you could put this in functions php (always scroll to top af active accordion)

    function accordion_top(){
        ?>
        <script>
    	
            jQuery(document).ready(function($){
    
    $( '.toggler' ).click( function( ) {
    var pane = $(this);
    setTimeout(function(){
     var $panel = pane.closest('.av_toggle_section');
        $('html,body').animate({
            scrollTop: $panel.offset().top
        }, 500); 
    }, 500 );
    });
    
            });
        </script>
        <?php
    }
    add_action('wp_footer', 'accordion_top');
    #1150368

    Hi,

    Thanks for sharing @StephanPfluegler, it’s much appreciated :-)

    Best regards,
    Rikard

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.