You need a shortcode to deal with the removal of the <i>
from the editor.
You’ll have to add this to your functions.php of your theme/child theme.
function dd_fontawesome_shortcode ($atts) {
$args = shortcode_atts( array(
'icon' => '',
'size' => '14',
'color' => '#000',
'type' => 'fa'
), $atts ) ;
$output="<i class="".$args['type'].' '. $args['icon'] .'" style="font-size: '. $args['size'] .'px; color: '. $args['color'] .';"></i>';
return $output;
}
add_shortcode ('dd-icon' , 'dd_fontawesome_shortcode');
Usage is like [dd-icon icon=”fa-star”] or [dd-icon icon=”fa-star” size=”18″ color=”#eee”]
Related Posts:
- Mark error in form using Bootstrap
- Placeholder Color Change in Bootstrap
- Using glyphicon-facebook from bootstrap 3
- How to add text over the image in bootstrap
- bootstrap modal not working at all
- how to install bootstrap to twentyfourteen theme
- How to convert bootstrap tab functionality into wordpress using just 1 query?
- Two column layout using Bootstrap [closed]
- Using/compiling Foundation SASS on live WordPress server
- WordPress \ Bootstrap 4 not building breadcrumbs correctly
- NavWalker Bootstrap Error (won’t dropdown)
- Iframes inside bootstrap tab disappear when tab is shown
- Why is my Bootstrap 5 navbar not displaying the drop down menu on smaller screens?
- bootstrap 4 carousel inside every post of a page [closed]
- Each Slide Has Something Missing In Carousel
- Installing Bootstrap on Twentyeleven Theme
- Enque a stylesheet in functions.php to override Bootstrap
- boostrap on wp-admin backend via plugin installation
- Editor inserting bootstrap css and we don’t know why
- Modify YouTube Embed Code to fit theme
- Bootsrap.css Not Working [closed]
- WordPress keeps showing mobile version on Internet Explorer
- Problems with Bootstrap 3 Carousel Integration
- Use of Bootstrap nav in a page
- Display WP Meta Details in Bootstrap Modal
- bootstrap carousel in wordpress home page showing small images and not responsive
- WordPress Loop with different Column sizes
- creating different style CTA button in the menu
- Bootstrap code acting weird on wordpress
- How To Get WordPress To Pickup Boostrap’s CSS File?
- Connecting Stylesheet in WordPress using less styles
- Learning Html and a new on wordpress designing and developing
- Bootstrap Nav menu won’t toggle collapse when in mobile viewport size
- Link permalink in Twitter Bootstrap “TypeAhead” results
- Bootstrap 4 Theme Post Layout
- Bootstrap and Respond.js
- How to display a list of authors in bootstrap grid?
- Twentyseventeen theme and Bootstrap are seemingly incompatible [closed]
- do_shortcode for twitter doesn’t work well
- Enueue script for bootstrap
- how To Use wp_link_pages With bootstrap 4 for WordPress
- How can I reverse a list in Python?
- What is the difference between Python’s list methods append and extend?
- Understanding slice notation
- How to convert list to string [duplicate]
- Print a list in reverse order with range()?
- Why is it string.join(list) instead of list.join(string)?
- Apply function to each element of a list
- How does the data-toggle attribute work? (What’s its API?)
- TypeError: list indices must be integers or slices, not str
- Adding images to a Bootstrap Carousel with AJAX
- Inorder Binary Tree Traversal (using Python)
- What does the “x for x in” syntax mean?
- ArrayList vs List<> in C#
- What are these attributes: `aria-labelledby` and `aria-hidden`
- Display:inline not working
- Remove duplicates from a List
in C# - Bootstrap 3 Glyphicons CDN
- Sorting list based on values from another list
- Twitter Bootstrap Modal Form Submit
- Quickest way to compare two generic lists for differences
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- List all pages and children in separate ul
- List all sites in multisite
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Bootstrap Modal as login page
- wp_dropdown_categories and custom taxonomy + custom post type
- Prevent a base themes css file from loading
- Introductory paragraph only in list of blog posts
- Split loop to load WordPress gallery into Bootstrap modal and carousel
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- Why is my oembed function modifying Twitter embed?
- Change url links on members loops in buddypress
- jQuery for custom plugin not working with Divi theme
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Categories list loop – add separator every 3 categories [closed]
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- How to create bootstrap grid loop?
- Display formatted list of taxonomy terms with last seperator different
- Adding category dropdown list to theme options page
- Create alphabetical Pagination for custom taxonomy?
- How to implement CSS-defined images from bootstrap site in wordpress theme
- Check for Twitter Bootstrap Loaded
- Bootstrap Error in WordPress plugin
- Remove the Tag from wp_nav_menu
- Styling last item in ul [closed]
- Return all Tags and Categories in Separate List
- Is there any known plugins that would replace WordPress classes in editor with their Bootstrap 4 equivalent?
- Is it possible to display the Navigation Menu without using Walker_Nav Class
- I need advice for creating native WordPress directory site based on native WordPress functionality only
- Drodown list return issue
- making a search.php query
- Add row after three columns
- Glyphicons Dont Show in WordPress Plugin Only
- How to display thumbnail if post is assigned one otherwise not
- How to echo a different field if another field is empty?
- Need to call this php function inside a modal window from text widget
- nav tag wrapping around dropdown
- WP Job Manager – Show recent jobs as cards