Plugin Author
malihu
(@malihu)
Hi,
Check the Quick usage in plugin description. To enable the rel attribute field in WordPress Menus, click ‘Screen Options’ and check ‘Link Relationship (XFN)’. To enable the plugin on a (custom link) menu item, click the arrow on the right of the item and insert m_PageScroll2id in the ‘Link Relationship (XFN)’ field.
For further assistance and guides, check section ‘Creating links in WordPress Menus’ of ‘Page scroll to id for WordPress tutorial’.
that worked – thanks so much malihu.
Hi malihu, I am having trouble with this plugin.
I create the menu as links, and I put m_PageScroll2id in the Link relationship through the screen options but it still doesnt work. My concern is when we are filling in the “link” section are we just putting whatever we want? For example in link I put #section_Hours so that the scroll can scroll to the icon that states hours but it doesnt do anything.
Also in tutorials they are talking about going into the html and placing div in there but it doesnt really explain this. Can you give me a step by step from scratch how to get this to work? I don’t know how to access the theme html as I thought it was php.
vineyard-medical-clinic-seton.primacyclinics.ca is the link to the website I am working on maybe by looking at it you can see what im doing wrong.
Plugin Author
malihu
(@malihu)
@stefanpetsy
In order to make link (e.g. #section_Hours) scroll to some section, you need to have that section in your content. This section should be an element (e.g. a div) with an id value equal to your link hash (e.g. <div id="section_Hours" />).
You can create such element in your content manually or via plugin’s shortcodes which you can use in wp post/page editor. For example:
[ps2id id='section_Hours'/]
or
[ps2id_wrap id='section_Hours'] your content [/ps2id_wrap]
For more info see ‘Creating the target sections’ of ‘Page scroll to id for WordPress tutorial’.
Hope this helps