Page 1 of 1

Store meta title and meta tag description bug

Posted: Sun Feb 19, 2017 5:07 pm
by makeuporganizernl
Hello,

My store has been showing lately a bug whenever you search it in google. The meta title I have solved it temporarily by adjusting it in header.tpl but the meta tag descrpition is picking up random text from the website and displaying it whenever searching on google. First it was picking it from an Instagram slider I had connected to the store now it jumped to picking up random text from a html code in a carousel item.
Has anyone ever experienced this? Can I fix this or do I need an extension?
Basically it is only the store meta tag and meta description that are scrambled.

Re: Store meta title and meta tag description bug

Posted: Wed Feb 22, 2017 9:48 pm
by pavvel.be
Try to do this in header.tpl:

Code: Select all

<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
Then you can remove

Code: Select all

<?php if ($description) { ?>
                                  <?php echo $description; ?>
<?php } ?>
to make it look like

Code: Select all

<meta name="description" content="WHATEVER YOUR DESCRIPTION MAY BE..." />
I hope that will solve your problem

Re: Store meta title and meta tag description bug

Posted: Mon Feb 27, 2017 3:58 am
by makeuporganizernl
Thank you! That did the trick!