View Full Version : A search/highlight problem
Kris
18-Jul-2003, 03:54 PM
I have a problem with our site that results in the search highlighting, messing up the font/colour of a searched product.
To see this in action, do a search on our site for something computer related (monitor, mouse, game etc) and then click through from the results to a product.
The end result is seen in the attachment.
The searched word was "chic".
Can someone advise whats causing the problem?
As you can see from our site the pages are customised but I cannot remember changing any search scripts etc.
If you can track down the problem please let me know.. also let me know if you need any more information.
cdicken
21-Jul-2003, 09:58 AM
When I searched for 'Chic' and viewed the source, I got this...
<FONT COLOR="#00ff00"> chic</SPAN>
It looks like you are using a custom style sheet called 'styles.css'. What you need to do is create a style within that sheet for doing search highlighting. It will just look like this:
.searchhighlight{
color:#00ff00;
}
And then go to 'Design | Text', click 'Go to' and go to prompt '2211'. Change the value there to read:
<SPAN CLASS="searchhighlight">
...or whatever name you give to your custom style.
That should fix it.
Kris
21-Jul-2003, 12:11 PM
Thanks, I'll give it a try when I'm back in work tomorrow.
This was one problem that has bothered me for ages!... so a big thanks! :)
Kris
22-Jul-2003, 08:56 AM
Thanks Chris... your an absolute star! ;)
Worked a treat.
Kris
22-Jul-2003, 09:00 AM
One last question because first day back after the weekend and it's confusing me already...
Where did I define the closing span tag in Actinic / Source code?
cdicken
23-Jul-2003, 08:43 AM
Just go to 'Design | Text' and do a search for '</span>'. You will find that it is prompt ID 1970.
I have a feeling this prompt is used whenever Actinic needs to close a span tag so I would be wary about changing it.
Kris
23-Jul-2003, 12:14 PM
Thanks Chris, reason I asked was because we are in the process of cleaning and simplyfying the code that actinic generates and step 1 is to lowercase as many tags as possible.
And get rid of a few excess tables... I've got rid of the two problematic ones without compromising the design, so it's looking good.
Where can I find out what Design / Text / HTML entry relates what element?
Thanks Chris,
cdicken
23-Jul-2003, 02:07 PM
There is a complete list in the Advanced User Guide (a link is in my signature)
Kris
23-Jul-2003, 02:56 PM
Thanks Chris.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.