mschosting
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Enigma theme change blog page layout full widthbump?
Forum: Plugins
In reply to: [ChatPirate live chat] Bug Translation issuesNo translations yet?
Forum: Fixing WordPress
In reply to: metadata errorI keep on making tests with different plugins to change the title, and even The seo framework – title fix but nothing works!
It did not work ??
This is the start of header.php
<!DOCTYPE html>
<!–[if lt IE 7]>
<html class=”no-js lt-ie9 lt-ie8 lt-ie7″> <![endif]–>
<!–[if IE 7]>
<html class=”no-js lt-ie9 lt-ie8″> <![endif]–>
<!–[if IE 8]>
<html class=”no-js lt-ie9″> <![endif]–>
<!–[if gt IE 8]><!–>
<html <?php language_attributes(); ?>><!–<![endif]–>
<head>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<meta charset=”<?php bloginfo(‘charset’); ?>” />
<?php $wl_theme_options = weblizar_get_options(); ?>
<?php if($wl_theme_options[‘upload_image_favicon’]!=”){ ?>
<link rel=”shortcut icon” href=”<?php echo esc_url($wl_theme_options[‘upload_image_favicon’]); ?>” />
<?php } ?>
<link rel=”stylesheet” href=”<?php echo get_template_directory_uri() . “/style.css”; ?>” type=”text/css” media=”screen” />I put this line here but no good…
<?php if ( is_home() ) { ?>
<meta name=”description” content=”Fotografo em cascais” />
<?php } ?>This is not working and Iam going crazy! ??
here is a screenshot of the problem.
Basically only the text XPTO can be seen instead of my description ??
I made this to the header.php<!DOCTYPE html>
<!–[if lt IE 7]>
<html class=”no-js lt-ie9 lt-ie8 lt-ie7″> <![endif]–>
<!–[if IE 7]>
<html class=”no-js lt-ie9 lt-ie8″> <![endif]–>
<!–[if IE 8]>
<html class=”no-js lt-ie9″> <![endif]–>
<!–[if gt IE 8]><!–>
<html <?php language_attributes(); ?>><!–<![endif]–>
<head>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<meta charset=”<?php bloginfo(‘charset’); ?>” />
<?php $wl_theme_options = weblizar_get_options(); ?>
<?php if($wl_theme_options[‘upload_image_favicon’]!=”){ ?>
<link rel=”shortcut icon” href=”<?php echo esc_url($wl_theme_options[‘upload_image_favicon’]); ?>” />
<?php } ?>
<link rel=”stylesheet” href=”<?php echo get_template_directory_uri() . “/style.css”; ?>” type=”text/css” media=”screen” />
<?php if ( is_home() ) { ?>
<meta name=”description” content=”Fotografo em cascais” />
<?php } ?>I have been searching and searching. Finally I guess I found a post that will help:
https://www.ads-software.com/support/topic/help-add-a-specific-meta-description-to-homepage-onlyThis is the code:
Hi All, I was having the exact same problem as Vistatech and found this thread. I know it’s 10 months old but most likely others are ending up here too. Here is what I finally found and it works. Keeps the front page description separate from the posts descriptions . I inserted this code in the header.php file right under the closing meta tag for the title. Hope it works OK for whoever needs it to.
<?php if ( is_home() ) { ?>
<meta name=”description” content=”My Description” />
<?php } ?>Credit goes to Jacob Chappell who posted it here at https://www.ads-software.com/support/topic/how-do-i-add-a-page-description-to-the-home-page
I will have to try it later
On Metataganalizer It looks ok, Iam still not sure about what I did wrong