Okay
  Public Ticket #425365
Toggle panels not working
Closed

Comments

  • Chiara started the conversation

    Check out the toggle panels at the bottom of the page. When I click on any of them, the screen flickers and it takes me to the top of the page (instead of just opening the toggle). Please let me know how to fix. Otherwise loving Salient! Thanks!

  • Chiara replied

    Update - I tried adding toggles on other parts of my site and they also hit this bug. I tried the following code in init.js but it didn\'t help. Any ideas? I am on a tight deadline for tomorrow at 2pm PT and really need this resolved.

    1. //toggles
    2. $(\'body\').on(\'click\',\'.toggle h3 a\', function( e ){
    3. e.preventDefault();
    4. if(!$(this).parents(\'.toggles\').hasClass(\'accordion\')) {
    5. $(this).parents(\'.toggle\').find(\'> div\').slideToggle(300);
    6. $(this).parents(\'.toggle\').toggleClass(\'open\');
    7. //switch icon
    8. if( $(this).parents(\'.toggle\').hasClass(\'open\') ){
    9. $(this).find(\'i\').attr(\'class\',\'icon-minus-sign\');
    10. } else {
    11. $(this).find(\'i\').attr(\'class\',\'icon-plus-sign\');
    12. }
    13. if($(this).parents(\'.toggle\').find(\'> div .iframe-embed\').length > 0 && $(this).parents(\'.toggle\').find(\'> div .iframe-embed iframe\').height() == \'0\') responsiveVideoIframes();
    14. if($(this).parents(\'.full-width-content\').length > 0) setTimeout(function(){ fullWidthContentColumns(); },300);
    15. return false;
    16. }
    17. });


  • Chiara replied

    Hi guys any updates on this?

  •  8,849
    Tahir replied

    Hey,

    Try turning of One page scroll support in Salient Theme Options Panel-> General settings section . Is the custom js you added not working or the theme feature is not working ? .

    -T


    ThemeNectar Support Team 

  • Chiara replied

    Hey I just disabled One Page Scroll and it still isn\'t working. The theme feature was not working, I added custom JS and it didn\'t work, and so I removed it - theme is still not working. Please advise?

  • Chiara replied

    Hey guys any updates on this? Sorry to keep badgering you but we have a lot of info in our toggles.

  • Chiara replied

    It is the KissMetrics plugin - this is a pretty popular tool...not sure if this is something you fix or they fix? Thanks guys

  •  8,849
    Tahir replied

    Hey,

    Third party plugins conflicts need to be resolved by plugin developers .

    Thanks


    ThemeNectar Support Team