0
Welcome Guest! Login
0 items Join Now

SOLVED Twitter meta tags.. Some help pls

    • Deljo's Avatar
    • Deljo
    • Rocketeer
    • Posts: 98
    • Thanks: 0

    SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • I need to share articles in twiiter with their own Title, Desription and Image
      Can some one pioint out what code do i need to put in meta tags

      <meta name="twitter:card" content="summary" />
      <meta name="twitter:site" content="@twitter" />
      <meta name="twitter:creator" content="@twitter" />
      <meta property="og:url" content="WHAT DO I PUT HERE" />
      <meta property="og:title" content="WHAT DO I PUT HERE" />
      <meta property="og:description" content="WHAT DO I PUT HERE" />
      <meta property="og:image" image="WHAT DO I PUT HERE"/>
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • https://dev.twitter.com/cards/getting-started

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Deljo's Avatar
    • Deljo
    • Rocketeer
    • Posts: 98
    • Thanks: 0

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • Yes i know i see that, but i need the code that goes for title, image and description
      <meta property="og:title" content="'.$this->escape($this->item->title).'" /> - THIS is not working form me
      <meta property="og:image" content="'.$timage.'" />
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • Look a the bottom of the page it gives examples. You can't put php in the meta tag.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Deljo's Avatar
    • Deljo
    • Rocketeer
    • Posts: 98
    • Thanks: 0

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • Mark, thank you for your reply... This is my code
      <meta name="twitter:card" content="summary" />
      <meta name="twitter:site" content="@twitteraccount" />
      <meta name="twitter:creator" content="@twitteraccount" />
      <meta property="og:url" content="http://mywebsite" />
      <meta property="og:title" content="'.$this->escape($this->item->title).'" />
      <meta property="og:description" content="The Institute of Communication Studies (ICS) is a scientific-research institution that administers one-year and two-year Masters Programmes." />
      <meta property="og:image" content="'.$timage.'" />

      But it`s not working, no image and no title
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • As I said you cannot write php in your meta tags like that and in any case it's not being fired by an event so "this" is not going to work either. I also have no idea where you are adding that code or into what? You haven't even encapsulated the php in php tags either?

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Deljo's Avatar
    • Deljo
    • Rocketeer
    • Posts: 98
    • Thanks: 0

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • Ok, the meta tags are in index.php of the template (Ricochet) right after <?php
      and can you please help me with this one, i realy need some instructions as i`m doing this for the first time
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • But then you're mixing html and php in the same tag.

      I also now see that your subscriptions appear to have expired. Support does require a current subscription.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Deljo's Avatar
    • Deljo
    • Rocketeer
    • Posts: 98
    • Thanks: 0

    Re: SOLVED Twitter meta tags.. Some help pls

    Posted 6 years 7 months ago
    • ok, thx... i`m sorry

Time to create page: 0.039 seconds