Post by makeuporganizernl » Sun Feb 19, 2017 5:07 pm

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.


Posts

Joined
Fri Aug 12, 2016 4:45 am

Post by pavvel.be » Wed Feb 22, 2017 9:48 pm

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

User avatar
Newbie

Posts

Joined
Wed Feb 01, 2017 9:49 pm
Location - Warsaw, Poland

Post by makeuporganizernl » Mon Feb 27, 2017 3:58 am

Thank you! That did the trick!


Posts

Joined
Fri Aug 12, 2016 4:45 am
Who is online

Users browsing this forum: No registered users and 24 guests