Posts

Showing posts from April 9, 2019

Adding span tags within wp_list_pages list items

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0; } 2 1 I am using this shortcode to produce a list of child pages of a specified parent. I would like to replace the list items default discs with a font awesome icon. According to the font awesome documentation it is done like this: <ul class="fa-ul"> <li><span class="fa-li"><i class="fas fa-spinner fa-pulse"></i></span>replace bullets</li> </ul> And this is the code I am using to to generate my list of items: function childpages_shortcode_callback( $atts ) { $atts = shortcode_atts( array( 'parent' => false, ), $atts, 'childpages' );