Quantcast
Channel: Topic Tag: footer | WordPress.org
Viewing all articles
Browse latest Browse all 13564

starpro on "[Theme: Fruitful] remove nofollow in footer"

$
0
0

I have looked into this more, and located the issue.

The code in functions.php is as follows:-

/*Get footer text*/
function fruitful_get_footer_text () {
	$out_footer_text = $footer_text = '';
	$theme_options   = fruitful_ret_options("fruitful_theme_options");
	if (!empty($theme_options['footer_text'])) {
		$footer_text = fruitful_kses_data(stripslashes($theme_options['footer_text']));
		if (!is_home()) {
			$out_footer_text .= '<nofollow>';
				$out_footer_text .= $footer_text;
			$out_footer_text .= '</nofollow>';
		} else {
			$out_footer_text .= $footer_text;
		}
	echo $out_footer_text;
	}
}

However the is_home() function does not recognise the the front page if you have it set to a static page. Instead, it will be plied to your posts page.

I have altered this is_home() to is_front_page, as this will return TRUE if a static page is used. See http://codex.wordpress.org/Function_Reference/is_home and http://codex.wordpress.org/Function_Reference/is_front_page for details.


Viewing all articles
Browse latest Browse all 13564

Trending Articles