Welcome to EricHamby.Com

Need A Second Opinion?

Thinking about hiring me? but would like to see what others are saying? Reviews

Client Login

Client login for account information, project updates, payments, and support will be open soon.

Member Login

Lost your password?

Registration is closed

Sorry, you are not allowed to register by yourself on this site!

You must either be invited by one of our team member or request an invitation by email at
eric {at} erichamby {dot} com.

Note: If you want an account please contact me.

Classipress: Fix Hidden Categories And Overlap

In this tutorial i will show you how to show the hidden categories and then fix the overlap created by showing the hidden categories if you have more than one row of categories.

The only file you need to open will be the “index.php” file in your Classipress folder.

Step 1

Has you can see the theme will hide any categories that have now published post inside them.

Hides all  categories  without a written post in them.

Hides all categories without a written post in them.

Open your “index.php” file and go to about line11 and you should see this.

The category tag code.

The category tag code.

Step 2

Now we need to tell the category tag we want to show all categories even if they have no published posts in them. We do this by changing
<?php wp_list_categories('show_count=0&hide_empty=true&orderby=name&order=asc&title_li='); ?>
To This!
<?php wp_list_categories('show_count=0&hide_empty=0&orderby=name&order=asc&title_li='); ?>
All we did is change the hide empty tag from “false” to “0″.
3
After you complete this go to your index page and you should see all your categories like so…

EWW!

EWW!

Step 3

Like you see in the screenshot above the catagories run down into the actuall post div container. Well this is ugly so good thing its an easy fix. Go to line 14 of your “index.php” file once more and add this code
<div class="clear"></div>
So now your completed code should look like this.

The complete code

The complete code

And if you look at your theme it should now look more like this.

All done now

All done now

Leave a Comment