• I have built a page with a menu linking to number of anchored sections which are page content pulled from custom query blocks ( Blox theme). The site is for a client who wants it empty so he can put in his own content. This means I can’t use anchor ids in the content as there isn’t any. Instead I have used #post-id which is working very well. I have your plugin installed but only for the smooth scrolling.

    The problem I have is when I click the link from a different page (there are a few side pages) the URL is mysite.com/#post-27 instead of e.g mysite.com/#about.
    This is not a problem caused by the plugin but is this something this plugin can address? Sorry if this is a daft question. I find the documentation on the plugin a bit mind-boggling but am very happy that the smooth scroll worked right out of the box.
    Any help appreciated

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    Why do you need to use mysite.com/#about instead of the actual mysite.com/#post-27? Do you want this for displaying a more human-readable hash?

    The plugin itself cannot add or change id values on-the-fly (on the client-side), so I don’t think it can solve your issue (if I understood it correctly).

    Maybe you could ask the Blox theme devs if there’s a way to add a custom id on a block or run shortcodes inside them(?)

    Thread Starter suecarroll

    (@suecarroll)

    Yes, I was looking for a more human readable hash.

    I am able to put a custom id on a block myself but I haven’t been able to get that to work with this plugin. Is there a particular way to do this?

    Plugin Author malihu

    (@malihu)

    What happens when you put a custom id on a block? Can you put one and let me know so I can test your page?

    Thread Starter suecarroll

    (@suecarroll)

    Yes, I already put one on the ‘About’ section. On inspection it lists as data-alias=”about”

    Plugin Author malihu

    (@malihu)

    I see. I don’t know what the data-alias objective is but it seems to be irrelevant to element id (which is the standard/correct attribute for defining and scrolling to page anchors).

    Maybe the developer is using it for some custom/non-standard scrolling or some other functionality.

    I’m planning on adding a new option in the plugin that will remove the URL hash (i.e. the #some-id part) when scrolling from/to different pages. I don’t know if something like this would be preferable for you(?)

    I’ll probably upload an update on plugin’s development version (before releasing the next version) in next few days. I can let you know here when it’s ready so you can go and download it if you want.

    Thread Starter suecarroll

    (@suecarroll)

    I think it’s purpose is for css selection really.

    Thanks for letting me know about the development version and thanks for your help, I really appreciate it

    Plugin Author malihu

    (@malihu)

    Hello again,

    I’ve just updated plugin’s development version that includes the option “Remove URL hash when scrolling from/to different pages”. You can download it and replace the plugin in your installation to check it:

    https://downloads.www.ads-software.com/plugin/page-scroll-to-id.zip

    Hope this helps

    Thread Starter suecarroll

    (@suecarroll)

    Thanks Malihu

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘using #post-id when scrolling from a different page’ is closed to new replies.