Plugin Author
malihu
(@malihu)
Hi,
I checked your page and “Page scroll to id” is completely missing. None of its scripts are included in the page and seems like it’s not activated.
Is the plugin activated? Does your theme have wp_head() and wp_footer() functions?
-
This reply was modified 8 years, 8 months ago by
malihu.
Hi,
thanks for your reply.
sorry, now is activated.
For the landing page, the footer and header are disabled.
Regards,
Plugin Author
malihu
(@malihu)
You need to enable the plugin on your custom links. Go to “Page scroll to id” settings and change the “Selector(s)” field value to:
a[href*=#]:not([href=#])
Save changes and test your page.
Hey Malihu, I came across this thread and it helped me fix my site! Was just wondering why changing my selector from “a[rel=’m_PageScroll2id’]” to “a[href*=#]” allowed smooth scrolling on my page. For background, my page was smooth scrolling only on page load and jumping otherwise. Thanks!
Plugin Author
malihu
(@malihu)
@lnorman Changing the selector to a[href*=#] instructs the plugin to handle any link with a hash (#) in its URL.
Having the default selector “a[rel='m_PageScroll2id'] instructs the plugin to handle links created by “Page scroll to id” shortcodes and buttons as well as any other link that has a rel attribute value of m_PageScroll2id.
So, your links were not working because they didn’t have this rel attribute and were not created by “Page scroll to id” functions (e.g. shortcode, toolbar buttons etc.).
I’ve developed the plugin in such way, so it handles (by default) only links created by itself and not all links with a hash. This way the user has full control and makes “page scroll to id” impossible to break or conflict with other plugins or the theme itself.
Awesome, thanks for the response!