You are here:  » Text in search


Text in search

Submitted by gahanpip on Mon, 2017-04-03 07:44 in

Hello David,
I think you have probably covered this before, I just can't find it in the listings, I have text going off to the right in the search results, how can I correct this?

{link saved}

Philip

Submitted by support on Mon, 2017-04-03 08:37

Hello Philip,

It's caused by the long comma separated list of text in the description that has no white space - pre-wrap should do the trick, so if you edit html/default.css and look for the search results <p> style definition beginning at line 148:

  .pt_sr p {
    font-size: 13px;
    text-align: justify;
  }

...and REPLACE with:

  .pt_sr p {
    font-size: 13px;
    text-align: justify;
    white-space: pre-wrap;
  }

(don't forget to do a CTRL+F5 hard refresh after modifying css to ensure that it is reloaded)

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by gahanpip on Mon, 2017-04-03 11:42

Hello David, sorry that did not work, that must be a first :-) but I added word-wrap: break-word; and that worked perfectly. Thank your for your help, it pointed me in the right direction.

Philip