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
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
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>';
}
return $title;
}
thanks
this code does not include anything related like :
<i class="fa fa-envelope">
Can you check in the customizer > content > blog design and content, if the heading and subheading fields are correctly setup?
Sorry, the code I gave in previous post is what is the functions.php of my child theme.
The code I used in blog sub-heading in customizer is:
<i class="fa fa-envelope"></i><a title="Set out of office" href="http://europe/ere/?p=177" target="_blank">Important info on how to login to set your out of office! </a><i class="fa fa-envelope"></i>
This code with the functions.php worked in the previous version of hueman, now I only get the plain text.
OK thanks.
The html tags are being stripped out from the customizer fields for security reasons.
I will probably safely allow Html in some fields like this one and the footer copyright in a future update.
Before that, the simplest way to apply your previous changes would be to add the following code to your child theme functions.php file :
function hu_blog_title() {
return sprintf('<i class="fa fa-envelope"></i><a title="Set out of office" href="http://europe/ere/?p=177" target="_blank">Important info on how to login to set your out of office! </a>
<i class="fa fa-envelope"></i>');
}
hope this helps 🙂
Ok thanks for the help, great support an really great theme btw!!!
I noticed this has already been fixed in the last update thanks for that!!!