Jump to content

Changing Breadcrumbs


SwiftModders

Recommended Posts

  • WHMCS CEO

You'd need to do some string manipulation on the breadcrumbnav template item. Take a look at the Smarty documentation and look in particular at the string replace functions. You'll need to do replacements for > and index.php which is the homepage url.

Link to comment
Share on other sites

Yes it really is, that does not work.

 

It turns the #!-> into a link and that replace function doesn't support ». Thanks.

 

Update:

 

Fixed by using this:

{$breadcrumbnav|replace:' >':' »'}

 

Thanks.

 

Matt, can you replace more than 1 string though, how would that look? I don't see it in the documentation.

Link to comment
Share on other sites

  • 2 months later...
  • 5 years later...
  • 6 months later...
Try Something like this to transform for bootstrap:

 

<ul class="row breadcrumb span12">{$breadcrumbnav|replace:'</a> >':'</a><span class="divider">/</span></li>'|replace:'<a href=':'<li><a href='}</li></ul>

 

Thanks! Work great.

 

One question you know how can I add a Icon only to Portal Home?

Link to comment
Share on other sites

CSS File: adjust to requirements.

 

Add

.home-icon { margin-left: -10px; margin-top: -10px; height: 10px; width:10px;}

 

header.tpl

 

Edit to

<ul>

<li><img class="home-icon" src="someimage.png"><a href="{if $loggedin}clientarea{else}index{/if}.php">{$LANG.hometitle}</a></li>

</ul>

 

All your doing is adding and image and then adjusting its size and position, i would suggest you use an image a little larger than you need, and down size it, rather than smaller and up size, that is if you cant find/make an image that is the size you want, it also means a slightly larger image will allow for more scalability if you later alter the font size of the breadcrumbs

Edited by disgruntled
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated