Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Which page to edit ?

Which page to edit ?

Views: 2,215

Results 1 to 8 of 8
20 Jan 2011, 8:25 PM
#1
drunkguy avatar

drunkguy

New Zenner

Join Date:
May 2009
Location:
Longmont, CO
Posts:
91
Plugin Contributions:
0

Which page to edit ?

I forgot the name of the page to edit to add more meta tags on the main website. I already known about meta_tags php but there is another page to add these meta tags for google and yahoo verification. Its a core/base index HTML file if I remember right.

<meta name="verify-v1" content="e5mKbGLeqWm7s/1AXsfQkSxw0prZnd3T87oZNlB3jgY=" /> <meta name="y_key" content="b46b8688b81cbb31" />

These need to be added.

Thanks

20 Jan 2011, 9:09 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Which page to edit ?

Make a copy for your template and load it into your template folder structure of

html_header.php

Zen-Venom Get Bitten

20 Jan 2011, 10:23 PM
#3
drunkguy avatar

drunkguy

New Zenner

Join Date:
May 2009
Location:
Longmont, CO
Posts:
91
Plugin Contributions:
0

Re: Which page to edit ?

That's the one i needed.

Thank you.
Drunkguy

:smile:

29 Jan 2011, 5:38 AM
#4
canadabuckles avatar

canadabuckles

New Zenner

Join Date:
Aug 2009
Location:
Cornwall, Ontario, Canada
Posts:
2
Plugin Contributions:
0

Re: Which page to edit ?

Where is that file located?

Thanks.

29 Jan 2011, 6:24 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Which page to edit ?

CanadaBuckles,

Where is that file located?
The html_header.php file referenced for this, one can find the core file that is not to be edited, only a copy for your template

includes/templates/template_default/common

The edited copy you load to
includes/your_templates/common

create the dir if it does not exist

Zen-Venom Get Bitten

14 Feb 2011, 5:01 PM
#6
golden_synergy avatar

golden_synergy

Zen Follower

Join Date:
Aug 2009
Location:
Westland, Michigan
Posts:
107
Plugin Contributions:
0

Re: Which page to edit ?

Where do I put the Google script?

<meta name="google-site-verification" content="m7mcpxkSc1TnoGd_XPEooooooD0cDLi7qvj_XEJQY" />

When I place it in here my main page gets messed up! Could you tell me what I am doing wrong. THANK YOU

Below is the file from includes/template/cherry_zen/common

<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $ */ ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <!-- divs for drop shadow --> <div id="nw"><div id="ne"><div id="se"><div id="sw"><div id="n"><div id="s"><div id="w"><div id="e"><div id="main"><table id="workaround"><tr><td> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMainSearch"> <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?> </div> <div id="navMain"> <ul> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><span><?php echo HEADER_TITLE_CATALOG; ?></span></a></li> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF; ?></span></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN; ?></span></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li> <?php } } ?> <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS; ?></span></a></li> <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><span class="last"><?php echo HEADER_TITLE_CHECKOUT; ?></span></a></li> </ul> </div> </div> <!--eof-navigation display--> <!--bof-branding display--> <div id="logoWrapper" class="clearfix"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?> <div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div> <?php } ?> <?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div> <?php } } ?> </div> <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> </div> <!--eof-branding display--> <!--eof-header logo and navigation display--> <!--bof-optional categories tabs navigation display--> <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <!--eof-optional categories tabs navigation display--> <!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links--> </div> <?php } ?>

"I shoot an arrow into the air, where it lands I do not care: I get my arrows wholesale!” Curly Howard

14 Feb 2011, 5:05 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Which page to edit ?

If you are asking about this line of code

<meta name="google-site-verification" content="m7mcpxkSc1TnoGd_XPEooooooD0cDLi7qvj_XEJQY" />

Then it needs to be added to a copy for your template of

/includes/templates/template_default/common/html_header.php

And if you bothered to read this was stated in post #2

Zen-Venom Get Bitten

14 Feb 2011, 5:16 PM
#8
golden_synergy avatar

golden_synergy

Zen Follower

Join Date:
Aug 2009
Location:
Westland, Michigan
Posts:
107
Plugin Contributions:
0

Re: Which page to edit ?

Thank you for your QUICK and helpful response. It now works. And I misread post #2

"I shoot an arrow into the air, where it lands I do not care: I get my arrows wholesale!” Curly Howard