Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Quick css question navCatTabs

    There are tags for the current category or sub that can be used without depending on the pseudo-classes. In tpl_categories.php:
    PHP Code:
     if ($box_categories_array[$i]['current']) {
            if (
    $box_categories_array[$i]['has_sub_cat']) {
              
    $content .= '<span class="category-subs-parent">' $cat_name_display '</span>';
            } else {
              
    $content .= '<span class="category-subs-selected">' $cat_name_display '</span>';
            } 
    (snippet from Cat Dressing, so not identical to stock - but the classes are)

    The Classic template uses this functionality, if you want to see how it operates.

  2. #2

    Default Re: Quick css question navCatTabs

    Ahh! That's it. span.category-subs.selected Funny thing is I use it on another site of mine *duh moment*.

    Thanks so much!

 

 

Similar Threads

  1. quick CSS question
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Oct 2011, 09:00 AM
  2. CSS setting: navCatTabs?
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Sep 2010, 06:21 PM
  3. navCatTabs question - How do I remove this bar?
    By mtimber in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Aug 2008, 05:05 PM
  4. Just a quick question about a part of my CSS
    By ymbd in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Aug 2008, 08:02 PM
  5. CSS Flyout Quick Question
    By zberke in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Feb 2007, 01:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg