August 24, 2017 at 3:13 am #120995
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 #120997
@banno2000 : Please post in the site URL and URL of the page where you have inserted short code.
TikaramAugust 24, 2017 at 3:50 am #120998
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 #121001
@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.
TikaramAugust 24, 2017 at 7:56 am #121010
The 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 #121063August 25, 2017 at 9:28 am #121068
The 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 #121150
- The topic ‘Shortcodes only appear on a new line’ is closed to new replies.