SamBrishes wrote: ↑Sat Mar 23, 2019 4:28 pm
The plugin has been written really quickly and I didn't test it very well (It worked on my local environment, which was fine for me
). So I hope it works seamless, if not, give me a shout here or on GitHub.
It currently supports the following features:
[...]
So I hope it is a better solution then using jQuery
.... PS.: What do you mean with a mobile detection? What should be handled differently on mobile devices?
With your help I managed to get everything working with simple pagination like
Code: Select all
[prev page] Page 2 of 3 [next page]
and canonicals but .... wow, comparing my toy car to your optimus prime plugin makes me feel like I am still in woods
For a "quickly" developed plugin, all implemented options are working very nice, and are SEO compliant - just as I intended to make
Last thing I wanted to implement, was a simpler way of inserting pagination marker, and I thought why not using the bludit's
as bludit's editors have a button for it?
As for me, everything in your plugin works, and fullfills all ideas of article pagination. But of you would like, there's always place for improvements, and below couple things to consider beside using declared bludit's pagebreak option:
1.you implemented a single page option based on url parameter, which is configurable in plugin's options.
You could just add such button in "show pager" pagination mode on first page, so that it looks like:
[single page mode] Page 1 of 3 [next page]
Button could be optionally, and the text either configurable in options or sitting in json lang file.
2. when it goes to mobile thingy, I was going to check if browser's useragent contains any string related to mobile, and serve the user whole page anyway. It's related to the UX where those who browse on their phones are used to scrolling long websites. Of course assuming that the page doesn't contain half of Macbeth history.
But then I reminded myself that I used long time ago a pretty nice php class for mobile detection, which is still actively developed.
http://mobiledetect.net/
3.There could be a warning/notice message for those, who want to embed canonical urls in header, but have already enabled bludit's canonical plugin.
4. embedding .css could be an on/off option in additional settings.
Anyway great job!
Surely 100% better solution than making the website bloated with JQ