• Resolved mrcavallo

    (@mrcavallo)


    hello,

    this looks like a great plugin – but i am not sure how to use it within the actual main menu.

    i can see how to add it to a text link within the page – but what do i need to add to the menu for it to work?

    ie – adding a custom link in main navigation gives you a number of fields:

    URL
    Navigation Label
    Title Attribute

    not sure i can use shortcode in the main menu. so how can this be achieved?

    thank you.

    mrcavallo.

    https://www.ads-software.com/plugins/page-scroll-to-id/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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’.

    Thread Starter mrcavallo

    (@mrcavallo)

    that worked – thanks so much malihu.

    Plugin Author malihu

    (@malihu)

    No problem ??

    stefanpetsy

    (@stefanpetsy)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using this plugin in main menu’ is closed to new replies.