WordPress Theme Development - Meta Tags is a Plugin Territory?

Hey Guys:

My theme has got soft rejected for few reasons and one of the reason is “Meta tags in head tag is a plugin territory.”

I had this hard coded in the header.php and I’m not sure of a way of implementing this for every page without using a plugin. Can anyone put some light on this issue for me please? or would it be smart to recommend a plugin using TGM plugin activation way?

Thank you so much for your help in advance!

Anyone got any clue here?

Hi,

What Meta tags the reviewer asking you to remove?

Thanks

All Meta tags :slight_smile:

Mmm. I continue to not understand.

Can you show me some example?
The meta tags are like:

< meta name=“description” content="">
< meta name=“keywords” content="">
< meta name=“author” content="">
< meta http-equiv=“refresh” content="" />
< meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />

But these obviously not are plugin territory and must stay in the head. So I think I not understood what the reviewer is asking…

Anyway this is the head of my theme, and it has been accepted:


    
    
    
    " />
    <?php
    $menu_arr = hc_get_menu_array('header-menu');
    wp_head();
    ?>

Tags like descriptions are automatically inserted by Wordpress or SEO plugins.

Thank you for your quick response :slight_smile:

BTW these are hard coded by me and reviewer want me to delete it:
< meta name=“description” content=“”>
< meta name=“keywords” content=“”>
< meta name=“author” content=“”>

If I delete that then do I have to add any SEO plugin to TGM?

meta tags are plugin territory, they aren’t design related, they are a function / feature, so either remove them and leave them upto the user to install their own seo plugin (yoast, AIO etc) or create your own simple plugin.

I personally would recommend installing a plugin such as yoast as it’s constantly updated, does much more than the default meta tags (facebook, twitter sharing etc). Don’t reinvent the wheel

1 Like

Yes I agree with Gareth, the following meta tags can be removed:

< meta name=“description” content="">
< meta name=“keywords” content="">
< meta name=“author” content="">

You not need to do other stuffs, simple remove both 3 and you’re done :wink:

1 Like

Thanks for your suggestion. Sure will do the same :slight_smile:

Thanks mate :slight_smile: