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(?)
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?
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.
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.wordpress.org/plugin/page-scroll-to-id.zip
Hope this helps