Meta Tags

Discussion in 'Local Business WordPress Theme' started by mdoyle, Aug 9, 2015.

  1. mdoyle

    mdoyle New Member

    Joined:
    Jul 18, 2015
    Messages:
    9
    Likes Received:
    0
    Hi, I'm using the Local Business theme and I'm having an issue with the Meta tag keywords. The way it is now, the Title comes first, followed by the Keywords, and THEN the Description. I'm using Yoast SEO. My client really wants the Description before the Keywords. I've tried to convince him that it's not that important, but he really wants to change it. Any advice on how to do that? I've attached the Header below. Thanks.

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="main">
    *
    */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo('charset'); ?>" />
    <title><?php wp_title(''); ?></title>
    <?php if (is_front_page()) { ?>
    <?php if (inkthemes_get_option('inkthemes_keyword') != '') { ?>
    <meta name="alexaVerifyID" content="9OMEj-OLW-3Yy-25An4wZ2Oupnw"/>
    <meta name="keywords" content="<?php echo inkthemes_get_option('inkthemes_keyword'); ?>" />
    <?php } else {

    }
    ?>
    <?php if (inkthemes_get_option('inkthemes_description') != '') { ?>

    <?php } else {

    }
    ?>
    <?php if (inkthemes_get_option('inkthemes_author') != '') { ?>
    <meta name="author" content="<?php echo inkthemes_get_option('inkthemes_author'); ?>" />
    <?php } else {

    }
    ?>
    <?php } ?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
    <!--[if lt IE 8]>
    <style>
    .signup-bottom{
    margin-top:0;
    }
    </style>
    <![endif]-->
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?> style="background:url('<?php if (inkthemes_get_option('inkthemes_bodybg') != '') {
    echo inkthemes_get_option('inkthemes_bodybg');
    } else { ?><?php echo get_template_directory_uri(); ?>/images/bg.png<?php } ?>');">
    <div class="wrapper">
    <div class="container_24">
    <div class="grid_24 body_wrapper">
    <div class="main-container">
    <div class="header">
    <div class="grid_14 alpha">
    <div class="logo">
    <a href="<?php echo home_url(); ?>"><img src="<?php if (inkthemes_get_option('inkthemes_logo') != '') { ?><?php echo inkthemes_get_option('inkthemes_logo'); ?><?php } else { ?><?php echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>"/></a>
    </div>
    </div>
    <div class="grid_10 omega">
    <div class="call">
    <div class="social_logo">
    <ul class="social_links">
    <li>
    <?php if (inkthemes_get_option('inkthemes_twitter') != '') { ?>
    <a href="<?php echo inkthemes_get_option('inkthemes_twitter'); ?>" target="_blank" title="Twitter"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter.png" alt="Twitter" /></a>
    </li>
    <?php } ?>
    <?php if (inkthemes_get_option('inkthemes_facebook') != '') { ?>
    <li><a href="<?php echo inkthemes_get_option('inkthemes_facebook'); ?>" target="_blank" title="Facebook"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook.png" alt="Facebook" /></a></li>
    <?php } ?>
    <?php if (inkthemes_get_option('inkthemes_google') != '') { ?>
    <li><a href="<?php echo inkthemes_get_option('inkthemes_google'); ?>" target="_blank" title="Google"><img src="<?php echo get_template_directory_uri(); ?>/images/google-plus.png" alt="Google Plus" /></a></li>
    <?php } ?>
    <?php if (inkthemes_get_option('inkthemes_linkdin') != '') { ?>
    <li><a href="<?php echo inkthemes_get_option('inkthemes_linkdin'); ?>" target="_blank" title="linkdin"><img src="<?php echo get_template_directory_uri(); ?>/images/linkdin.png" alt="linkdin" /></a></li>
    <?php } ?>
    <?php if (inkthemes_get_option('inkthemes_youtube') != '') { ?>
    <li><a href="<?php echo inkthemes_get_option('inkthemes_youtube'); ?>" target="_blank" title="youtube"><img src="<?php echo get_template_directory_uri(); ?>/images/youtube.png" alt="youtube" /></a></li>
    <?php } ?>
    <?php if (inkthemes_get_option('inkthemes_pinterest') != '') { ?>
    <li><a href="<?php echo inkthemes_get_option('inkthemes_pinterest'); ?>" target="_blank" title="pinterest"><img src="<?php echo get_template_directory_uri(); ?>/images/pinterest.png" alt="pinterest" /></a></li>
    <?php } ?>
    </ul>
    </div>
    <div class="call-us">
    <?php if (inkthemes_get_option('inkthemes_topright') != '') { ?>
    <p> <?php echo stripslashes(inkthemes_get_option('inkthemes_topright')); ?></p>
    <br/><a class="btn" href="tel:<?php echo stripslashes(inkthemes_get_option('inkthemes_contact_number')); ?>">
    <span></span></a>
    <?php }
    else { ?>
    <p>Call 24 Hours: 1.888.222.5847</p>
    <br/>
    <a class="btn" href="tel:5551234567"><span></span></a>
    <?php } ?>
    </div>
    </div>
    </div>
    <div class="clear"></div>
    </div>
    <div class="menu_container">
    <div class="menu_bar">
    <div id="MainNav">
    <a href="#" class="mobile_nav closed">Pages Navigation Menu<span></span></a>
    <?php inkthemes_nav(); ?>
    </div>
    </div>
    </div>
    </div>
    <div class="clear"></div>
     
  2. Sobhagya

    Sobhagya Guest

    Joined:
    May 29, 2015
    Messages:
    414
    Likes Received:
    6
    Hello,

    Greetings from InkThemes,

    Could you please provide your site URL along with some edited screenshots so that I can assist you accordingly. If you are unable to create screenshots then you can use www.screenpresso.com
    that will help you to create screenshots.

    Do let me know.
     
  3. mdoyle

    mdoyle New Member

    Joined:
    Jul 18, 2015
    Messages:
    9
    Likes Received:
    0
    Thank you for the reply. Here is site URL. http://mddhomeinspections.com/ I have attached two screenshots. One showing the source code showing the Title first followed by the Keywords, and then Description. We're trying to get Title then Description then Keywords. The other screenshot shows a snippet of the Header template showing the current coding. I've tried making some changes (while keeping a backup) with no luck. Thank you for any help!
     

    Attached Files:

  4. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi,

    Thanks for the screenshot...
    I have got your concern now...

    Please follow the video link given below: -
    http://screenpresso.com/=1dFuc

    Note:- For your information, I am using "WP-Editor" plugin to edit files.
    You can also download and use it from the link https://wordpress.org/plugins/wp-editor/.

    After activating this plugin, you will get the same screen as shown in the video.

    Let me know if need further help.

    Regards!
    Praveen
    InkThemes.com
     
  5. mdoyle

    mdoyle New Member

    Joined:
    Jul 18, 2015
    Messages:
    9
    Likes Received:
    0
    I'm sorry I could not read the header code in your video. Could you put the code in text file or in reply box? Thank you for all your help!

    Jay
     
  6. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hi Jay,

    Nevermind...

    Here is the code :-
    PHP:
      <?php if (inkthemes_get_option('inkthemes_keyword') != '') { ?>
                    <meta name="keywords" content="<?php echo inkthemes_get_option('inkthemes_keyword'); ?>" />
                <?php } else {
                    
                }
                
    ?>
    Now, follow the direction given in screenshot: -
    Localbusiness_move_keyword_below_description_in_meta_info.png

    Hope it will resolve your issue :)


    Regards!
    Praveen
    InkThemes.com
     

Share This Page