Forums / Templates, Stylesheets, Page Layout / remove <meta description> from ez pages and define pages : help

remove <meta description> from ez pages and define pages : help

Locked

Views: 1,484

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 Oct 2010, 1:50 AM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

remove <meta description> from ez pages and define pages : help

I like the meta description functions for the products and categories, but it is harmful to the ezpages and define pages for website with allot of information.

I have used this to remove the <meta description> just for the homepage,

template_default/common/html_header.php:
<?php if($this_is_home_page) {} else { ?><meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <?php } ?>

anyone know how I would remove it for the ez pages and define pages as well?

17 Oct 2010, 2:00 AM
#2
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: remove <meta description> from ez pages and define pages : help

p.s.
I need to do this so google will list all the service and location keywords in the page.
Websites with many service or information pages made in ez pages.

17 Oct 2010, 4:29 AM
#3
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: remove <meta description> from ez pages and define pages : help

Feature request for new zencart update:

<?php if($meta_description_exists) {<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> } else { ?> <?php } ?>

Because letting search engines pull the description from the content is better than having a non-descriptive confusing incorrect description.

26 Oct 2010, 11:13 PM
#4
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: remove <meta description> from ez pages and define pages : help

I see product meta tags are automatically generated, but ez pages and define pages are not
So I just need something like this

<?php if($ez_pages, $define_pages) {} else { ?><meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <?php } ?> 

for html_header.php

But I dont know how to write this.

Maybe I will pay someone and post the answer here latter if no one replies soon.