Announcement

Collapse
No announcement yet.

A search/highlight problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A search/highlight problem

    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.
    Attached Files
    Chris Owens
    Cannings
    Actinic Support Subscriber
    On behalf of <a href="http://www.cannings.co.uk/">www.cannings.co.uk</a>

    #2
    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.

    Comment


      #3
      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!
      Chris Owens
      Cannings
      Actinic Support Subscriber
      On behalf of <a href="http://www.cannings.co.uk/">www.cannings.co.uk</a>

      Comment


        #4
        Thanks Chris... your an absolute star!

        Worked a treat.
        Chris Owens
        Cannings
        Actinic Support Subscriber
        On behalf of <a href="http://www.cannings.co.uk/">www.cannings.co.uk</a>

        Comment


          #5
          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?
          Chris Owens
          Cannings
          Actinic Support Subscriber
          On behalf of <a href="http://www.cannings.co.uk/">www.cannings.co.uk</a>

          Comment


            #6
            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.

            Comment


              #7
              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,
              Chris Owens
              Cannings
              Actinic Support Subscriber
              On behalf of <a href="http://www.cannings.co.uk/">www.cannings.co.uk</a>

              Comment


                #8
                There is a complete list in the Advanced User Guide (a link is in my signature)

                Comment


                  #9
                  Thanks Chris.
                  Chris Owens
                  Cannings
                  Actinic Support Subscriber
                  On behalf of <a href="http://www.cannings.co.uk/">www.cannings.co.uk</a>

                  Comment

                  Working...
                  X