I’m building a WordPress theme with Ajax load, all is running fine except the links that have hash on their URLs, like the links of the recent comments widget for instance: myblog.com/blog-post/#comment-102
These links aren’t loading, and they block the ajax load.
Is there a way to make these links generally not block the ajax loading ? If it’s not possible, how can I hack the default recent comments widget of WordPress to remove hash from links and make them link to the general post, and not to the specific comment (e.g link to myblog.com/blog-post/ rather than myblog.com/blog-post/#cmment-102) ?
Is someone may help me to achieve this, it would be fantastic.
- The topic ‘Remove hash from recent comments widget on WordPress’ is closed to new replies.