WordPress.org

Ready to get started?Download WordPress

Forums

Navigation bar remove parent category links (4 posts)

  1. SandraGaffney
    Member
    Posted 4 years ago #

    Please help me:
    I have some parent categories with sub categories; wish to unlink parent categories and only have the child catgories be clickable
    Example: Servicios (PARENT category without link)
    -Rehabilitación (Child with link)
    -Renta Equipo (Child with link)
    You can see it here, the categories menu is the one in green
    http://www.vidassaludables.net/

    Thanks
    Sandra

  2. henkholland
    Member
    Posted 4 years ago #

    Hi,

    I think you need a combination if "depth" and "title_li" from here:
    http://codex.wordpress.org/Template_Tags/wp_list_categories

    wp_list_categories('depth=2&title_li='); ?> (am not sure about this)

  3. Grenouye
    Member
    Posted 4 years ago #

    Hi,
    I have the same problem.
    I want my parent categories with sub categories to be unlink, and i really don't know how i can do this. (i searched all day !)
    I tried with the 'depth' option but it didn't work.
    Have you found the solution or used the henkholland solution ?
    Thanks a lot.
    Grenouye

  4. henkholland
    Member
    Posted 4 years ago #

    Ok, here are three options:
    http://wordpress.org/support/topic/329492?replies=2

    I did not try it but it works great on his site in the start post. (Needed Google to find this one, yeah).

Topic Closed

This topic has been closed to new replies.

About this Topic