• Resolved ecrandall

    (@ecrandall)


    Hi there!

    I recently installed this plugin on my site and it does not seem to be functioning. The only thing I can think of is that the id targets are inside text boxes for SiteOrigins page builder widget. However, I have tried the page-scroll-to-id widget, and also using the “built-in” targets on each widget and this doesn’t seem to improve the situation.

    As far as I can tell, the theme I am using (Shapely) has wp_head() and wp_footer(), and I have added ps2id to all the links I want it to scroll to. What am I doing wrong?

    Site url: http://www.ericcrandall.org

    Many thanks – Eric

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

    (@malihu)

    Hello Eric,

    You are correct about the targets being inside SiteOrigin widgets as they probably don’t allow custom shortcodes etc.

    I checked your link and the new id targets you’ve set are correct. Basically, everything is correct and working except that Shapely uses its own page scrolling function which (aggressively) prevents other plugin scripts like “Page scroll to id” from working.

    Go to “Page scroll to id” settings and try enabling “Prevent other scripts from handling plugin’s links” option. This should do the trick 😉

    Also, the offset selector you’ve set (#main-menu) is not correct as it seems there’s no element with id main-menu in your page. If you want to offset your top sticky menu, change “Offset” value to #site-navigation

    Hope this helps

    Thread Starter ecrandall

    (@ecrandall)

    Hey Malihu,

    Thanks for your prompt reply!

    I’m afraid its still not working. I found this post and tried adding the code you provided to header.php, but to no avail.

    Any other suggestions besides getting a new theme?

    Many thanks,

    Eric

    Plugin Author malihu

    (@malihu)

    No problem.

    No need to add the code you found as it’s probably for an older version of Shapely and it won’t work in your case.

    The “Prevent other scripts from handling plugin’s links” option cannot always work as it depends on how the theme works. In your case, the theme seems to add an event on the list-item (li) so you have to do this manually.

    The script that does this is:
    ...themes/shapely/js/shapely-scripts.js

    and the code/function is from lines 85 to 93.

    You need to edit this script and either comment (i.e. remove) the code between these lines:

    /* $('.menu li').click(function (e) {
    ...
    }); */

    or change line 85 from:
    $('.menu li').click(function (e) {
    to:
    $('.menu li').not('.ps2id').click(function (e) {

    so it doesn’t mess with link items that have the ps2id class (i.e. link items handled by “Page scroll to id”).

    I don’t know if the above sounds like too much work but sometimes themes don’t like playing along other scripts/plugins.

    Let me know if this works

    Thread Starter ecrandall

    (@ecrandall)

    Thanks so much! This totally works – I used the second solution that you suggested… except for the first link that you click upon loading the page. It doesn’t do the scrolling on that first click, but then it works. Any thoughts as to why?

    Thanks for your excellent support!

    -Eric

    Plugin Author malihu

    (@malihu)

    You’re welcome.
    It’s working on first click for me (tested it just now). Maybe you were seeing a cached version of the page?

    Thread Starter ecrandall

    (@ecrandall)

    Ah – it must have been a cache thing.

    Thanks again!

    Plugin Author malihu

    (@malihu)

    You’re welcome

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

The topic ‘link targets inside Siteorigin page builder plugin text boxes’ is closed to new replies.