customizr and yost meta tags not in home page code
-
Hello
I’m new to WP and really a rookie. I am trying to get my google page ranking up and can’t get meta tags for description or title to show up in the code of homepage when i do a source.been looking everywhere and found an article that says put this in the header.php after the page title.
<?php if ( is_home() ) { ?>
<meta name=”description” content=”My Description” />
<?php } ?>i cannot find the page title in the code. Here is the code from my header.php:
<?php
/**
* The Header for Customizr.
*
* Displays all of the <head> section and everything up till <div id=”main-wrapper”>
*
* @package Customizr
* @since Customizr 1.0
*/?>
<!DOCTYPE html>
<!–[if IE 7]>
<html class=”ie ie7″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if IE 8]>
<html class=”ie ie8″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if !(IE 7) | !(IE 8) ]><!–>
<html <?php language_attributes(); ?>>
<!–<![endif]–>
<?php
//the ‘__before_body’ hook is used by TC_header_main::$instance->tc_head_display()
do_action( ‘__before_body’ );
?><body <?php body_class(); ?> <?php echo apply_filters(‘tc_body_attributes’ , ‘itemscope itemtype=”https://schema.org/WebPage”‘) ?>>
<?php do_action( ‘__before_header’ ); ?>
<header class=”<?php echo apply_filters(‘tc_header_classes’, ‘tc-header clearfix row-fluid’) ?>” role=”banner”>
<?php
//the ‘__header’ hook is used by (ordered by priorities) : TC_header_main::$instance->tc_logo_title_display(), TC_header_main::$instance->tc_tagline_display(), TC_header_main::$instance->tc_navbar_display()
do_action( ‘__header’ );
?></header>
<?php
//This hook is filtered with the slider : TC_slider::$instance->tc_slider_display()
do_action ( ‘__after_header’ )
?>can someone tell me where to put that code? That’s supposed to let me add the meta tags?
thanks in advance
- The topic ‘customizr and yost meta tags not in home page code’ is closed to new replies.