lee the bean Posted February 4, 2009 Share Posted February 4, 2009 I've installed the Quick Meta Tags for SEO 1.0 contribution - which works a treat & I would recommend to anyone with little knowledge of PHP coding. However, I would like to know if there is a simple method to remove or replace the annoying <br> (LF/CR) characters which along with the products_id text strings and the first 150 characters of the product description are used to compile the META TAGS/TITLE & DESCRIPTION. I have used the <br> characters at the end of each line of text and new line to enable some simple formating within the product description. Quote Link to comment Share on other sites More sharing options...
lee the bean Posted February 5, 2009 Author Share Posted February 5, 2009 I've added two extra lines to remove the <br> chars from <TITLE> & <META NAME="description" CONTENT=" before line: return ($Title); add line: $Title = str_replace('<br>', ' ', $Title); and before line: return ($Description); add line: $Description = str_replace('<br>', ' ', $Description); There, that wasn't so difficult was it. Confidence growing by the hour.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.