Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #120995
    Mat
    Participant

    Hello,

    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.

    #120997
    tikaram
    Participant

    @banno2000 : Please post in the site URL and URL of the page where you have inserted short code.

    Regards,
    Tikaram

    #120998
    Mat
    Participant

    http://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.

    #121001
    tikaram
    Participant

    @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,
    Tikaram

    #121010
    Mat
    Participant

    The screenshot below is of the post editor. There aren’t any <p></p> tags that I can see. Should I be looking elsewhere?

    https://snag.gy/IMw0Ha.jpg

    #121063
    tikaram
    Participant

    @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,
    Tikaram

    #121068
    Mat
    Participant

    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.

    #121150
    tikaram
    Participant

    @banno2000 :It’s not a theme related issue. Thank you for the information. Have a Good day.

    Regards,
    Tikaram

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Shortcodes only appear on a new line’ is closed to new replies.