Hannes Salen on "[Theme: Hueman] Use font awesome in blog subheading?"

ساخت وبلاگ

Hannes Salen
Member
Posted 3 hours ago #

I used to have font awesome icons in my subheading. For this I added a functions.php to my child theme with below code, but since the hueman update this doesn't work anymore.

function alx_blog_title() { global $post; $heading = esc_attr( ot_get_option('blog-heading') ); $subheading = ot_get_option('blog-subheading'); if($heading) { $title = $heading; } else { $title = get_bloginfo('name'); } if($subheading) { $title = $title.' <span>'.$subheading.'</span>'; } retu $title;
}

Any help would be appreciated!

Hi Hannes,

The name of the function has changed for consistency reasons.
Simply replace alx_blog_title() by hu_blog_title() and you should be fine.

Hope this helps

Hannes Salen
Member
Posted 17 minutes ago #

Hi Nikeo,

I just changed it in the function.php of my child theme but the subheading does still show <i class="fa fa-envelope"> instead of the icon. Any idea how I can solve this?

thanks for the quick reply btw.

Hannes

Can you please paste your new code for the blog title function ?
thanks

Hannes Salen
Member
Posted 1 minute ago #

function hu_blog_title() { global $post; $heading = esc_attr( ot_get_option('blog-heading') ); $subheading = ot_get_option('blog-subheading'); if($heading) { $title = $heading; } else { $title = get_bloginfo('name'); } if($subheading) { $title = $title.' <span>'.$subheading.'</span>'; } retu $title;
}

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 35 تاريخ : چهارشنبه 25 فروردين 1395 ساعت: 20:36