I tried adding meta tags to my header file and it's not working. Please help!
-
Hi. I created a page-template which seems to be working fine. I wanted to try adding some meta gags on the page. After reading about how it’s been on this site I tried myself. Here’s the code that I put in my header.php file:
<?php if(is_page(4)) {?>
<meta name=”description” content=”Description of the page”/>
<meta name=”keywords” content=”a list, of, my, keywords”/>
<?php }?>
<?php wp_head(); ?>…When I use “View Source” for the page I don’t see the meta tag. What could I be doing wrong? Thanks for any help with this one!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘I tried adding meta tags to my header file and it's not working. Please help!’ is closed to new replies.