New Landing How can we help? Themeforest Theme Support Dante Conflict Twitter integration

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #242653
    newki
    Member
    Post count: 177

    Hello,

    As you can’t see on the site but you will be able to see it with the inspector, on this page, I’ve embedded 2 twitter things, using the code they provide.

    1st integration : under the grey image, I’ve put the code to integrate a specific tweet.

    <blockquote class="twitter-tweet" lang="fr"><p lang="en" dir="ltr">For my French friends. <a href="https://twitter.com/hashtag/pleonasmes?src=hash">#pleonasmes</a> <a href="http://t.co/WLvWDNf8WJ">http://t.co/WLvWDNf8WJ</a></p>&mdash; Arnaud ADAM (@ArnaudADAM) <a href="https://twitter.com/ArnaudADAM/status/654188624083329024">14 Octobre 2015</a></blockquote>
    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

    2nd integration : bottom right, under the title Twitter : it’s a list of tweets linked to a hashtag.
    Tweets sur #GetItOnWithCharliePuth
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);</script>’
    When I validate my page, one or the other or both disappear.
    Here is the answer Twitter team provides but I don’t understand properly. As it’s a dev site, I don’t have any plugin activated.

    Twitter’s answer

    Twitter’s widgets JavaScript enhances content placed on your page as it’s loaded. In the case of an embedded timeline, Twitter’s JavaScript looks for a timeline link and replaces the content with a rendered widget; a single Tweet’s blockquote is replaced with a similar rendered widget.
    When I view the source code of your provided URL I see <iframe>s created, both with a DOM identifier of twitter-widget-0. The script block provided for loading Twitter’s widgets JavaScript for the timeline has been escaped into CDATA by your CMS. It looks like there are some additional attempts to act on Twitter’s supplied content by your CMS, which leaves our JavaScript confused. Which plugins have you installed which may be replacing the content you supplied to the page?

    Do you think it comes from the theme ? from WordPress ?
    Thanks for your concern.

    Attachments:
    You must be logged in to view attached files.
    #243403
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    I see both Twitter Widgets working. What do you mean when you say validate your page?

    Thanks.

    #243410
    newki
    Member
    Post count: 177

    When I click on “Publish” (I guess it’s the word in english).
    In fact this subject is resolved now, I removed the javascript part from the code giver by twitter and it works now

    #243419
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register