Description meta tag cut off after 50 characters

Discussion in 'Site Marketing' started by markstanden, Nov 10, 2009.

  1. markstanden Customer

    I have just been checking how Google has been indexing my site and on viewing the source code of a listing in firefox i see the meta tag content is cut off after 50 characters, i have checked quite a few listings and they are all the same.

    <meta name="Description" content="When you create publications, you inevitably do..." />

    Can anyone tell me where this is controlled from? 50 characters is not really enough for this meta tag

    Cheers for any advice

    Mark
  2. Eric Barnes Guest

    By default the limit is set at 50 and is defined in viewlistings.php:
    PHP:

    $class_tpl
    ->assign('sitedescription'dot(strip_tags($desc), 50));
    Just change the 50 at the end to your new limit.
  3. markstanden Customer

    Thanks Eric,

    worked a treat

    Mark
  4. jonten123 Customer

    Hello,

    I could not find this line in viewlisting.php or viewlisting.tpl. Is it still 50 characters by default? Using 4.1.8 designer version..

    Thanks!
  5. seymourjames All Hands On Deck

    Thats because you are using the designer version. Viewlisting.php is a core file where you have the source code. You have designer version so the file is encrypted. There is nothing to edit and you therefore cannot make this modification.

Share This Page