Closed timbocode closed 4 years ago
All blog category pages currently have the exact same h1 title of ClassicPress Blog.
h1
ClassicPress Blog
For examples, see:
https://www.classicpress.net/blog/category/classicpress-values/ https://www.classicpress.net/blog/category/featured-post/
At the top of the page, you will just see ClassicPress Blog for each page.
This is not good for SEO and is meaningless to the visitor.
This PR simply appends the category name to the title. For example:
ClassicPress Blog: ClassicPress Values ClassicPress Blog: Featured Post
ClassicPress Blog: ClassicPress Values
ClassicPress Blog: Featured Post
The reason for the use of ucwords is in case any categories are written in lowercase.
ucwords
Thanks for fixing the indentation. Need to get myself a decent Linux editor.
Thanks for the PR. Making PRs from your master branch might cause you some minor issues in the future but this looks good.
master
All blog category pages currently have the exact same
h1
title ofClassicPress Blog
.For examples, see:
https://www.classicpress.net/blog/category/classicpress-values/ https://www.classicpress.net/blog/category/featured-post/
At the top of the page, you will just see
ClassicPress Blog
for each page.This is not good for SEO and is meaningless to the visitor.
This PR simply appends the category name to the title. For example:
ClassicPress Blog: ClassicPress Values
ClassicPress Blog: Featured Post
The reason for the use of
ucwords
is in case any categories are written in lowercase.