Title: Waypoints
Last modified: August 30, 2016

---

# Waypoints

 *  [chrislomas](https://wordpress.org/support/users/chrislomas/)
 * (@chrislomas)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/waypoints/)
 * 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:
 * [http://www.mckcoaching.com/](http://www.mckcoaching.com/) (has waypoint error
   in console)
    [http://www.mckcoaching.com/5-ways-to-get-to-the-point-more-quickly/](http://www.mckcoaching.com/5-ways-to-get-to-the-point-more-quickly/)(
   no error)
 * Thanks,
 * Chris
 * [https://wordpress.org/plugins/genesis-simple-share/](https://wordpress.org/plugins/genesis-simple-share/)

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

 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/waypoints/#post-6639293)
 * 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](https://wordpress.org/support/users/chrislomas/)
 * (@chrislomas)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/waypoints/#post-6639297)
 * 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
 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/waypoints/#post-6639330)
 * 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.
 *  [jgoug](https://wordpress.org/support/users/jgoug/)
 * (@jgoug)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/waypoints/#post-6639360)
 * Hi NIck, we are having issues with this plugin as well.
 * [http://exob2b.com/blogue/](http://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,
    [http://exob2b.com/il-a-change-le-titre-de-son-billet-de-blog-et-la-reaction-fut-etonnante/](http://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
 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/waypoints/#post-6639361)
 * Hi, jgoug!
 * Thanks for the report. Are you happy to apply the same fix to the plugin that
   I list above? [https://wordpress.org/support/topic/waypoints?replies=5#post-7549323](https://wordpress.org/support/topic/waypoints?replies=5#post-7549323)
 * I would be interested to know if that resolves things for you.
 *  [jgoug](https://wordpress.org/support/users/jgoug/)
 * (@jgoug)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/waypoints/#post-6639363)
 * 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
 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/waypoints/#post-6639365)
 * 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.
 *  [jgoug](https://wordpress.org/support/users/jgoug/)
 * (@jgoug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/waypoints/#post-6639377)
 * Hi Nick, yes it did clear the error.
    Thank you.
 *  [David Wang](https://wordpress.org/support/users/blogjunkie/)
 * (@blogjunkie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waypoints/#post-6639380)
 * 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!
 *  [srower](https://wordpress.org/support/users/srower/)
 * (@srower)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/waypoints/#post-6639383)
 * 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.
 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/waypoints/#post-6639384)
 * 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.
 *  [srower](https://wordpress.org/support/users/srower/)
 * (@srower)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/waypoints/#post-6639385)
 * 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.
 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/waypoints/#post-6639386)
 * 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](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.

 * ![](https://ps.w.org/genesis-simple-share/assets/icon.svg?rev=3358434)
 * [Genesis Simple Share](https://wordpress.org/plugins/genesis-simple-share/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-simple-share/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-simple-share/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-simple-share/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-simple-share/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-simple-share/reviews/)

 * 13 replies
 * 5 participants
 * Last reply from: [Nick C](https://wordpress.org/support/users/modernnerd/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/waypoints/#post-6639386)
 * Status: not resolved