The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Popular Established WordPress Based Information Site with NO Title Tag (?)
Rating  5
MrGPT
post Sep 9 2017, 12:43 AM
Post #1





Group: Members
Posts: 3
Joined: 9-September 17
From: Chicago, IL USA
Member No.: 26,491



I built an extremely popular (in my niche) web site (WordPress based) and it's long established now (many years) Today I discovered (to my horror) when trying 'woorank'(.com) to analyze my site that I've been running all this time without any title tag (?) Below is my code (Ads Theme: Theme Header (header.php)) and I'm not good enough in php to figure out what the issue is.

I don't want to resort to hard coding my titles because it would be a mistake for every generated page to have the same title (I want the title to be generated by each page/post) Any help would be appreciated - Thanks!

CODE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php
if(wp_version() == '21') language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">

       <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
       <title>
              <?php
              if(is_single() || is_page() || is_archive())
              {
                     wp_title('',true);
              }
              else
              {
                     bloginfo('name'); echo(' — '); bloginfo('description');
              }?>
       </title>

       <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
       <meta name="description" content="GPT Sites and Tips - Work at Home and Get Paid Instantly with Free Paid Surveys at Get Paid To Sites"/>
       <meta name="keywords" content="get paid to, gpt, free, paid surveys, work at home, instant paypal"/>
       <meta property="og:type" content="website" />


This post has been edited by MrGPT: Sep 9 2017, 12:44 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
MrGPT
post Sep 9 2017, 12:51 AM
Post #2





Group: Members
Posts: 3
Joined: 9-September 17
From: Chicago, IL USA
Member No.: 26,491



Oh, and here's some additional info:

SITE: MrGPT.com

- Always curent to the latest release of WordPress.

- My theme is real old because I am trying to recreate a popular retro 'look' cool.gif


WAIT! Stop the Presses! Ok, I got to poking around and I just now discovered that my POSTS have titles... ...and I guess my home page doesn't have a title because I kept that 'PAGE title' blank when I authored that 'PAGE' (as not to mess with my cosmetics (oops, I guess I mostly solved my own issue)

Solved! Nevermind! Sorry!


This post has been edited by MrGPT: Sep 9 2017, 01:01 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 03:20 PM