Pagination - Page title
Permalink
Hi I'm looking to see how I can integrate the page number into <title> tag - I'm receiving duplicate page titles on my paginated index which could be affecting my SEO
there are 50 pages in total, all with 'blog archive' as the title
Do I need to edit the Header_required.php or is there a shortcode i can use? (suchas %pagenumber)
If its a PHP page, does anyone know the precise code?
there are 50 pages in total, all with 'blog archive' as the title
Do I need to edit the Header_required.php or is there a shortcode i can use? (suchas %pagenumber)
If its a PHP page, does anyone know the precise code?
My simplistic method requires you know the name of the GET variable that causes the paging. To do this, go to the second page of your blog archive and look at the URL in the address bar. It should end in something like this:
/?ccm_paging_p_b205=2
The text after the question mark and before the equals sign is the $_GET variable name. In my case "ccm_paging_p_b205".
Now you are ready to override the header_required.php file.
Copy the existing /concrete/elements/header_required.php file into the /elements/ directory.
Open your new header_required.php file and look for the code around line 26 that reads as follows:
using your $_GET variable name change that block to look like this:
That should do the trick. If you have multiple blocks that create duplicate title issues your code is going to increase in complexity, but if it is just one, like a blog index, this should do the trick.
-Guy