Modifying MimboPro to Add Paged Navigation To Category Pages

by Josh Highland on December 8, 2008

mimbologo Modifying MimboPro to Add Paged Navigation To Category Pages

Recently I have been doing a lot of work with WordPress. I love WordPress. one of the things I like most about WordPress is the plugins and themes.

I recently bought a copy of the MimboPro theme. Mimbo is clean and very professional. More of a CMS theme then a blogging theme, prefect for what I want to use it for.

As I dug into MimboPro and WordPress, I realized something strange, the MimboPro theme doesn’t support paging in a category view. What this means is EVERY SINGLE post you make is shown on one page. If you have a very active site, like the one I’m working on, this quickly gets out of hand. Look at this image and you will see what I mean (click for full version).

prehack 111x300 Modifying MimboPro to Add Paged Navigation To Category Pages

One of the reasons I like MimboPro was the support that the authors of the theme offer. I headed over to their message forums and found other people like me asking for the Additon of Paged Navigation To Category Pages. The original post was 8 months ago, and no one had resolved anything. I made a post to the MimboPro authors only to be told that there is going to be a new theme that will handle this and it will be available at a deep discount to MimboPro owner. This upset me a bit, so taking matters into my own hand, I fixed what Mimbo wont, and I am handing out my own patch to solve this issue. Below are the instructions to hack your own files, or you can just download my zip file with the pre-hacked files.

Pre-Hacked Files:
Download with pre-hacked files: JoshHighlands_MimboPro_CategoryPagingHack.zip

DIY INSTRUCTIONS (click images for full sizes):

  1. Save a copy of your current categories.php and styles.css files inside of the MimboPro theme directory to a safe location
  2. Open up categories.php inside of the MimboPro theme directory, and find line 17
    mimbohack1 Modifying MimboPro to Add Paged Navigation To Category Pages
  3. Comment line 17 with a double back slash (//)
    mimbohack2 Modifying MimboPro to Add Paged Navigation To Category Pages
  4. Go to line 87 of category.php and add the following code
    mimbohack3 300x68 Modifying MimboPro to Add Paged Navigation To Category Pages
  5. Save and close category.php
  6. Open up style.css inside of the MimboPro theme directory
  7. Add the following CSS code to the bottom of the file (should be close to line 852)
    minbohack4 Modifying MimboPro to Add Paged Navigation To Category Pages
  8. Save styles.css
  9. Upload categories.php and styles.css to the MimboPro theme directory on your server
  10. Everything should be working. Here is what my wordpress running MimboPro looks like
    posthack 220x300 Modifying MimboPro to Add Paged Navigation To Category Pages

That’s it! MimboPro will now have paging in all of the categories. The next and previous links will only show up when you have enough posts. The WordPress default is 10 posts. You can edit the number of posts by going to change the number of posts to show on a category page, go into to the admin and under “setting” > “reading” you will find the option, as highlighted here.
admin 252x300 Modifying MimboPro to Add Paged Navigation To Category Pages

If you had any problem reading the code in the image files, download the zip files with the pre-hacked files in them.

Download with pre-hacked files: JoshHighlands_MimboPro_CategoryPagingHack.zip

If you have any further questions, please post them in the comment.

  • digg Modifying MimboPro to Add Paged Navigation To Category Pages
  • facebook Modifying MimboPro to Add Paged Navigation To Category Pages
  • stumbleupon Modifying MimboPro to Add Paged Navigation To Category Pages
  • twitter Modifying MimboPro to Add Paged Navigation To Category Pages
  • delicious Modifying MimboPro to Add Paged Navigation To Category Pages
  • reddit Modifying MimboPro to Add Paged Navigation To Category Pages
  • friendfeed Modifying MimboPro to Add Paged Navigation To Category Pages
  • posterous Modifying MimboPro to Add Paged Navigation To Category Pages
  • tumblr Modifying MimboPro to Add Paged Navigation To Category Pages

{ 5 comments… read them below or add one }

1 Ren December 12, 2008 at 8:53 am

Well done.

But I think there are 2 mistakes at point 4 and 5.

The code to modify is in category.php and not in comments.php.

2 Josh Highland December 12, 2008 at 9:04 am

wow, thanks for catching that. The post has been updated.

3 Camino January 7, 2009 at 6:04 am

very nice, i upadte my website with it and it works great!

4 Tori February 16, 2011 at 6:04 pm

Thank you so much for sharing this! I have been trying to figure out a work-around for over 2 years. Worked great!!

5 Tori February 16, 2011 at 6:24 pm

Hi again, just noticed that the “Newer Entries” link is not showing. So only displaying “Older Entries.” I’ve double checked the code and it seems I have done it exactly like you show.

Any ideas? Thank you!

Leave a Comment

Previous post:

Next post: