Support » Fixing WordPress » Highlighting a link

  • shooter1

    (@shooter1)


    Hi all

    I am using the fold_category_list plugin but I have one issue. When the children categories are displayed, the active category link goes dead – as in it loses it’s formatting and ahref.

    I can’t seem to get at it with css using php in the header file and attaching an inline class.

    Does anyone know the correct way to access sub categories in css using either this plug in or wp_list_cats?

    I have tried li.current-cat
    li.current-cat-item

    None seem to work, please help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Kalessin

    (@kalessin)

    Post a link?

    Thread Starter shooter1

    (@shooter1)

    http://www.malcom.streamlinenettrial.co.uk/wordpress/index.php/archives/category/news/swimming-news

    I also can’t get the parent to highlight, you will notice my other sections are all page based, news is the only one based on categories.

    I can see the problem, I just can’t get my class into it’s
    <li> tag which must be automatically generated

    Kalessin

    (@kalessin)

    The reason the item is no longer a link is because you’re on that page; no page should link to itself.

    You can style the item to appear in the same style as the other links by changing the #pages a declaration to #pages a, #pages li

    In other news, you might want to test your site in Safari…

    whooami

    (@whooami)

    add IE7 to that list as well.

    Thread Starter shooter1

    (@shooter1)

    Cheers mate, worked great! Thanks for the heads up about the other browsers too

    Hi

    I have a similar problem. The problem is that when you hav an active item, fold_category_list strips out the “a href” and doesn’t give the li any sort of active class. This makes it very difficult to style in a ‘here you are now’ way for the user, or am I being dense?

    fold_page_list keeps the “a href” and gives a “page_item_current_page_item page_folder” class to the li. This makes it lovely to style, and also very different from its sister plugin, which seems a little odd.

    Is there a workaround for the category list? I’m trying to make a site that makes little distinction for the visitor between the posts and the pages (but I still want to keep the functions so am using both), and I would like the navigations to look exactly the same for both. This is the only thing that is now standing in my way!

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Highlighting a link’ is closed to new replies.