Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
veganline

[solved] How to control mousover on the breadcrumb template?

Question

Posted (edited)

I struck gold with some code to show descriptions on mousover of the manufacturer logo - the post is here - but I had no idea what I was doing, and how to show descriptions on mousover of breadcrumb links.

I know that in html, a link with TITLE="bla" shows "bla" on mousover of the link; it shows in a little yellow box.

I know that thirtybees breadcrumb links just say nothing on mousover, or blurt-out what you have just read already if they are the last link. On the demo site, mousover "Coffee and Tea" to see "Coffee and Tea" in a yellow box.

Does anyone know how to change this so that the description for the coffee and tea category shows on mousover?
Or where to look and learn how to do it?

breadcrumb.jpg

Edited by veganline
solved

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

breadcrumb2.jpg.5b4aabdaccbd02a30af4ddfab9e64d73.jpgThis looks promising. First, ignore the word "title" near the top of the breadcrumb template; that's a decoy and means the layer above. Then at about line 34-38 in themes/niara/breadcrumb.tpl , replace the line <a href="#" title="{$breadcrumb.title}" itemprop="item">

        {else}
          <a href="#" title="{$product->description}"  itemprop="item">
            <span itemprop="name">{$breadcrumb.title}</span>
          </a>
        {/if}

{$product->meta_title} works too.
Any comments and suggestions welcome - I've only just discovered this and it might break something else. And is there a way of searching for category descriptions as well as product descriptions?

 

Edited by veganline

Share this post


Link to post
Share on other sites
  • 0

You should escape the value, otherwise some characters (apostrophe, etc...) can break the layout

{$product->meta_title|escape:'htmlall'}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...