• Resolved mauri01

    (@mauri01)


    Hello,
    I use generatepress template and activated the scroll to the top footer icon.

    now I see, that both don’t work together, as

    your code
    echo ' <div class="fcb-header"><a href="#" class="close-fcb-modal">

    and there php snippes

    add_filter( 'generate_smooth_scroll_elements', function( $elements ) {
      $elements[] = 'a[href*="#"]';
      
      return $elements;
    } );

    both use href*=”#”
    what could I do to avoid this problem?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Christoph Nagel

    (@cmsgeek)

    Hi @mauri01 ,
    you can change the code as follows, this will still close the modal.

    echo ' <div class="fcb-header"><a href="" class="close-fcb-modal">
    or
    echo ' <div class="fcb-header"><a href="#close" class="close-fcb-modal">

    Best regards,
    Chris

    Thread Starter mauri01

    (@mauri01)

    Thanks, Chris

    I guess my fault, your plugin has an open trigger,

    echo ' <a href="#fcb-modal" class="fcb-link-button">

    what conflict with it too, as it does not open.

    they advise me to
    $elements[] = 'li a[href*="#"]';

    the anchor scroll function triggers only in li.

    But would it make no sense to be compatible with a highly rated light way template?
    as you focus on speed too.

    Kind Regards

    and for info, your plugin works nicly with WPForms Lite too.

    • This reply was modified 3 years, 7 months ago by mauri01.
    Plugin Author Christoph Nagel

    (@cmsgeek)

    Hi @mauri01 ,

    I finally had the chance to test my plugin with the generatepress template. Currently I cannot reproduce the error. I have activated the To Top button in the generatepress template, as well as the plugin. Both work together on my test system without problems, I also get no message in the error console.

    Best regards,
    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Concerning scroll to top and floating button’ is closed to new replies.