Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
to make wordpress seo dynamic and friendly title how

MUST READ-  How to Make Your WordPress Title SEO Friendly and Dynamic
#1
As you know, most WordPress themes come with this default title in header.php which is not SEO responsive.
<title><?php echo get_bloginfo( 'name' ); ?> -
<?php echo get_bloginfo( 'description' ); ?></title>

Fixing this is very easy. Just replace this code:

<title><?php echo get_bloginfo( 'name' ); ?> -
<?php echo get_bloginfo( 'description' ); ?></title>
with this responsive one

<title><?php if ( is_category() ) {
    echo 'Category Archive for &quot;'; single_cat_title(); echo '&quot; | '; bloginfo( 'name' );
} elseif ( is_tag() ) {
    echo 'Tag Archive for &quot;'; single_tag_title(); echo '&quot; | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
    wp_title(''); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
    echo 'Search for &quot;'.wp_specialchars($s).'&quot; | '; bloginfo( 'name' );
} elseif ( is_home() || is_front_page() ) {
    bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
} elseif ( is_404() ) {
    echo 'Error 404 Not Found | '; bloginfo( 'name' );
} elseif ( is_single() ) {
    wp_title('');
} else {
    echo wp_title( ' | ', false, right ); bloginfo( 'name' );
} ?></title>
Do you want to purchase credits? Click here!
#2
So, No Demo, I Saw Cat Archieve, Won't Cat Title Appear At Homepage Also
#3
(06-14-2017 08:32 AM)Arikpearl Wrote: So, No Demo, I Saw Cat Archieve, Won't Cat Title Appear At Homepage Also

Nope. . If you look well, you will see that they are wrapped in conditional statements. Anyway, here's a demo http://sell.jdtrendz.com
Do you want to purchase credits? Click here!
  


Possibly Related Threads...
ThreadAuthor Replies Views Last Post
  [free Ebook]how To Make Your First Income As A Blogger abcheats 1 48 11-18-2017, 09:48 AM
Last Post: patrick
  15 Ways To Secure Your Wordpress Site James 0 64 10-11-2017, 01:01 PM
Last Post: James
  MUST READ: Wordpress Versoin 4.8 To Be Released. sholasunshine 0 25 10-07-2017, 03:38 PM
Last Post: sholasunshine
  TUTORIAL: How To Code/clone A Wordpress Theme? major 12 159 10-02-2017, 03:47 PM
Last Post: major
  How To Know Wordpress Theme A Site Is Using starkit 2 52 10-02-2017, 08:57 AM
Last Post: Pedro
  TUTORIAL: How To Remove The http:// Onclkds.com ad virus From Your Wordpress Site Pedro 2 283 09-19-2017, 07:41 AM
Last Post: cyberhope
  TUTORIAL: How To Know Any Wordpress Theme A Site Is Using? Plus 2 130 09-12-2017, 11:06 AM
Last Post: sholasunshine
  TUTORIAL: How To Know Wordpress Theme A Site Is Using? Plus 0 65 09-11-2017, 05:09 PM
Last Post: Plus



Users browsing this thread:
1 Guest(s)

List of Users who browsed this thread: ayodelesegun, dasod, Gift, Lilbob, niyhi, Pedro
How to Make Your WordPress Title SEO Friendly and Dynamic00