Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS There has got to be an easier way Re: There has got to be an easier way

#48960
CrownOfMars
Member

This is the best i could do:

add_shortcode('zip', 'theme_shortcode_list');

function theme_shortcode_list( $atts, $content = null ) {
extract( shortcode_atts( array(
'class' => 'zip',
), $atts ) );

return '' . $content . '';
}

It outputted this:


Breaking the Silence – Parliamentary Breakfast Resources



I just selected it with CSS using span.zip a but i’d prefer if i could get the class within the a tags.