Home › Forums › CSS › Bonus points for being a ‘Padding-Margin Crusher-Ninja” › Re: Bonus points for being a ‘Padding-Margin Crusher-Ninja”
April 18, 2013 at 3:36 pm
#132357
Participant
@Crssp, I think the link you had earlier is the ticket.
> http://sww.co.nz/solution-to-wordpress-adding-br-and-p-tags-around-shortcodes/
I don’t really make much use of shortcodes so I don’t have much experience..
I think your `:first-child` option could be a possibility too. The only problem is the pages that _don’t_ have a shortcode would be affected too. You could always add a body class..like `.home` for this page, then target the shortcode using `.home .entry-content p:first-child { margin: 0 }`
That would definitely be a hack-y solution though..