php - <head> issues: Google Tag Manager not applied to all pages in WordPress and meta description not showing -
i looked @ source code on applicable webpages both issues , here's i'm finding:
1) i'm using wordpress , i've installed google tag manager in header.php right after opening body tag. tag appears published on pages posts not homepage nor other pages created. looks theme uses uses get_header(); load header single.php , page template, wouldn't know where. , google webmaster tools can't verify.
2) added meta description in header.php file homepage
that's not showing either.
any suggestions? thanks.
header.php should called in every page-*.php, index.php, template-*.php single-*.php, archive-*.php, etc.
if want have special header specific page, need create header-home.php , phone call using function get_header('home')
hope helps
php wordpress meta google-webmaster-tools google-tag-manager
No comments:
Post a Comment