Google Fonts, Font Awesome and Custom CSS

3 min read Updated

Three tools give your hover effects their final polish: Google Fonts for the text, Font Awesome icons for buttons, and custom CSS for anything the settings don’t cover. All three work on the free plan. This guide shows where each one is and what to watch out for.

Google Fonts

Every text part of a style (heading, description, button) has a Typography control on the Style tab. Open it and pick a Font Family: the list has your system fonts and 959 Google Fonts, with a search field at the top. In the same popup you set the Size, Weight, Transform, Style, Decoration, Text Align, Line Height and Letter Spacing.

The Typography control open with the Google Fonts list and its search field

The plugin loads each Google Font you use from Google, only on pages that show the style. If you host your fonts yourself (for example for privacy reasons), turn Google Fonts off in Image Hover Settings; your styles then use the fonts your site already loads. Read more about the fonts on Google Fonts.

Font Awesome Icons

Icons appear in the Button Effects buttons, some Flipbox layouts and the Lightbox icons. In the item form, click the icon field: a picker opens with a Type to filter search and the icon grid. Click an icon and its name (for example fas fa-address-book) goes into the field.

The Font Awesome icon picker open in a Button Effects item, with the search field and the icon grid

The plugin ships with Font Awesome Free 5.10.2 and loads it only on pages that show icons. If your theme already loads Font Awesome, you can turn Font Awesome off in Settings so it doesn’t load twice; check that the icons still show afterwards.

Custom CSS

Each style has its own Custom CSS box on the Advanced tab. Your CSS is added after the style’s own CSS on every page that shows the style.

A custom CSS rule typed into the Custom CSS box on the Advanced tab

Write full selectors and start them with the style’s own wrapper class, .oxi-image-hover-wrapper- followed by the style id. That way the rule changes only this style. For style 50:

.oxi-image-hover-wrapper-50 .oxi-image-hover-heading {
    letter-spacing: 1px;
    text-transform: uppercase;
}

Use your browser’s Inspect tool on the page to find the class of the part you want to change, then click Save.

Important: the plugin refuses to save when the custom CSS contains the words style or script anywhere, even inside a normal property such as font-style. The Save button then keeps spinning and nothing is saved. Use the Typography control for italic text instead, and remove those words from your CSS.

CSS for All Styles at Once

To change every gallery on your site, add your CSS in Appearance → Customize → Additional CSS (or your theme’s CSS field) instead. The Custom parent class setting in Settings adds your own class to every gallery wrapper, so you can target them all and make your rules stronger than a theme rule.

Tips

  • Two font families per page are enough; every extra Google Font is one more file to load.
  • Pick icons people understand at a glance.
  • Test custom CSS on desktop, tablet and mobile with the device buttons above the preview.

Related guides: Typography and Font Customization, Hover Effects Not Working.

Still stuck?

A developer who works on Image Hover Effects answers every ticket.

Open a ticket