1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 How I can delete [IMG] tag from thread description?

Discussion in 'Styling and Customization Questions' started by CNK, Oct 31, 2014.

  1. CNK

    CNK Active Member

    If my thread includes images xF adds IMG tags to meta description. How can I delete them from the source site?

    img in description.JPG
     
  2. Mike

    Mike XenForo Developer Staff Member

    It would require code modifications.
     
    CNK likes this.
  3. CNK

    CNK Active Member

    In php files or template?
     
  4. Mike

    Mike XenForo Developer Staff Member

    In PHP files.
     
  5. CNK

    CNK Active Member

    Could you tell me, where I can change this?

    In my opinion it is not seo-friendly if our description looks like:
    Code:
    <meta name="description" content="[ATTACH][ATTACH]...
    <meta property="og:description" content="[ATTACH][ATTACH]...
    or
    Code:
    <meta name="description" content="[IMG][IMG]..
    <meta property="og:description" content="[IMG][IMG]..
    In templates.xml I found:
    Code:
    <meta name="description" content="{xen:helper snippet, $firstPost.message, 155}" /></xen:container>
    so I think it is related with the "snippet" function, right?
     
  6. CNK

    CNK Active Member

    Does anyone know where is the code that is responsible for displaying BBCode tags in meta descriptions?
     

Share This Page