Requirements for Wordpress Themes

mabuc said

I always get this warning message everytime I check my theme…

WARNING: Found wrong tag, remove premium from your style.css header.

and if I remove the entire tag it says

RECOMMENDED: Tags: is either empty or missing in style.css header.

is this ignorable also?..

How do you handle this theme check plugin message… anyone?

mabuc said
mabuc said

I always get this warning message everytime I check my theme…

WARNING: Found wrong tag, remove premium from your style.css header.

and if I remove the entire tag it says

RECOMMENDED: Tags: is either empty or missing in style.css header.

is this ignorable also?..

How do you handle this theme check plugin message… anyone?

Hello Mabuc, I replied to the other thread you asked this in. Please try not to dredge up multiple old threads with the same request though :wink:

Japh said
mabuc said
mabuc said

I always get this warning message everytime I check my theme…

WARNING: Found wrong tag, remove premium from your style.css header.

and if I remove the entire tag it says

RECOMMENDED: Tags: is either empty or missing in style.css header.

is this ignorable also?..

How do you handle this theme check plugin message… anyone?

Hello Mabuc, I replied to the other thread you asked this in. Please try not to dredge up multiple old threads with the same request though :wink:

japh, they are not the same… this problem is for css tags in style.css and the other one is the
the_tags… thanks for the response… sorry about that…

mabuc said
mabuc said

I always get this warning message everytime I check my theme…

WARNING: Found wrong tag, remove premium from your style.css header.

and if I remove the entire tag it says

RECOMMENDED: Tags: is either empty or missing in style.css header.

is this ignorable also?..

How do you handle this theme check plugin message… anyone?

There are only specific “whitelisted” tags that you can use. Anything not explicitly allowed will cause that error. Personally, I just copy all the tags from TwentyEleven and remove the irrelevant ones to avoid the error.

I’m not sure if there is a published list of valid tags, but I expect there must be an array of them in the plugin code that you could reference.

sevenspark said
mabuc said
mabuc said

I always get this warning message everytime I check my theme…

WARNING: Found wrong tag, remove premium from your style.css header.

and if I remove the entire tag it says

RECOMMENDED: Tags: is either empty or missing in style.css header.

is this ignorable also?..

How do you handle this theme check plugin message… anyone?

There are only specific “whitelisted” tags that you can use. Anything not explicitly allowed will cause that error. Personally, I just copy all the tags from TwentyEleven and remove the irrelevant ones to avoid the error.

I’m not sure if there is a published list of valid tags, but I expect there must be an array of them in the plugin code that you could reference.

yeah… that’s what I did and errors are gone… thanks

One more question from me.

INFO: template-blog.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 60: include(SMARTIK_INCLUDES . 'template-blog1.php');
Line 63: include(SMARTIK_INCLUDES . 'template-blog2.php');
Line 66: include(SMARTIK_INCLUDES . 'template-blog3.php');

Should I use “get_template_part()” instead of “include”?

Thanks.

Smartik said

One more question from me.

INFO: template-blog.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 60: include(SMARTIK_INCLUDES . 'template-blog1.php');
Line 63: include(SMARTIK_INCLUDES . 'template-blog2.php');
Line 66: include(SMARTIK_INCLUDES . 'template-blog3.php');

Should I use “get_template_part()” instead of “include”?

Thanks.

yes sir…

mabuc said
Smartik said

One more question from me.

INFO: template-blog.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 60: include(SMARTIK_INCLUDES . 'template-blog1.php');
Line 63: include(SMARTIK_INCLUDES . 'template-blog2.php');
Line 66: include(SMARTIK_INCLUDES . 'template-blog3.php');

Should I use “get_template_part()” instead of “include”?

Thanks.

yes sir…

not in all cases (for me) - If the file that you want to include is a part of the theme layout, use get_template_part() - but for function files use include()