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?
- Difference between del, remove, and pop on lists
- How can I reverse a list in Python?
- What is the difference between Python’s list methods append and extend?
- Python – TypeError: ‘int’ object is not iterable
- Understanding slice notation
- Understanding slice notation
- TypeError: list indices must be integers or slices, not str
- IndexError: list index out of range and python
- Can I change Bootstrap button color?
- Python – TypeError: ‘int’ object is not iterable
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- How to convert list to string [duplicate]
- How do I get the number of elements in a list?
- Difference between del, remove, and pop on lists
- How to overcome TypeError: unhashable type: ‘list’
- How to avoid “ConcurrentModificationException” while removing elements from `ArrayList` while iterating it? [duplicate]
- Finding the index of an item in a list
- Difference between Arrays.asList(array) and new ArrayList
(Arrays.asList(array)) - Finding the index of an item in a list
- Accessing the index in ‘for’ loops?
- How to make a flat list out of a list of lists
- Convert list to array in Java [duplicate]
- Removing duplicates in lists
- TypeError: list indices must be integers or slices, not list
- Accessing the index in ‘for’ loops?
- What does the list() function do in Python?
- List changes unexpectedly after assignment. Why is this and how can I prevent it?
- Why does this iterative list-growing code give IndexError: list assignment index out of range?
- Customize Bootstrap checkboxes
- Converting array to list in Java
- TypeError: ‘float’ object is not subscriptable
- Is there a short contains function for lists?
- How to get the list of all installed color schemes in Vim?
- TypeError: ‘float’ object is not subscriptable
- Transpose/Unzip Function (inverse of zip)?
- appending list but error ‘NoneType’ object has no attribute ‘append’
- Converting array to list in Java
- Check if something is (not) in a list in Python
- Python: finding an element in a list [duplicate]
- How to avoid “RuntimeError: dictionary changed size during iteration” error?
- How to avoid “RuntimeError: dictionary changed size during iteration” error?
- Finding the average of a list
- Writing a list to a file with Python
- How do I concatenate two lists in Python?
- if else in a list comprehension
- How can I randomly select an item from a list?
- Print a list in reverse order with range()?
- Convert Set to List without creating new List
- Get unique values from a list in python [duplicate]
- Fastest way to check if a value exists in a list
- How to Sort a List
by a property in the object - How can I count the occurrences of a list item?
- TypeError: ‘list’ object cannot be interpreted as an integer
- Why is it string.join(list) instead of list.join(string)?
- Why is it string.join(list) instead of list.join(string)?
- How do I concatenate two lists in Python?
- if else in a list comprehension
- Finding median of list in Python