Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need Help Changing Site Title Again

Need Help Changing Site Title Again

Views: 675

Results 1 to 7 of 7
2 May 2012, 10:19 PM
#1
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Need Help Changing Site Title Again

Okay, I'm baffled. We originally named the site one thing, and I changed the header, english, and meta tag files to reflect that name. Now the site has been renamed, and I changed them all again. I also changed the store name in admin / configuration / my store. I even cleared the cache on my browser three different times. But for some reason, the original site name is still showing up. What did I miss?? :frusty:

3 May 2012, 3:57 PM
#2
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Re: Need Help Changing Site Title Again

I've used half a dozen text editors to search for the old site name, and come up with nothing. Am I going to have to uninstall the entire cart, and start over from scratch??

3 May 2012, 4:11 PM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Need Help Changing Site Title Again

Scully:

We originally named the site one thing Now the site has been renamed

Could you please be a bit more explicit as to what you actually mean by the "site name" ?

Where is it showing 'wrong', and what should it be showing?

I suspect the reason you've had no responses is because your question isn't clear.

Things that people often get confused with are, the Page Title (meta tags) , the Store name (used in emails, etc) , and the domain name (the name people use to access your site). These are all totally different things, and you could be referring to any one of them, or possibly something else entirely?

Cheers
Rod

3 May 2012, 4:57 PM
#4
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Re: Need Help Changing Site Title Again

I've changed the Page Title in the meta tags, and the Store Name in the Admin section. I've also changed the alt text that had the site byline...such as, "My Favorite Website - Come check out all my great stuff," to use a really stupid example.

When I pull up the page in any browser, the bar at the very top has the wrong site name. On this page, for example, the bar says "v150 Need Help Changing Site Title Again - Windows Internet Explorer". That's what I'm trying to change. I've searched every single page in the entire zencart, and made changes to every single meta-tag that had the old information. And I've re-uploaded the entire set of files to the server after reviewing them. The old site name should not be coming up...but it still is.

Does that make more sense?

4 May 2012, 1:49 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Need Help Changing Site Title Again

Scully:

I've changed the Page Title in the meta tags,

Just to clarify, are you refering the the meta_tags.php file, or something else?

If the file, then check the file location of the one you changed.
The default file is located at **/includes/languages/english/meta_tags.php

**However, you may find another located in:
/includes/languages/english/custom/meta_tags.php

The 'custom' will match your template name (obviously?), and this will override anything in the default file.

You'll be looking that the line that reads something like
// page title define('TITLE', 'This is my My Store');

"This is my My Store" is an example. Change to suit your needs. > Scully:

and the Store Name in the Admin section.

This is used in Emails, etc...

Scully:

I've also changed the alt text that had the site byline...such as, "My Favorite Website - Come check out all my great stuff," to use a really stupid example.

Alt text? Are you referring to this......

// Site Tagline define('SITE_TAGLINE', 'You never know what you will find.');This define is in the same meta_tags.php file as above.

If you are referring to something else, please elaborate.

Scully:

When I pull up the page in any browser, the bar at the very top has the wrong site name. On this page, for example, the bar says "v150 Need Help Changing Site Title Again - Windows Internet Explorer". That's what I'm trying to change.

OK, now it is making more sense. It is the meta_tags.php file as discussed above that you'll be needing to check/change.

One word of caution though, if you change/add meta_tags to the products/categories in the admin menu, these will override those in the meta_tags.php file.

Scully:

I've searched every single page in the entire zencart, and made changes to every single meta-tag that had the old information.

Please don't take this personally, but one of my pet gripes is when people seeking help try to insist that they've checked/change 'every single page'. If such statements were true, they would have found the solution themselves, and wouldn't be asking for help. :)

Scully:

And I've re-uploaded the entire set of files to the server after reviewing them. The old site name should not be coming up...but it still is.
Does that make more sense?

The last two comments don't make sense <grin>, but everything else does.

I'm suspecting that you have somehow missed the /includes/languages/english/custom/meta_tags.php

Cheers
Rod

4 May 2012, 3:53 AM
#6
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Re: Need Help Changing Site Title Again

No offense taken...but in my own defense...when I've downloaded every file, done text searches for the old site name using three different text editors, found (I thought) every instance of the old site name, re-upoaded all the files (the entire cart, not just a few files here or there), still had the same error, repeated the entire process two more times, then manually reviewed EVERY SINGLE screen in the Admin section multiple times...yes, I was pretty darned sure I'd checked everything.

/includes/languages/english/meta_tags.php was exactly what I was looking for, and now the problem (which I've been fighting for two days--I don't ask for help until I've exhausted every other thing I can think of, because I hate looking like an idiot! LOL) is finally resolved. THANK YOU SO MUCH!!!

But could you please explain to me why all three text editors, which are supposed to be excellent for finding exactly this kind of thing, didn't find even one of the keywords (title or tagline words) in the meta_tags.php file? That's just baffling. And I'd really like to know why it happened, so that I know how to get around it next time...assuming there is a next time, which I fervently hope there is not!!

Anyway, thanks again...I really, really appreciate your help!

4 May 2012, 6:01 AM
#7
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Need Help Changing Site Title Again

Scully:

could you please explain to me:

I can make some educated guesses, but not much more than that.

Scully:

when I've downloaded every file,

It is possible that one or more files simply didn't get downloaded. This could be due to insufficient file or folder permissions, or something simply went astray during the download. Unless you did a file comparision this would be quite easy to miss.

Scully:

done text searches for the old site name using three different text editors,

I'm not even going to take a guess at this one. However, when seeking for particular text that could be found in any one of a number of files, a text editor wouldn't be my 1st tool of choice. I'd be using something like 'find' (on *nix). Offhand I don't know what the equivilent program would be for Windows, or Mac, or any other operating system.

For your benefit though, the way I 'solved' your problem was to look to see where the similar text was defined on my own system, and the tool I used for this was the Developers Toolkit, which is a part of the ZenCart installation. It is a very handy tool for this kind of thing. It doesn't allow you to edit the files it finds, but it does a great job at searching through the files and even the database to help locate where things can be found.
Well worth spending a few minutes having a 'play'. The fact that you can't edit files with this tool also means you can't accidently modify (and therefore, break) anything either.

Scully:

found (I thought) every instance of the old site name, re-upoaded all the files (the entire cart, not just a few files here or there), still had the same error, repeated the entire process two more times,

If the file that needed to be changed didn't get d/loaded due to file permissions, then it also wouldn't have been replaced when you re-uploaded, so the same 'old' definitions would still exist.

FWIW, this is a 'trick' that some hackers do when they compromise a site. They'll set the permissions of thier 'back door' programs so they can't be downloaded or modified, so that when the victim tries to recover, unless they explicity remove these files by some other means, they'll still be in place even after the site has been restored from a backup.

Scully:

then manually reviewed EVERY SINGLE screen in the Admin section multiple times...

Although neither of us knew what the cause or the solution was at the time, it turns out that since the issue had nothing to do with anything in the admin section then it stands to reason that no matter how many times you checked and reviewed this, there was nothing to be found amiss anyway.

Scully:

yes, I was pretty darned sure I'd checked everything.

I am also sure that you were sure. There is no disputing this. However, it doesn't change the fact that regardless of the cause or the reasons, this one relevent file escaped your attention.

If I was as sure that you really had checked everything I wouldn't have even bothered looking into where I thought you should be looking. As such you should be thankful that I tend to be very cynical when people make these claims :smile:

Scully:

/includes/languages/english/meta_tags.php was exactly what I was looking for,

I do advise that now that you have identified this as the relevent file that you should make a copy of it and place it into your 'custom' folder before making changes. This way you won't need to re-edit it when you next do a zencart update.
Where possible, all changes of this nature should be placed into your custom folder(s). It is always well worth the effort (although, until you are familiar with the way zencart deals with these folders it can be a little confusing as to why you'll have two near identical files, with the same name, in different folders).

Scully:

and now the problem (which I've been fighting for two days--I don't ask for help until I've exhausted every other thing I can think of, because I hate looking like an idiot! LOL)

This is where I often have a great advantage of many others... It doesn't bother me if I do or say something that makes me look like an idiot. :D. I consider it just another way of getting to learn something I didn't know before.

Besides, hasn't it often been said that the only foolish question is the one that isn't asked? Same thing really. :)

Scully:

is finally resolved.

At the end of the day, this is all that really matters. If you, I, or someone else can learn something from the experience then so much the better.

Scully:

THANK YOU SO MUCH!!!

You're welcome. I appreciate the extra experience it has given me, so we both 'win' :)

Scully:

And I'd really like to know why it happened, so that I know how to get around it next time...assuming there is a next time, which I fervently hope there is not!!

WHY it happened is still not really known. I've merely presented a few of the possibilities.

To solve similar issues in the future, the Developer Toolkit is your friend.
To avoid having to search for it in the future (eg, after a zencart update) make use of the override system (the custom/template folders).

Cheers
Rod

ps. It is a pleasure discussing this kind of thing with people such as yourself that is not only after a solution, but willing to understand & learn the reasons behind them. It saddens me deeply when people are only interested in the solution itself and have no wish to actually learn anything from the experience. Thanks.