Viewing 17 posts - 1 through 17 (of 17 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 13 hours, 57 minutes ago by Rikard.
Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.