Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Apr 2015
    Location
    Israel
    Posts
    21
    Plugin Contributions
    0

    Default 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. #3
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: How to change text in header?

    Quote Originally Posted by thestampnomad View Post
    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.

    Quote Originally Posted by thestampnomad View Post
    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

    Quote Originally Posted by thestampnomad View Post
    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

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to change text in header?

    Try searching the Developers Tool Kit for htitle.

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: How to change text in header?

    Quote Originally Posted by stevesh View Post
    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

  7. #7
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default 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

  8. #8
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: How to change text in header?

    Quote Originally Posted by thestampnomad View Post
    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.
    Last edited by RodG; 4 Jun 2015 at 03:39 AM.

  10. #10
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default 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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to change text in header
    By philimpex in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2012, 04:46 PM
  2. HOW i change the text header coluor in my template Help.
    By jeffhardy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Dec 2008, 03:21 PM
  3. How do I change the text on my header logo?
    By borobabe in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Jun 2008, 11:27 PM
  4. How To change the Header text?
    By vanneyat in forum General Questions
    Replies: 2
    Last Post: 6 Oct 2007, 07:56 AM
  5. how to change the text on header?(Sales Message Goes Here)
    By charley518 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Nov 2006, 10:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg