Jonnie Grieve Digital Media: Blog

Home
by on 11th May, 2021 - 3:48pm (0)

Blog: R7D16: #100DaysOfCode (More Posts)

More changes to my Blog

I’ve made some long overdue tweaks to the blog site that I hope will enhance and improve the readers’ experience and I want to highlight these now.

I have for now removed the pagination buttons on the home page and made more posts available to see upfront.  You will now be able to read 40 blog posts at a time.  If you want or need to see more you will be able to access these posts via the archive pages in the footer of this website or by selecting the date and author links of each blog.

Page Titles

/* <?php 
if( $page_title === "Home" ) {
echo $page_title . " | Blog for Jonnie Grieve Digital Media"; 
} else if ( $page_title === "blog_post" ) {
echo the_title() . " | JGDM Blog"; 
} else if ( $page_title === "author" ) {
echo "Author Template";
} else if ( $page_title === "Archive Pages " ) {
echo $page_title . " | Blog for Jonnie Grieve Digital Media"; 
} else if ( $page_title === "Category " ) {
echo $page_title . " | Blog for Jonnie Grieve Digital Media"; 
} else if ( $page_title === "Search " ) {
echo $page_title . " | Blog for Jonnie Grieve Digital Media"; 
} else if ( $page_title === "404" ) {
echo "Sorry! Page Not Found"; 
} else { 
echo "Else block Blog for Jonnie Grieve Digital Media"; 
}
?> */

For too long the page titles of some templates in the blog have been missing which has not been a good look.  The condition statement I wrote above echos a unique page title and header for each template that outputs HTML.  So that is a change that has now been made.

I spent some time to spruce up the 404 page with an image and clearer instructions on what to do if you’re ever so unfortunate as to come across it.  I hope these changes make the site a slightly more pleasurable experience to use and read.

df

This post has been assigned to the following categories

    Leave a Reply

    Your email address will not be published. Required fields are marked *