• Resolved Hannes Salen

    (@hannes-salen)


    Hi,

    I updated the theme and since then I can’t use font awesome anymore in my subheading.

    I used below code which gave me 2 christmas trees, now it’s just giving me text.
    <i class="fa fa-tree"></i> Merry christmas and a happy 2016! <i class="fa fa-tree"></i>
    Any idea how I can solve this appart from using the older version of yoru theme?

    thanks,

    Hannes

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Hannes. Where is your “subheading”? I just added your code into a post in v1.5.7 and it worked fine.

    Thread Starter Hannes Salen

    (@hannes-salen)

    When you go to the dashboard -> appearance -> theme options and then go to the blog tab, there you can enter text for the subheading.
    Here I could enter font awesome coded as post above, after the update it just gives the code instead of the icons.

    It’s because the subheading content is being filtered using the WP esc_attr() function. You can change it by editing the theme alx_blog_title() function:

    1. Copy the function to a child theme functions.php file:

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

    2. Change the $subheading line to this:

    $subheading = ot_get_option('blog-subheading');
    Thread Starter Hannes Salen

    (@hannes-salen)

    Allright, this seems to have done the trick, thanks!
    Again, great theme, great support!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No more font awesome in subheading’ is closed to new replies.