Results 1 to 5 of 5

Q: remove category link in breadcrumb

This is a discussion on Q: remove category link in breadcrumb within the Template Modifications forums, part of the vBulletin SEO Discussion category; I've seen only a couple heavily moderated forums that do this. I'd like to remove the link to a category ...

  1. #1
    Junior Member
    Real Name
    Jim
    Join Date
    May 2008
    Posts
    3
    Liked
    0 times

    Q: remove category link in breadcrumb

    I've seen only a couple heavily moderated forums that do this.
    I'd like to remove the link to a category forum, on the breadcrumb
    Been searching for a while can't find an a way to do this.

  2. #2
    Junior Member
    Real Name
    Jim
    Join Date
    May 2008
    Posts
    3
    Liked
    0 times

    Figured out how to remove categories links from Breadcrumb

    Replace entire content of navbar_link
    with:

    Code:
    <if condition="$show['breadcrumb']">
          <span class="navbar">&gt;
            <if condition="!in_array($nav_title, array('Category Name', 'Another Category Name', 'Yet Another One', 'Etc Etc', 'And this one too'))">
              <a href="$nav_url">$nav_title</a>
            <else />
               $nav_title
            </if>
          </span>
        <else />
          $nav_title
      </if>
    Replace code in red with the actual name of your categories:


    Note: Your Categories and Forums can't have the same name otherwise your forum will unlink in breadcrumb as well.

  3. #3
    Member mindhunter77's Avatar
    Join Date
    Jan 2006
    Posts
    68
    Liked
    0 times
    do you have an example of what this looks like?

  4. #4
    Senior Member
    Real Name
    Marvin Hlavac
    Join Date
    Oct 2007
    Posts
    231
    Liked
    13 times
    I would like to remove not just the hyperlink from the category name, but I'd like to remove the category name itself, too. I modified the above code as follows:

    Code:
    <if condition="$show['breadcrumb']">
        <span class="navbar">&gt;
        <if condition="!in_array($nav_title, array('General', 'Software Brands', 'Private Area'))">
            <a href="$nav_url">$nav_title</a>
        </if>
        </span>
    <else />
        $nav_title
    </if>
    This accomplishes the removal of the category name in the breadcrumbs, however it leaves an extra character (>) behind, so there are two (>>) characters there. It looks something like this:


    * Site Name > > Forum Name

    * Thread Title
    How can I remove one of the (>) characters? Or is there a better way to accomplish this?

    My version: vbulletin 3.8.4

    Any help with this would be greatly appreciated.

  5. #5
    Senior Member
    Real Name
    Marvin Hlavac
    Join Date
    Oct 2007
    Posts
    231
    Liked
    13 times
    I solved my issue with just moving the "&gt; " (including one space)

    Code:
    <if condition="$show['breadcrumb']">
        <span class="navbar">
        <if condition="!in_array($nav_title, array('General', 'Software Brands', 'Private Area'))">
            &gt; <a href="$nav_url">$nav_title</a>
        </if>
        </span>
    <else />
        $nav_title
    </if>

Similar Threads

  1. where do I remove the breadcrumb?
    By inparadise in forum vBSEO.com Styles
    Replies: 2
    Last Post: 04-23-2008, 12:01 PM
  2. Remove vBSEO Link?
    By Jared in forum General Discussion
    Replies: 6
    Last Post: 03-10-2008, 06:45 PM
  3. ability to remove category pages from archive
    By dcallan in forum vBSEO Features Archive
    Replies: 3
    Last Post: 07-25-2006, 08:51 AM
  4. Remove breadcrumb
    By I, Brian in forum Template Modifications
    Replies: 10
    Last Post: 10-09-2005, 05:43 AM

Tags for this Thread

Posting Permissions

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