Since switching to the GrungeMag theme about two weeks ago, I’ve been having a problem where the category menu is not working. The theme use Superfish style menu which is very awesome but not until today the category menu is working nicely in this blog. GrungeMag by Elegant Themes is very beautiful but there are some fixes required to make it work properly maybe to the newer version of WordPress. I’m using WordPress 2.7.1 and as I surfed the WordPress Codex pages, I noticed that this template is still using some codes that has been deprecated in newer version of WordPress but I don’t know since when. Right after installing the theme, 2 problems arised which were:
For the RSS Feed problems, the solution is to remove any blank lines outside of <?…..?> tags. “Any” in this case does not really means “any” because some spaces are required as the theme’s formatting. When using the previous theme, I manage to fix this problem by browsing the source codes and remove all blank lines in wp-rss2.php, wp-atom.php, wp-config.php, and theme’s functions.php as suggested by feedvalidator.org. However, for the GrungeMag theme, this method could not fix the problem because there were more blank lines that what I can find. The solution is by using a plugin called Fix Rss Feed that will scan all files in your WordPress folder and automatically remove all blank lines that might cause the problem. Unfortunately you’ll have to CHMOD your files to 777 in order to allow the plugin to fix the problem. Quite a lot of job to CHMOD the file to 777 and then back to their original permission setting.
For the category meny problem, I’ve already knew that there must be something in the source code that have to be fixed to make it work. Said to myself “The main menu is working fine but why not the category menu?“. I’ve analysed the source codes several times and made some try-and-error because I’m not really good with PHP coding. After looking at some forum posts, I thought this might be because the theme used wp_list_cats() tag which is now being replaced with wp_list_categories() tag. Actually for this theme both tags are working but both will require different arguments to function properly for the menu category. The real problem was in the argument.
Initial argument setting for the code:
<!--Begin Categories Navigation Bar-->
<div id="categories">
<ul class="nav superfish"><?php wp_list_cats("sort_column=name&optioncount=0&depth=2&exclude=$artsee_exclude_cat;"); ?></ul>
</div>
<!--End category navigation-->
Working argument setting for the code:
<!--Begin Categories Navigation Bar-->
<div id="categories">
<ul class="nav superfish"><?php wp_list_cats("sort_column=name&optioncount=0&depth=2;"); ?></ul>
</div>
<!--End category navigation-->
The exclude=xxxx argument is used in the menu category and working fine but I don’t know why it is not working in for the category menu. Maybe I can tell later after my knowledge about PHP is getting better or if any of you know why, please share it in the comment box. Hope this information is helpful.
Related Posts
Related Websites
You still can keep use the exclude argumen. First I think this is because the wordpress version and replace syntax from wp_list_cats to wp_list_categories. But after I read this article, I found that the wp_list_cats still can use.
After I try a few times, the problem at the ;. You can try and the syntax will running and the exclude page still working.
Thanx
you can try to remove ; from exclude=$artsee_exclude_cat
Thanks. You help me solved one of my problem. I have another problem with thumbnails. What do you think is the problem when thumbnails does not appear on my post? Thank you very much.
Make sure you’ve installed all plugins supplied together with the theme and CHMOD your cache folder to 777.
Hello,
This tutorial of yours helped me alot! But I’m having problems with dropdown menus. I hope you can help me out with those.
As far as I know all you need to do for dropdown subcategory effect you need to have a subcategory? Or am I missing something here? I tried with subpages and it worked but subcategories are not showing.
Thanks!
Hi Milos, Thanks for your comment.. The dropdown subcategory will appear if you adjust the level (or depth) setting of the codes. Try change the depth to 1 if you are using only 1 level of subcategories or 2 for 2 level of subcategories as I did. Check the codes in my post and you might understand.
Hi,
I have a problem with GrungeMag theme category. Whenever I click on one of my categories, the ads and my sidebar contents all drop down to the bottom. I am not too sure what causes this and something wrong with my category.php file? Do you know how to solve this? I click on your blog’s category and it seems fine to me.
You can check out my blog at http://www.denaihati.com by clicking on “1malaysia” category.
Please help.
Hi,
By the way, I can’t get my thumbnail to work even after trying your suggestion to chmod to 777 for the cache folder. Any other suggestion?
Hi Denai,
Thanks fot the comments.. May I know when did u bought the theme? This is because we might not using the same version of theme. I will inform you if I found a solution to your problem. I cannot guarantee because this theme uses javascripts and I’m not very good with it. Solutions that I posted here were found by trial-and-error method. As for now, I can only suggest you to check the theme’s installation readme and check if you had followed all the instructions.
Hi, ur article is really nice, while reading it I truly like it. I just wanna suggest that u should submit your blog in this website which is offering very unique features at cheap prices there are expert advertising team who will promote ur blog & affiliate ads through all over the networks which will definitely boost ur traffic & readers. Finally I have bookmarked ur blog & also shared to my friends.i think my friend might too like it hope u have a wonderful day & !!happy blogging!!.
Hello I’m from Brazil and I installed the theme grungemag but it happens that I can not put you tube videos that someone will come across this problem? because it does not put the blog on air with the new theme
Hi Jean,
I don’t really understand what you mean about the video and I also don’t know why the theme would prevent your blog from being online. There must be a problem with the installation. Make sure you had uploaded everything provided with the theme.
LoL we got the same template.. But mine is much better
http://img192.imageshack.us/img192/3029/istan.jpg
Hi,
I have a problem with Grungemag template.
As you see it in the picture, my title and thumbnail joint with their self.
I think there is no space with each other
How can i solve this problem
thanks for helps.
You need to edit the page coding to solve that problem.
Thank you, Ridhuan! The categories menu was driving me crazy… What a headache!
Hi Ridhuan.
My problem is with the category bar.
I have re-sized the “logo.gif”, and it is up in the “category text”.
Look at my website: http://www.ideiasaparte.com.br
.
How can I change or add a background collor in the text of the categorys? (or how can I change the color [white] of the texts of categories [to black])?
Thanks !
Hi Ridhuan.
I solved my problem.
I deleted the last “” tag in the “header.php” and its all ok right now.
I just wanna ur help with dates:
I post like this:
(exemple) “08 19th, 2010″
I want like this:
(exemple) “19/08/2010.”
Wath I need to do?