rupok / flexia

A modern lightweight and versatile theme for WordPress with the endless customization options through Customizer.
https://flexia.pro
11 stars 6 forks source link

on index.php file #1

Closed EmranAhmed closed 7 years ago

EmranAhmed commented 7 years ago

DON'T use:

if (get_theme_mod('blog_icon_class') == '') {
    $icon_class = flexia_get_option('blog_icon_class');
} else {
    $icon_class = get_theme_mod('blog_icon_class');
} 

USE:

$icon_class = get_theme_mod('blog_icon_class', 'default icon class');

Take a look: https://codex.wordpress.org/Function_Reference/get_theme_mod