• When using the Genesis – Featured Posts widget to add featured posts to my homepage, I get a console error of:

    Uncaught TypeError: $(...).waypoint is not a function

    It seems that each of the share functions for each featured posts is wrapped in a waypoint function, but waypoint is not defined in any of the included files:

    jQuery(document).ready(function($) {
        $('#facebook-before-4945').waypoint( function() {
            $('#facebook-before-4945').sharrre({

    This error does not exist on a single post page because the share function is not wrapped in a waypoint function:

    jQuery(document).ready(function($) {
        $('#facebook-before-4945').sharrre({

    Please could you advise how to resolve this error ASAP as at the moment the waypoint javascript error is stopping all other javascript from running on the homepage, so I have no option but to disable the sharing.

    I’ll leave it enabled for you to see on these two pages:

    https://www.mckcoaching.com/ (has waypoint error in console)
    https://www.mckcoaching.com/5-ways-to-get-to-the-point-more-quickly/ (no error)

    Thanks,

    Chris

    https://www.ads-software.com/plugins/genesis-simple-share/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi Chris

    Sorry for the delayed response. To prevent this error on the homepage, you can try editing the file at wp-content/plugins/genesis-simple-share/lib/front-end.php. Find this code:

    if( $this->is_archive() ) {
        wp_enqueue_script( 'genesis-simple-share-waypoint-js' );
    }

    And change it to look like this:

    if( $this->is_archive() || is_front_page() || is_customize_preview() ) {
        wp_enqueue_script( 'genesis-simple-share-waypoint-js' );
    }

    You may find that this clears the error. If not, please feel free to follow-up here.

    Thread Starter chrislomas

    (@chrislomas)

    Hi Nick,

    this has indeed fixed the issue. Please can this change be incorporated into future versions so that the change I’ve made won’t be lost whenever we update?

    Thanks for your help,

    Chris

    Thanks for letting us know that solved this, Chris – I appreciate it!

    I’ve reported this to our development team so that it can be resolved officially in a future update.

    Hi NIck, we are having issues with this plugin as well.

    https://exob2b.com/blogue/
    When I submit the blog form in the sidebar I get a redirect error 404.
    – This error does not occur when I deactivate the Genesis Simple Share plugin.
    – This error/redirect only occurs on the French site !! All is working fine on the english site.

    Also,
    https://exob2b.com/il-a-change-le-titre-de-son-billet-de-blog-et-la-reaction-fut-etonnante/
    When I go into one of the posts, the form works fine ?

    Genesis version : Version : 2.1.2
    Child theme : Start
    Genesis Simple Share : Version 1.0.6
    WordPress 4.2.2

    Any thoughts would help.
    Thanks in advance

    Hi, jgoug!

    Thanks for the report. Are you happy to apply the same fix to the plugin that I list above? https://www.ads-software.com/support/topic/waypoints?replies=5#post-7549323

    I would be interested to know if that resolves things for you.

    Hi,

    Yes it was the first thing I tried when I found this feed, but it didn’t fix the problem.
    I’m only getting the error on the loop page and not the singles page!

    This is the error I’m getting :
    Uncaught TypeError: $(…).waypoint is not a function

    Hi, jgoug.

    You could try changing this code in front-end.php:

    if( $this->is_archive() ) {
    	wp_enqueue_script( 'genesis-simple-share-waypoint-js' );
    }

    To look like this instead:

    wp_enqueue_script( 'genesis-simple-share-waypoint-js' );

    You may find that clears the error for you.

    Hi Nick, yes it did clear the error.
    Thank you.

    Just want to chime in to say that the bug still affects static front pages. I would really appreciate it if you guys added a check for is_front_page() too. Thanks!

    Thank you for posting this fix Nick. It appears the update still hasn’t made it into the program files. I was unable to get the genesis slider to work on my home page of Executive Pro theme until I made the first edit that was posted.

    Hi, srower, and thanks for the feedback. I’ve passed this on to our development team but don’t currently have a release date for a fix I can share. Sorry for the delay there.

    Nick – I’m really grateful for your posted fix on this and was happy to see the plugin update today thinking that this fix would be incorporated. Unfortunately, it wasn’t and I had to go back in and add the fix again. Do you know if this be made a permanent fix at some point? Not sure if I need to find another plugin or wait on this one.
    Thanks.

    Sorry that you had to reapply the fix, srower. We do plan to resolve this issue, and have an open ticket here if you would like to track the progress: https://github.com/copyblogger/genesis-simple-share/issues/65

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Waypoints’ is closed to new replies.