shortcode output refinement
-
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)
- The topic ‘shortcode output refinement’ is closed to new replies.