Search code examples
tagsbloggermeta-tags

How can i do specialize meta tags for (tags pages) in blogger?


I really need to help!

I'v a blogger tech blog, and i customized robots.txt file to don't crawl into the tags of my posts to noindex it.

I want to index some tag pages of my blog, and i want specify a special meta tags (description and h1 title and keywords) for these tags pages because they have a default meta tags of the blog.

May any one help me and describe to me how can i do special meta tags for some tags pages in blogger?

I will be appreciative 🙏🏻


Solution

  • You can do this by using the conditional tag I gave below in the head section.

    <b:if cond='data:blog.searchLabel == "YOUR-LABEL"'>
    
    //You can add any meta tags here
    
    </b:if> 
    

    To remove the default description tag in tag pages you can do this

    search for this in your theme = data:view.description

    and change it to;

    <b:if cond='!data:view.isLabelSearch'>
          <meta expr:content='data:view.description' name='description'/></b:if>
    

    If there is any place where you hang out, you can ask again.