- This topic has 7 replies, 2 voices, and was last updated 6 years, 1 month ago by
tikaram.
-
AuthorPosts
-
August 24, 2017 at 3:13 am #120995
Mat
ParticipantHello,
I am trying to have a shortcode appear on the same line as some text. In WordPress, I have the article written like:
Did you like this article? [shortcode for a social media button]
however when viewing the published article, the button that is called by the shortcode always appears on a line below the text, as if I had inserted a line break between the text and the shortcode. This is despite there being ample room for the button to be displayed on the same line.
Is this problem caused by the theme? If so, how do I fix it? It occurs with multiple shortcodes made by different developers, and I haven’t been able to find anything in WordPress.org’s support about it.
Thanks.
August 24, 2017 at 3:44 am #120997tikaram
Keymaster@banno2000 : Please post in the site URL and URL of the page where you have inserted short code.
Regards,
TikaramAugust 24, 2017 at 3:50 am #120998Mat
Participanthttp://theholyfish.com/my-must-pack-item/
Scroll to the bottom of the article and you’ll see two Facebook Like buttons that have placed themselves under the line of text which they are supposed to be adjacent to. Both these buttons are from the same plugin, but I was also getting the same result with shortcodes from other plugins.
August 24, 2017 at 4:47 am #121001tikaram
Keymaster@banno2000 :After analyzing the post, it looks like there is a
<p></p>
tag wrapping the text. Edit the post on your dashboard. Click on text inside the post editor and remove the<p></p>
tags. Hope this resolves your issue.Regards,
TikaramAugust 24, 2017 at 7:56 am #121010Mat
ParticipantThe screenshot below is of the post editor. There aren’t any <p></p> tags that I can see. Should I be looking elsewhere?
August 25, 2017 at 7:06 am #121063tikaram
Keymaster@banno2000 :Please try disabling Plugins and follow this link to know more about plugin conflict with our themes. let me know if you have further issues.
Regards,
TikaramAugust 25, 2017 at 9:28 am #121068Mat
ParticipantThe issue persists even with a default theme and with all the plugins disabled. So I guess I’ll look elsewhere for more assistance. Thanks.
August 27, 2017 at 1:02 pm #121150tikaram
Keymaster@banno2000 :It’s not a theme related issue. Thank you for the information. Have a Good day.
Regards,
Tikaram -
AuthorPosts
- The topic ‘Shortcodes only appear on a new line’ is closed to new replies.