• Resolved Anonymous User 9824923

    (@anonymized-9824923)


    Hallo! I’ve installed your plugin, and I would like to know if there is any way to configurate it to don’t move the page to the anchor position. I want the page to open in the top, not in the anchor.

    Best regards,

    Irina

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    Can you point me to the page/link you want this to happen?

    Do you mean the “CHICK-LIT PERSONAGENS” links? These open the page at the top when I test them.

    Also, your tabs plugin script (the one that works with “CHICK-LIT PERSONAGENS” links) produces a javascript console error. Maybe you need to contact this plugin support forum and ask them about it(?)

    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    Hallo, yes your plugin is now using the default settings and it is sending the pages to the top.

    But I need to work out the settings because your plugin disabled the tabs-plugins links.

    Example: if you use the link I gave you it goes to the right tab (IDUNA), but if you use this one https://irinasopas.com/personagens/#personagens-1-tab-1 is also going to the same IDUNA.

    It doesn’t happen without your plugin, so I think I need change the settings in your plugin, and that’s the help I need. How to configurate your plugin so it stills open the pages with anchor links at the top but also going to the right tabs-links.

    Best regards,

    Irina

    Plugin Author malihu

    (@malihu)

    OK. Go to “Page scroll to id” settings and disable “Enable different pages scrolling on all links” option. Save changes, test your page(s) and let me know.

    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    Hallo, thanks for the help. I disabled the option.

    The tab-links are working again, but the pages are not opening at the top. You can see here: https://imgur.com/a/FQKSyYN

    Best regards,

    Irina Sopas

    • This reply was modified 6 years ago by Anonymous User 9824923.
    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    The options on the selector are default:

    a[href*=’#’]:not([href=’#’])

    a[href^=’#tab-‘], a[href^=’#tabs-‘], a[data-toggle]:not([data-toggle=’tooltip’]), a[data-slide], a[data-vc-tabs], a[data-vc-accordion], a.screen-reader-text.skip-link

    Maybe this is why the scrolling isn’t opening at the top?

    Plugin Author malihu

    (@malihu)

    No this issue does not have to do with “Page scroll to id” because it doesn’t affect the tabs (the tabs are not actual links).

    You can confirm this by temporarily deactivating “Page scroll to id” plugin and testing your page. The same issue will happen, correct?

    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    Hallo. Yes, the problem with page not going to the top exists only in the tab-links, that’s why I installed your plugin so it forces all pages, with tab-links or not, open at the top. So your plugin can do that?

    Best regards,

    Irina

    Plugin Author malihu

    (@malihu)

    The plugin cannot do this automatically. You could probably do this by adding an extra js script in your template, e.g. in your theme/child-theme footer.php. Can you do this? Do you want me to post the code?

    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    Please gimme the code, so I can do it.

    best regards,

    Irina

    Plugin Author malihu

    (@malihu)

    Something like the following might work. Unfortunately you’ve changed your page/theme so I can’t test it and provide an exact code.

    <script>
        (function($){
            $(window).on("load",function(){
                setTimeout(function(){
                    $.mPageScroll2id("scrollTo","#top");
                },2000);
            });
        })(jQuery);
    </script>

    Let me know

    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    Sorry, I have installed another wordpress in my site because I wasn’t paying attention. But already restored it.

    Can you test it, when you have time? You’re doing a lot for me and I appreciate that so much.

    Best regards,

    Irina

    Plugin Author malihu

    (@malihu)

    OK. Add the following script in your theme/child-theme footer.php, just before the closing body tag (</body>).

    If you want to apply the script in all of your pages, add the following:

    <script>
        (function($){
            $(window).on("load",function(){
                setTimeout(function(){
                    $.mPageScroll2id("scrollTo","#top");
                },2000);
            });
        })(jQuery);
    </script>

    If you want to apply the script only on pages with tabs, add the following:

    <script>
        (function($){
            $(window).on("load",function(){
                if(!$(".rtbs_menu a[data-tab]").length) return;
                setTimeout(function(){
                    $.mPageScroll2id("scrollTo","#top");
                },2000);
            });
        })(jQuery);
    </script>

    In the script you can change the 2000 milliseconds value to any value you want. This value is the delay after which the page will scroll to the top (1000 milliseconds=1 second).

    Thread Starter Anonymous User 9824923

    (@anonymized-9824923)

    Thank you so much, I’m doing it now adding the code. You rock.

    Wish you the best.

    Kisses

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Don’t go to anchor position’ is closed to new replies.