Jump to content

Archived

This topic is now archived and is closed to further replies.

ovidiuav

Twitter shortcode doesn't work with DMS

Recommended Posts

ovidiuav    0
ovidiuav

Hi! For some reason, the Twitter shortcode for embedding tweets doesn't work with DMS; instead of showing the tweet I mention, it just shows the shortcode as it's written in the post. I don't have this problem with other themes, even with Platform. Any idea about why this happens and how I can fix it?

Share this post


Link to post
Share on other sites
Rob    547
Rob

You're not explaining anything about what you're doing, so that we can answer this topic.

 

Where are you getting the code from? Where are you applying it? How are you applying it? 

 

What's the URL of the page where this error appears?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
ovidiuav    0
ovidiuav

I'm honestly not even sure how to respond to that. I'll just post a picture of the issue...

 

Also, you can see in the picture the issue with the trackbacks I mentioned here, in case I didn't explain that clearly enough, neither.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

If the shortcode is displaying like that, its most likely you're adding the shortcode to the visual content editor instead of the text editor.

Can you provide the shortcode, so I can test it myself.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
ovidiuav    0
ovidiuav

I never use the visual editor, I added the shortcode in the text editor, I'm not that dumb. :) Like I said in the first post here, this only happens with DMS. The blog post with the shortcode is already published and literally just switching with another theme, even with Platform, will make the shortcode work.

 

The shortcode is displayed in the picture above... it's [tweet *URL here*], or you can just paste the tweet's URL in the post. More info on the shortcode here.

Share this post


Link to post
Share on other sites
ovidiuav    0
ovidiuav

I don't mean to be rude, but this is getting ridiculous.

 

I gave you the link to Wordpress's page on embedding tweets in posts. Obviously, that means I read it. Obviously, I know you can ALSO write just the URL, as I MYSELF told you that in my last post here. On Wordpress' page about embedding tweets in blog posts it says that you can also use the shortcode which I provided for you. And I have, both the shortcode and just the URL. AND THEY BOTH WORK. With every other theme, but not with DMS. Do you understand? The blog post in which I embedded the tweet has been published for a long time and it worked fine until switching to DMS, without doing ANY alterations to said post. As I said before, literally just switching to any other theme will display the tweet correctly. When I switch back to DMS, it's busted. I already said this two times before, once in the first post of this thread, before you suggested that I might be typing the shortcode in the visual editor instead of the text editor, even though that would not have made any sense, because I'd said before that it works with other themes.

 

Anyway, moving on. Before I say anything, remember that the issue I came to you with has NOT been resolved.

 

I have managed to successfully embed the tweet by creating a new line after just writing the URL in the post. Keep in mind that on every other theme it worked fine without the extra line and someone who's embedded a tweet like that while using another theme would have absolutely NO way of knowing he has to add an extra line for the tweet to display correctly with DMS. Second, if someone's embedded a lot of individual tweets in his posts, by themselves, without any other content (thus no other lines, just the URL on one line), it might take a really long time to edit each post just to add an extra line because embedding tweets doesn't work like it should with DMS. Third, the shortcode still does not work. It should. It works with every other theme. The shortcode provides more customization options for the embedded tweet.

 

Clearly, this is a DMS issue. I hope it gets fixed.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

If you want to embed a tweet, not sure why you want to use a shortcode when you can easily just use the URL and then linebreak. But if you want to just wrap the tweets url around a shortcode you can use the [embed]tweet url[/embed]

 

http://codex.wordpress.org/Embeds

 

As far as I am aware the tweet shortcode you're referring to is a Wordpress.com feature, as the docs you're reading are for sites using and being hosted by Wordpress.com, this is a separate product to the standalone version from Wordpress.org, which you're using.

They may work in other themes, I assume these themes are the ones created by Wordpress themselves ?

 

I have made a note on our issue tracker to see if this is something we can add, if it is needed. But not why you would want to add them via a shortcode when you add URL, that is easier than adding it via a shortcode.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
ovidiuav    0
ovidiuav

If you want to embed a tweet, not sure why you want to use a shortcode when you can easily just use the URL and then linebreak. But if you want to just wrap the tweets url around a shortcode you can use the [embed]tweet url[/embed]

 

"The shortcode provides more customization options for the embedded tweet."

 

Indeed, though, the shortcode is not for self-hosted blogs, I don't know why I recalled it having worked before, but it was obviously a mistake on my part. Bottom line, the shortcode not working has nothing to do with DMS, it just works only on Wordpress.com hosted sites. That's clear now.

 

Nonetheless, that still leaves the issue of the URL needing another line after it and I mentioned above why this could be a huge inconvenience for someone moving to DMS from other themes that do not require that line.

 

I'm glad we finally sorted it all out.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

If you use the [embed] if doesn't need to be on a new line. So you can use it in our grid system etc...


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×