CodeCanyon

Requirements for Wordpress Themes

1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

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?

196 posts
  • Envato Staff
  • Australia
  • Has been a member for 4-5 years
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Reviewer
+1 more
Japh staff says


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 ;)

1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says



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 ;)

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..

2848 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark moderator says


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.

1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says



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

537 posts
  • Author had a Free File of the Month
  • Microlancer Beta Tester
  • Has been a member for 2-3 years
  • Exclusive Author
  • Europe
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
  • Sold between 10 000 and 50 000 dollars
Smartik says

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.

1122 posts
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Philippines
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
mabuc says

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…

2 posts
  • Exclusive Author
  • Has been a member for 1-2 years
ThemeLoads says


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()

by
by
by
by
by