Results 1 to 2 of 2

Thread: Alternative 'Sub Categories' header

  1. #1
    Thread Starter
    Member
    Not a Verified Customer
    Dirtbag's Avatar
    Join Date
    Dec 2009
    Posts
    78
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Alternative 'Sub Categories' header

    So for my restaurant category page I didn't want the sidebar to say "Sub Categories". I wanted it to say "Food Styles" or something of that nature. Same for my Jobs category, I wanted it to say "Job Types"... anything but the generic "Sub Categories", follow me? So here's what I did...

    In Sidebar.php starting at line #32 - #40 I created this
    Code:
              <h2 class="dotted"><?php
    	if (is_category('restaurants')) {
    	_e('Food Styles', 'cp');
    	} elseif (is_category('jobs')) {
    		_e('Job Types', 'cp');
    	} else {
    	_e('Sub Categories', 'cp');
    	} ?></h2>
    You can change the category names to your own and add as many elseif statements as you need to cover each category.
    Enjoy!

  2. #2
    Thread Starter
    Member
    Not a Verified Customer
    Dirtbag's Avatar
    Join Date
    Dec 2009
    Posts
    78
    Thanks
    0
    Thanked 4 Times in 3 Posts

    Re: Alternative 'Sub Categories' header

    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Alternative to Lightbox image view
    By bastian in forum ClassiPress General Discussion
    Replies: 5
    Last Post: July 12th, 2010, 08:10 PM
  2. Classipress v3 Categories unlike v2.9.x Categories?
    By timrab in forum ClassiPress General Discussion
    Replies: 2
    Last Post: March 20th, 2010, 04:38 PM