Viewing 30 posts - 1 through 30 (of 34 total)
  • Author
    Posts
  • #1494880

    Hi all

    Problem:
    – Multiple CTA buttons scroll to the same form
    – Only first button works correctly
    – Others jump up/down

    What I tried:
    – unique anchor IDs
    <div id=”kontaktformular-1″></div>
    <div id=”kontaktformular-2″></div>
    <div id=”kontaktformular-3″></div>
    – anchors directly on the section

    Expected behavior:
    – All buttons should smoothly scroll to the form

    URL:

    Thanks!

    #1494889

    Hey Philipp,

    You need to add the anchor as the link in the buttons, then add the id to your form.

    Best regards,
    Rikard

    #1494924

    Hey Rikard

    Thank you, let me show you the code I currently use:

    1) Anchors in all buttons:
    <div style=”text-align:center;”>
    Leitfaden jetzt kostenfrei anfordern
    </div>

    2) Added the ID to my form:
    “kontaktformular”

    Please reproduce my problem:
    Only first button works, other belo buttons don’t work.

    Found some issue with the soft scroll? first time press button, second time?

    Thank you for looking into thsi issue.

    Philipp

    #1494929

    Hi,

    You have not filled in a link in the buttons which are not working:

    <div style="text-align: center;"><a class="avia-button avia-size-large avia-color-theme-color" href="#" data-avia-scroll-to=".kontaktformular">Leitfaden jetzt kostenfrei anfordern</a></div>

    The href value is where you put the link, and linking to a # sign will go no where. Also, you don’t need this bit:

    data-avia-scroll-to=".kontaktformular"

    Best regards,
    Rikard

    #1494931

    Thank you so much – Rikard, just made the suggested corrections on all scroll-buttons.

    Seems 1st button scrolls, but from 2nd to last button the page
    moves up and down to the next button,
    but not to the form.

    Can you have another look?

    Much appreciated!

    #1494961

    Hi,

    Thank you for the inquiry

    We’ve found this script error in the console, which might be contributing to the issue. Did you add any custom scripts or modifications to the theme?

    kuendigen/:537 Uncaught ReferenceError: jQuery is not defined
        at kuendigen/:537:6
    

    Best regards,
    Ismael

    #1494971

    Hi Ismael

    Thank you for coming back.

    Nothing special (standard plugins like staging, Yoast, etc.) and only custom CSS:

    /*Menue Button*/
    /*#top #wrap_all .header_color li#menu-item-10312.av-menu-button-colored > a .avia-menu-text {background-color:#FA7D19;}*/

    #top #wrap_all .header_color .av-menu-button-colored > a .avia-menu-text {background-color:#FA7D19 !important; border-color:#FA7D19 !important;}

    #menu-item-10312 .avia-menu-text {background-color:#FA7D19 !important; border-color:#FA7D19 !important;}

    /*Desktop*/
    @media only screen and (max-width: 1920px) {
    .indicates-required {display:none !important;}
    .mc-field-group label {display:none !important;}
    .mc-field-group {clear:none !important; width:32% !important; float:left !important; margin-right:13px;}
    .mc-field-group input {font-size:16px !important; padding:13px !important;}
    #mc_embed_signup .button {background-color:#2d5c88 !important; border-color:#0b3a66 !important; width:32% !important;border-radius:2px !important; height:45px !important; line-height:23px !important;}
    #mc_embed_signup .button:hover {background-color:#3d71a1 !important; border-color:#1b5080 !important;}
    }

    /*Mobil – Tablet*/
    @media only screen and (max-width: 768px) {
    .mc-field-group input {margin-bottom:0px !important;}
    .mc-field-group {clear:none !important; width:100% !important; float:left !important; margin-right:13px; margin-bottom:0px !important;}
    #mc_embed_signup .button {width:100% !important;}
    }

    /*News Übersicht Seite – Datum deaktiviert*/
    .html_elegant-blog .avia-content-slider .slide-meta {display:none !important;}
    /*Zwei Border Linien Blog Seite deaktiviert*/
    .html_elegant-blog #top .post-entry .post-meta-infos {display:none !important;}

    #top .av-menu-button > a .avia-menu-text {border-radius: 20px !important;}

    /*P-Tag move font size*/
    .p-move-h2 {font-size:40px !important; font-weight:bold;}

    /* CSS Enfold-Mailchimp-Newsletter Input fields*/
    #top .avia_ajax_form.avia-mailchimp-form input[type=’text’] {
    background: #c4dff6;
    color: #00334e;
    }
    #top .avia_ajax_form.avia-mailchimp-form .required{
    display: none;
    }

    Any thoghts?

    Thank you.

    Philipp

    #1494978

    Hi,

    Thanks for the update. Please try to temporarily deactivate all plugins and any custom code you might have added, to see what happens then. CSS will likely not cause any jQuery errors.

    Best regards,
    Rikard

    #1495025

    Hi Rikard

    I deactivated all plugins and deleted the CSS, no change.

    Please note, this issues checked with ChatGPT:

    Here’s a clear English version of your text:

    > Why does the page “jump up and down”?
    > The cause isn’t the button itself, but the combination of:
    > – multiple anchor links using #kontaktformular
    > – Enfold’s **sticky header + scroll offset**
    > – possibly **animation or lazy loading**
    >
    > 👉 Result:
    > On the first click → works correctly
    > On subsequent clicks → the browser thinks:
    > “I’m already at the anchor,”
    > → so it briefly jumps up and down without actually scrolling.
    >
    > This is standard HTML behavior, amplified by Enfold.

    Any thoughts how I can resolve this issue?

    Thank yous so much!

    Best,
    Philipp

    #1495032

    Hi,

    The jQuery error is still there. What happens if you update to the latest version of the theme?

    Best regards,
    Rikard

    #1495051

    Hi Rikard

    Done that, same same – jumping up and down, only first button on page works.

    I am not a pro, but how about the PHP version to be updated? What else? Any workaround to be recommended to this issue?

    Die unten aufgeführten Optionen beziehen sich auf deine Serverkonfiguration. Wenn Änderungen erforderlich sind, benötigst du möglicherweise die Unterstützung deines Webhosting-Unternehmens.

    Server-Architektur Linux 6.8.0-85-generic x86_64
    Webserver Apache
    PHP-Version 7.4.33-nmm8 (Unterstützt 64bit-Werte)
    PHP-SAPI fpm-fcgi
    Maximale PHP-Eingabe-Variablen (max_input_vars) 10000
    Maximale PHP-Ausführungszeit (max_execution_time) 600
    PHP-Arbeitsspeichergrenze (memory_limit) 512M
    Maximale Eingabe-Zeit (max_input_time) -1
    Maximale Dateigröße beim Upload (upload_max_filesize) 512M
    Maximale Größe der PHP-Post-Daten (post_max_size) 512M
    cURL-Version 8.5.0 OpenSSL/3.0.13
    Ist SUHOSIN installiert? Nein
    Ist die Imagick-Bibliothek verfügbar? Ja
    Werden sprechende Permalinks unterstützt? Ja
    .htaccess-Regeln Individuelle Regeln wurden deiner .htaccess-Datei hinzugefügt.
    robots.txt Deine Website verwendet die dynamische robots.txt-Datei, die von WordPress generiert wird.
    Aktuelle Zeit 2026-02-13T07:38:40+00:00
    Aktuelle UTC-Zeit Friday, 13-Feb-26 07:38:40 UTC
    Aktuelle Serverzeit 2026-02-13T08:38:37+01:00

    Thank you.

    Philipp

    #1495053

    Hi,

    You can try to update the PHP version as it’s outdated anyway, but I don’t think that it causes the jQuery error. Please try clearing all the cache from your caching plugins and leave them deactivated for a while to see what happens then. Also, I’m not sure why you would need 3 separate caching/optimisation plugins? I would suggest that you chose one of them and remove the others.

    Best regards,
    Rikard

    #1495056

    Hi Rikard

    Thank you for your support.

    What I did:
    * reduced caching plugins down to W3 Total Cache
    * deactivated W3 Total Cache with deleting all of the cache

    No change, still the same issue.

    What can I do?

    Thank you

    #1495057

    Plus:
    * upgraded to PHP 8.2 on the server side

    #1495066

    Hi,

    Thanks for that. The jQuery error is gone now, but the page you linked to is looking very strange. It has two scrollbars for example, and a gigantic footer. Are we allowed to temporarily deactivate plugins?

    Best regards,
    Rikard

    #1495069

    Sure, pls temporarily deactivate all plug-ins. Thx.

    #1495226

    Hi,

    Thanks for that, and sorry for the late reply. I’ve asked the rest of the team for help with this, but none of us could find the cause of this problem. Could you share FTP login details as well so that we can try to upload a fresh copy of the theme for you please?

    Best regards,
    Rikard

    • This reply was modified 2 weeks, 6 days ago by Rikard.
    #1495447

    Hi Rikard

    Okay, please see my login details in the private content area.

    Thank you.

    Best regards,
    Philipp

    #1495475

    Hi,

    Thanks for that. I uploaded a fresh copy of the theme and activate that. Your site responded with a critical error, which unfortunately doesn’t make much sense. I would have expected the site to look and behave the same, since both versions of Enfold should theoretically be identical. Did you make any types of changes to the core theme files? Please share server error logs with us, so that we can have a closer look at them.

    Best regards,
    Rikard

    • This reply was modified 2 weeks, 1 day ago by Rikard.
    #1495486

    Hi Rikard

    Understand, I added

    1) the folder “/errorlog” under /kellerhalsconsulting.com/

    2) activated the PHP Errorlog in .user.ini as
    log_errors = on
    error_log = “./errorlogs/error.log”

    Hope this helps.

    Best regards
    Philipp

    #1495521

    Hi,

    Thanks for that, but that directory is empty. Note that the WordPress installation for the site in question is located in the root of your FTP account, not in a sub folder. If you need help with finding the correct logs, then please try reaching out to your hosting provider. This might help you as well: https://wordpress.org/support/article/debugging-in-wordpress/

    Best regards,
    Rikard

    #1495543

    Thank you, the support already helped me, so I added the code to my wp-config.php:

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );
    @ini_set( ‘display_errors’, 0 );

    Error messages are now saved to a file called debug.log in the wp-content directory and are not displayed on the website.

    Does that help?

    Thx.

    #1495648

    Hi,
    I was not able to login to your site, as the typically login url is not working /wp-admin/ I assume that you have set a custom one.
    I tried to recreate your page on my site with five color sections, each 100vh and with a button and a contact form at the bottom. All five buttons work with no bouncing.
    Please share your login url and Enable the Avia Layout Builder Debugger to your functions.php file. You may need to scroll the documentation page to the Debug mode section or use the sidebar TOC link.
    With this I can copy your page exactly and add it to my test site to see if the same error occurs there.

    Best regards,
    Mike

    #1495686

    Hi Mike

    Sorry to hear you have troubles logging in to my WordPress. I have not changed the provided login credentials as of Feb 9th, and I double checked, it works on my end: https://kellerhalsconsulting.com/wp-login.php So please try again.

    And great to hear that you could recrate my page on your side with buttons working fine with no bouncing, so I am optimistic on my end.

    Please note: I already added

    //set builder mode to debug
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }

    to my file: /wp-content/themes/enfold/functions.php

    Thank you for your help.

    Best regards
    Philipp

    #1495708

    Hi,
    Thanks, I was able to export your page to my test site and all five buttons worked fine with no bouncing.
    Can I disable your plugins? I don’t see any other scripts or custom functions on your site, so I’m not sure what else might be causing this behavior.

    Best regards,
    Mike

    #1495724

    Good to hear, and yes pls disable the plugins. Thx

    #1495746

    Hi,
    Thanks, but disabling your plugins did not help, as you had posted earlier. I also created a test page and imported my simple test page, but it still bounced. I’m not sure what could be causing this, but I noticed that your PHP version is 8.2.30-nmm1, but there is no official version with -nmm1, perhaps this is a custom version? I can’t imagine that a PHP version would cause this, but it seems to be the only difference between our two sites. My PHP version is 8.3.28
    Do you have that as a PHP version, or one without the -nmm1?

    Best regards,
    Mike

    #1495762

    Hi

    Okay, I now updated to 8.3 – higher I definitely don’t want to go.

    Can you provide me a login/URL to your replicated side?

    Thank you for youor help.

    Best regards
    Philipp

    #1495793

    Hi,
    Unfortunately my test site is on a local host, so you won’t be able to login.

    Best regards,
    Mike

    #1495878

    Hi Mike

    As of now, I think to fix our wordpress/enfold installation on our servers, i.e. uninstall and reinstall after staging/saving our website content.

    Do you think this is a promising approach? Are you offering such extra paid services?

    Before that I need to be sure – I belief you – but may I ask you to send me a quick vimeo, showing me the export of my page to your test site works with no bounces?

    Thank you for your help.

    Kind regards
    Philipp

Viewing 30 posts - 1 through 30 (of 34 total)
  • The topic ‘Scroll Buttons: Multiple CTA buttons scroll to the same form’ is closed to new replies.