Edit markup
-
I’d like to edit the markup, is there a way to do this or a feature that could be added through a filter? We don’t use the Font Awesome style, choosing rather something like this:
<a href="https://twitter.com" class="external-link" title="Twitter"><span>Twitter</span></a>
Instead of:
<a href="https://twitter.com" class="external-link"><i class="icon-2x icon-twitter "></i><span class="fa-hidden">Twitter</span></a>
I am using this:
// remove fontawesome, we use our own icon font function storm_dequeue_fontawesome(){ wp_dequeue_style( 'fontawesome' ); wp_dequeue_style( 'fontawesome-ie' ); } add_action( 'wp_enqueue_scripts', 'storm_dequeue_fontawesome', 20 );
However, I would also like to remove the styles that get output through wp_print_scripts() As I build my own CSS and fonts.
I’d prefer to do this with filters/actions vs extending the class and overriding the functions in question.
Thank you for an excellent plugin!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Edit markup’ is closed to new replies.