Forums / General Questions / I came, I read, I found, I screwed it up! Advice, please?

I came, I read, I found, I screwed it up! Advice, please?

Locked

Started by ncflanagan on 10 Dec 2009, 10:44 PM · Views: 712

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Dec 2009, 10:44 PM
#1
ncflanagan avatar

ncflanagan

New Zenner

Join Date:
Nov 2009
Posts:
14
Plugin Contributions:
0

I came, I read, I found, I screwed it up! Advice, please?

I wanted to create Per-Page meta-tags for my page_2, page_3, page_4. I read through the forums, found the info I needed, and then promptly screwed it up. I entered the following code into the file meta_tags.php, and my site promptly went away. :frusty: When I removed this code, it came back. :clap: I think the error is in the highlighted areas... can you help me fix it?

my site is http://merrimackvalleydiapers.com, I believe that I am running the most up-to-date version of ZC, I have no add-ons, and I had the initial set-up done by someone else.

Thanks!

// Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
// replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_PAGE_PAGE_2','Find Merrimack Valley Diapers at local events in northeastern Massachusetts and southern New Hampshire.');
define('META_TAG_KEYWORDS_PAGE_2','');
define('META_TAG_TITLE_PAGE_PAGE_2', 'Local Events');

// Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
// replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_PAGE_3','Host your own Cloth Diaper Party and earn FREE diapers!');
define('META_TAG_KEYWORDS_PAGE_3','');
define('META_TAG_TITLE_PAGE_3', 'Cloth Diaper Parties');

// Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
// replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_PAGE_4','Curious about cloth diapers but need more information? Speak to a Cloth Diaper Consultant to schedule your no-obligation,in-home consultation today. You've got questions about cloth, we've got answers!');
define('META_TAG_KEYWORDS_PAGE_4','');
define('META_TAG_TITLE_PAGE_4', 'Private Cloth Diaper Consultations');

Noreen Flanagan Johnson
http://merrimackvalleydiapers.com
I would like to thank you in advance for your help!

10 Dec 2009, 10:49 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: I came, I read, I found, I screwed it up! Advice, please?

Not sure, but try escaping the special characters ! and ? by placing a backslash in front of them:
**
Host your own Cloth Diaper Party and earn FREE diapers!**

10 Dec 2009, 10:54 PM
#3
ncflanagan avatar

ncflanagan

New Zenner

Join Date:
Nov 2009
Posts:
14
Plugin Contributions:
0

Re: I came, I read, I found, I screwed it up! Advice, please?

stevesh:

Not sure, but try escaping the special characters ! and ? by placing a backslash in front of them:
**
Host your own Cloth Diaper Party and earn FREE diapers!**

Thanks... tried it, no luck. :no:

Noreen Flanagan Johnson
http://merrimackvalleydiapers.com
I would like to thank you in advance for your help!

11 Dec 2009, 6:54 AM
#4
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: I came, I read, I found, I screwed it up! Advice, please?

You need to escape the single quotes appearing before the words [You've] and [We've] in the following define as follows:

define('META_TAG_DESCRIPTION_PAGE_4','Curious about cloth diapers but need more information? Speak to a Cloth Diaper Consultant to schedule your no-obligation,in-home consultation today. You\'ve got questions about cloth, we\'ve got answers!');

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

11 Dec 2009, 11:53 AM
#5
ncflanagan avatar

ncflanagan

New Zenner

Join Date:
Nov 2009
Posts:
14
Plugin Contributions:
0

Re: I came, I read, I found, I screwed it up! Advice, please?

canopy:

You need to escape the single quotes appearing before the words [You've] and [We've] in the following define as follows:

define('META_TAG_DESCRIPTION_PAGE_4','Curious about cloth diapers but need more information? Speak to a Cloth Diaper Consultant to schedule your no-obligation,in-home consultation today. You've got questions about cloth, we've got answers!');


:clap::clap::clap::clap::clap::clap::clap:
It worked! You are my new favorite person. Thank you!!!!!!!!!!!!!!!

Noreen Flanagan Johnson
http://merrimackvalleydiapers.com
I would like to thank you in advance for your help!