• can anyone point me in the right direction here!? tried searching but didn’t find anything…

    i’m tring to set up my category links so that when clicked they are no longer active (clickable). let’s say, if i have a category ‘linux’ and i click it, then i get all the posts filed under that category – i want the ‘linux’ category link to be no longer active!?

    how’s that possible?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter speedbump

    (@speedbump)

    hmm… is it something to do with CSS or with the code itself? i’m using the wp_list_cats() function to display the category list. any ideas!?

    So you want them listed in the menu, but not as links? Or do you mean where it shows under (or above) a post? Or both?

    From what I can tell all of the category tags return as links, so if you wanted to change that, you would have to dig into the code.

    Thread Starter speedbump

    (@speedbump)

    ok, let’s say you’re visiting the root of my website:

    http://example.com

    here, i want all the categories to be listed in the sidebar as links. i’ve accomplished that using the wp_list_cats(); let’s say i have 5 categories. let’s say one of them is called ‘linux’ and you click on it. you are now taken to:

    http://example.com/categories/linux/ (…using permalinks)

    now, all the posts from the ‘linux’ category are shown and also all the categories are still in the sidebar. what i want to do is make the ‘linux’ category link now inactive since it’s open.

    simply said… whatever category you open, make it’s link inactive on the next page.

    Karel

    (@karel)

    I would like that too, but wouldn’t that mean extending the functionality of wp_list_cats? Any takers? 😉

    moshu

    (@moshu)

    As oriecat said above: you have to dig into the code. But I don’t think it’s such an important feature that’s worth to mess with the core files to make your life miserable for every update 🙂

    Karel

    (@karel)

    No, I would certainly not start hacking core files, my updates are exciting enough with changing a sort order here and a date selection there. And what do I know about PHP…

    But it is a nice interface function to disable and/or highlight the “current” link in a navigation list, and it could be an option. I know I miss it. I wouldn’t mind seeing it on some (overfull no doubt) to-do list.

    Regards,

    Karel

    I recently fixed a similar issue by editing the list_cats function which is called by the wp_list_cats function. Check my post here: http://ww.wp.xz.cn/support/topic/47919

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘links not active’ is closed to new replies.