Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to change text in header?

How to change text in header?

Views: 882

Results 1 to 11 of 11
3 Jun 2015, 2:20 AM
#1
thestampnomad avatar

thestampnomad

New Zenner

Join Date:
Jul 2009
Posts:
58
Plugin Contributions:
0

How to change text in header?

On my website here:
http://www.bunyiptreasures.com/
In the picture at the top left I have the words "DOWN SOUTH GEMS"
How can I change that text?

3 Jun 2015, 8:04 AM
#2
sapir39 avatar

sapir39

New Zenner

Join Date:
Apr 2015
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: How to change text in header?

Try maybe includes>languages>english>YOUR_TEMPLATE>header.php.

By looking at the firefox firebug the line you need to update should be below <!--bof-branding display-->.

Hope this helps :)

3 Jun 2015, 10:08 PM
#3
thestampnomad avatar

thestampnomad

New Zenner

Join Date:
Jul 2009
Posts:
58
Plugin Contributions:
0

Re: How to change text in header?

Thanks for the idea. I dont seem to have that path though. I did find that line that you mentioned but there was nothing on the same page with my text. Its odd that I cant find the text in admin search using the website developer tool.

3 Jun 2015, 11:06 PM
#4
rodg avatar

rodg

Deceased

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

Re: How to change text in header?

thestampnomad:

Thanks for the idea. I dont seem to have that path though.

You won't have that exact path.. The 'YOUR_TEMPLATE' will be the name of, well, your template..

If you don't have a folder /english/your_template/ you'll probably find the text you are looking to change in the /english/english.php file, in which case you should create the 'YOUR_TEMPLATE' folder, copy the folder into it and make the changes needed to this copy.

Note: You can also just change what you want in the english.php file without making the override copy, but this is very unwise as you'll lose the changes with the next zencart update you perform.

thestampnomad:

I did find that line that you mentioned but there was nothing on the same page with my text.

Sorry, but I don't quite follow what you are saying here :(

thestampnomad:

Its odd that I cant find the text in admin search using the website developer tool.

I seem to recall reading somewhere that this is by design. (could be wrong. May be thinking of a different system), BUT, since the text under discussion is something that is seen on the store front, then personally I wouldn't be expecting to find the code/definition within the admin folder anyway.

Stop press: With the current ZenCart versions you'll find the text defined in the /english/meta-tags.php file (or the override folder /english/YOUR_TEMPLATE/meta-tags.php

Sadly, this inconsistency is the result of ZenCart's ongoing evolution as things get moved around a little here and there for various reasons.

Hopefully this will give you a bit of a guide.

Cheers
RodG

3 Jun 2015, 11:34 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: How to change text in header?

Try searching the Developers Tool Kit for htitle.

3 Jun 2015, 11:47 PM
#6
rodg avatar

rodg

Deceased

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

Re: How to change text in header?

stevesh:

Try searching the Developers Tool Kit for htitle.

Worth a shot (yes, I saw that in the page source too). However, in my experience, searching for class tags can be a very frustrating exercise at times. Often showing up far to many hits, and other times not showing at all on account of being dynamically generated.

I do however agree that this particular class tag could be a suitable candidate for a search, but whether it'll actually lead to the DEFINE that needs changing is a whole nother story.

My personal preference though would be a case insensitive search for 'down south gems'.

It shouldn't be that difficult to locate. (famous last words?)

Cheers
RodG

4 Jun 2015, 12:20 AM
#7
thestampnomad avatar

thestampnomad

New Zenner

Join Date:
Jul 2009
Posts:
58
Plugin Contributions:
0

Re: How to change text in header?

Thanks for the help. I have some unusual redirects and things done so I threw in the towel and deleted the website and will build a new one from scratch

4 Jun 2015, 1:50 AM
#8
thestampnomad avatar

thestampnomad

New Zenner

Join Date:
Jul 2009
Posts:
58
Plugin Contributions:
0

Re: How to change text in header?

Well, I completely deleted my webpage and started from scratch and am rebuilding it now. I thought that I must have deleted something that I wasnt supposed to.
So now it says in the upper left STORE NAME
I changed the other line in the top header that says "Tagline goes here". But there still seems to be no way to change that text that now says STORE NAME. It wont show up when I do a search using developer tools.
I cant figure out any way to change that text
I am using the ALL NATURAL free template which I got from the plugins area of zencart

4 Jun 2015, 2:34 AM
#9
rodg avatar

rodg

Deceased

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

Re: How to change text in header?

thestampnomad:

Well, I completely deleted my webpage and started from scratch and am rebuilding it now. I thought that I must have deleted something that I wasnt supposed to.
So now it says in the upper left STORE NAME
I changed the other line in the top header that says "Tagline goes here". But there still seems to be no way to change that text that now says STORE NAME. It wont show up when I do a search using developer tools.
I cant figure out any way to change that text
I am using the ALL NATURAL free template which I got from the plugins area of zencart

I think you're going to be kicking yourself over this.

I found/downloaded the template that you are using, and took stevesh's suggestion and searched the files for 'hTitle' (the class definition we can see looking at the source files for your site).

Only two instances were found, one in the templates .css file (obviously?), the other is in the tpl_header.php file (for this template).

The actual line of code indicates that the text you are seeing "Store Name" (previously "DOWN SOUTH GEMS") is being sourced from the "STORE_NAME" definition in the database (which is why it wasn't found in the files).

To set/define this to your needs, just log into the store admin, navigate to configuration->my_store, and the very first entry is where you set the name of your store. You'll find that it is currently set to simply 'Store Name'.

Change this to whatever you want it to be, and all should be fine.

Cheers
RodG

ps. I/we must apologise to you a little here, because I'm sure that we were ALL convinced this would have been defined in one of the language related files, rather than one of the first and most important(?) database settings.

pss. I could still be wrong about this, but I don't think so. If you could confirm, that will be really great.

psss. A different template will/may use a totally different 'DEFINE', so one should not consider that this same fix/setting will be applicable across all installations.

4 Jun 2015, 3:12 AM
#10
thestampnomad avatar

thestampnomad

New Zenner

Join Date:
Jul 2009
Posts:
58
Plugin Contributions:
0

Re: How to change text in header?

All that grief and the fix was that easy. I am almost disappointed.
I still have to rebuild my website though.
Thanks for the help. At least I wont lose sleep tonight over that like last night.
I should have my site up and running again by the end of the day now
Thanks again for figuring that out for me
cheers
Dean

4 Jun 2015, 3:53 AM
#11
rodg avatar

rodg

Deceased

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

Re: How to change text in header?

thestampnomad:

All that grief and the fix was that easy.

The fact of the matter is, all fixes are 'easy' once it is known what the actual fix is. (hindsight = 20/20)

thestampnomad:

I am almost disappointed.

FWIW, I was kinda kicking myself when I realised where the change needed to be made too. On another day, the store name setting may have been the 1st thing I'd have thought of. Or not.

Glad its all sorted though.

Cheers
RodG