• Resolved luboslives

    (@luboslives)


    Hi there, I want to use this plugin exclusively with the shortcodes and the widgets, but the shortcode output has some problems.

    First, it’s generating some white space that WordPress is wrapping in <p> tags, as it loves to do. The problem is I have a custom shortcode on my page followed immediately by yours (no extra spacing/characters whatsoever – see screenshot) and I’m getting an empty <p></p> before the output of the shortocdes. It goes away when i remove your shortcode.

    Edit: looks like we get empty <p> tags after the output as well
    Secondly, the positioning of the icons is wacky. I managed to center the title by adding a style rule to the shortcode, but the icons themselves are sitting at “left: 50%” thanks to a rule being applied to them during the output. See second screenshot (sorry for the PG-13 band name).

    Maybe after you track down the white space <p> problem you can adjust the css for centering. (You can stick a text-align:center rule on the ul, make it 100% width, and make the li elements display as inline-block to obey the text-align rule)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter luboslives

    (@luboslives)

    Looks like we get empty <p> tags after the output as well.

    Plugin Author Heateor Support

    (@heateor)

    First, it’s generating some white space that WordPress is wrapping in <p> tags, as it loves to do.

    We are unable to reproduce this at our end. Are you using any plugin to modify the default post/page editor?

    (You can stick a text-align:center rule on the ul, make it 100% width, and make the li elements display as inline-block to obey the text-align rule)

    Okay. We will consider this in upcoming releases.

    Thread Starter luboslives

    (@luboslives)

    Thanks, I tracked down the <p> problem. It’s weird it wasn’t happening when my shortcode was by itself on the page, but I had to escape the opening line of the string being output by my shortcode. That did the trick.

    Edit: actually it just stuck the <p></p> inside my flex container that i escaped, so i’m no longer seeing it. Not sure if i’m out of the woods yet.

    Edit 2: Yup it’s something on my end when combining more than one shortcode of any kind on the page.

    • This reply was modified 6 years, 9 months ago by luboslives.
    • This reply was modified 6 years, 9 months ago by luboslives.
    Plugin Author Heateor Support

    (@heateor)

    Okay. No worries.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘shortcode output refinement’ is closed to new replies.