View Full Version : Add rel="next" and rel="prev" to <head>
hilaryl
03-30-2015, 11:08 PM
If this has been done, please link me.
Otherwise, anyone know of a way I can achieve this?
If on page 3 of a thread it will show:
<link rel="next" href="http://www.example.com/article?1234-thread/page4" />
<link rel="prev" href="http://www.example.com/article?1234-thread/page2" />
Having a real hard time finding anything conclusive on this - which is very strange as I would have thought it's pretty important.
Cheers,
hilaryl
TheLastSuperman
03-30-2015, 11:32 PM
So basically you want this (see attached) yet a simpler version only two links in your header template?
hilaryl
03-31-2015, 12:27 AM
Yeah exactly.
I have looked at getting those variables into the header - as that would be the easiest way - but haven't had much luck.
hilaryl
04-01-2015, 02:50 AM
Anyone have any ideas? Or have seen this done somewhere else?
I think this is what we were doing here: https://vborg.vbsupport.ru/showthread.php?t=306081. It looks like post #7 has the final code that works.
hilaryl
04-01-2015, 10:02 PM
Thanks kh99 - I'm not sure why I wasn't able to find that thread.
I've Googled the heck out of all those keywords, and even done a search on this site - still nothing came up.
I've just had one more question in that thread.
Cheers,
hilaryl
Yeah, sometimes it's hard to find things using search. I had actually started to type a response then it was sounding familiar so I went back to find that thread. Anyway, I think I misled you in my above post in that you don't need to change the headinclude template manually since the plugin code adds on to it automatically. Sorry about that.
hilaryl
04-07-2015, 09:24 PM
Yeah I noticed after changing the template and adding the plugin that I then had two instances of the block I needed - figured it out though.
The plugin method is a great way of doing this - thanks again for your help.
Cheers!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.