More Font Awesome icons in a blurb

Please note, this article and instructions are for Font Awesome version 4.x.

For the instructions for Font Awesome 5 click here.

To follow up last weeks post about using Font Awesome icons for a blurb instead of the built in Elegant Font icons, and as promised, here is what you can do to make it easier, faster and using less code and clicking to use them in blurbs all over your site.

 

Note 1: This post is not about using more than 1 icon in one blurb! Why would you anyway, right? 🙂

 

Note 2, to set the expectations: This solution needs some very minor technical experience (basically search and copy-paste). The solution IS simple, however it does not provide a super-simple click-and-drag-and-it-works solution. (I’m thinking about one, but it’s a tad bit difficult.)

 

(more…)

How to replace the blurb icon with Font Awesome

Please note, this article and instructions are for Font Awesome version 4.x.

For the instructions for Font Awesome 5 click here.

Last week I received a help request from John. He was trying to replace the blurb icon from it’s original Elegant Font to a Font Awesome icon. He did some pre-work, so half the credits go to him. Only some tricky finishing touches were needed.

I thought that other Divi users would be interested in this, so here it comes. Click to see how you can do it yourself. It requires adding some CSS to your style sheet and maybe playing around with it a bit for proper adjusments.

First, of course, you need to have Font Awesome loaded. You can easily do that with the Font Awesome for Divi Builder plugin, which you can grab here. Then follow the steps below.

!

1. Set up a blurb

Just set up a blurb with any icon. We’ll replace the icon later with some CSS.

If you want a circle or circle border, set those up the way you want it.

Give the blurb a custom CSS class name. (Open your Blurb Settings, go to the Custom CSS tab, and add the class name in the CSS Class field.) It should be different that the Font Awesome class names, e.g. don’t use fa-plane. But you can use fab-plane.

Q

2. Hide the icon

In the Blurb Module Settings panel go to Advanced Design Settings.

Switch on ‘Use Icon Font Size’ and set it to 0.

fab-blurb-settings

Now you will need to edit your style.css file, so go to Appearance > Editor. It should automatically load your styles.css

Add these lines to it, with your settings. Read the notes below.

.fab-plane .et-pb-icon::after {
    content: "\f072";
    font-family: "FontAwesome" !important;
    font-size: 48px;
    padding: 6px; /* OPTIONAL, READ NOTES */
}
i

Notes

The .fab-plane should be the css class name you gave your blurb.

The content should be the unicode from the Font Awesome page, e.g. “\f002” for the magnifying glass in the example. Don’t forget the quotation marks and the backslash!

You will most probably need to adjust the font-size of the icon. An out-of-the-box Divi uses 48px for the icon on top and 16px for the icon on the left. You can of course use different values if you want to.

The padding is optional. Some icons are not square, for example the plane icon. In these cases the circle around the icon will be an oval. This can be fixed by setting a padding of a couple of pixels. If you don’t need any padding, then just remove the line.

If you did the above 4 steps, then you should have your blurb ready with a Font Awesome icon.

If you have more blurbs, then you need to do this for every one of them. Or do you? 🙂

In my next post I will be giving you some tips on how to minimize / simplify the CSS code if you are using more blurbs with Font Awesome. If you want to be ready for that, then give all your Blurbs an extra CSS class name called ‘fab’. 😉

If you have questions or you need some help, feel free to leave a comment, maybe it will help somebody else too.

Happy Blurbing!

How to create a clickable section divider in Divi

How to create a clickable section divider in Divi

First, what do I mean by a clickable section divider?

It is an icon usually in a circle which is positioned between two clearly distinguishable horizontal sections on a page. Most of the time the user can click the icon and as a result the page will automatically scroll to a predefined section fo the page. It is used for making navigation on longer pages easier and for decorative purposes as well.

This is a feature which I was missing from Divi, so I decided to create it. Read on to find out how it can be done.

(more…)

css.php