Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2008
    Posts
    41
    Plugin Contributions
    0

    Default Changing Categories Sidebox Header Text

    www.chromeworld.com.au

    Hi, I'm trying to change the text in Categories Sidebox Header. If I change it to more than one word, eg "Shop By Model", my whole home page disappears except for the search sidebox. Any ideas? Thanks in advance.

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Changing Categories Sidebox Header Text

    Which .php file are you editing???

    Look here please:
    Last edited by haredo; 22 May 2010 at 10:57 PM.

  3. #3
    Join Date
    Dec 2008
    Posts
    41
    Plugin Contributions
    0

    Default Re: Changing Categories Sidebox Header Text

    I went to includes/languages/english.php. I was able to edit the Manufacturers sidebox header text to "Shop By Brand" but can't change the Categories sidebox header text to more than one word. I'll search the tutorials but any help you can give me would be great. Thanks.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Changing Categories Sidebox Header Text

    /includes/languages/YOUR_TEMPLATE/english.php

    around Line #89 : define('BOX_HEADING_CATEGORIES', 'Shop by Category');

    this is the exact heading for categories in one of my shops, contains the 3 words Shop by Category

  5. #5
    Join Date
    Dec 2008
    Posts
    41
    Plugin Contributions
    0

    Default Re: Changing Categories Sidebox Header Text

    I don't have a /includes/languages/blue_strip/english.php file.
    If I go to /includes/languages/blue_strip/ the only file I have is an empty.txt file.

  6. #6
    Join Date
    Dec 2008
    Posts
    41
    Plugin Contributions
    0

    Default Re: Changing Categories Sidebox Header Text

    includes/languages/english.php

    Line #77 : define('BOX_HEADING_CATEGORIES', 'Shop By Model');

    includes/templates/blue_strip/languages/english.php

    Line #77 : define('BOX_HEADING_CATEGORIES', 'Shop By Model');

    These are all the files I can find that I should edit. They already have 'Shop By Model' yet my categories sidebox still says simply Model. What am I doing wrong!!!!!!!!!!!!!!!!!!

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

    Default Re: Changing Categories Sidebox Header Text

    You're not putting the edited file in the right folder.

    As Frank mentioned, your edited english.php file belongs in includes/languages/blue_strip

    There's never a reason to have an english.php file in the templates area.

  8. #8
    Join Date
    Dec 2008
    Posts
    41
    Plugin Contributions
    0

    Default Re: Changing Categories Sidebox Header Text

    OK. I moved the english.php file from:

    includes/templates/blue_strip/languages/english.php to
    includes/languages/blue_strip/english.php

    but it hasn't made any difference. There must be still something wrong. The single word 'Model' still exists in my categories sidebox. I've searched for the word 'Model' in the Developers Toolkit and it doesn't show up next to any 'BOX_HEADING_CATEGORIES' text like I thought it should.

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Changing Categories Sidebox Header Text

    2-MINUTE TUTORIAL ON OVER-RIDES / CUSTOM TEMPLATE

    Let's take a simple example in the templates directory...

    Let's say you want to (on your remote server) edit:

    /includes/templates/template_default/templates/tpl_products_info_display.php

    You will (in your FTP program) navigate to that file, and then you will FTP it BACK to your local drive, to THIS location:

    /includes/templates/YOUR-TEMPLATE/templates/tpl_products_info_display.php

    (if, in templates/YOUR-TEMPLATE/ you do not have a sub-folder called templates... create one before you ftp the file)

    THAT is the over-ride location (which is mirrored on your server), and THAT is the copy of the file that you edit.

    When you have edited it, you will ftp it to the MIRRORED location on your remote server.

    So, now you have TWO copies of that file...

    One is in CORE (and is un-edited) - /includes/templates/template_default/templates/tpl_products_info_display.php

    The other is CUSTOM (edited) - /includes/templates/YOUR-TEMPLATE/templates/tpl_products_info_display.php

    --------------------------------------------------------------------------------------------------------------------------------------------

    What happens now, in the inner workings of zencart, the override programming works like this...

    Zencart says: "OK... I must display the PRODUCT INFORMATION PAGE, so I go FIRST to the over-ride folder and I look to see if Joe-Bloggs has made a custom file for that page. AH.. YES... Joe-bloggs HAS made an override file, so I use that one, and NOT the core file."

    Basically, that is the override system... Zc looks FIRST in an override folder for a file, and will use THAT file if there is one.

    If there is NO override file, it will go look for the file it needs in the CORE folder(s).
    Last edited by schoolboy; 28 May 2010 at 11:33 AM.
    20 years a Zencart User

  10. #10
    Join Date
    Dec 2008
    Posts
    41
    Plugin Contributions
    0

    Default Re: Changing Categories Sidebox Header Text

    Thanks but you're confusing me even more. I don't know what an FTP program is. Unless you mean my cPanel, from which I edit the few files I do edit. All I want to do is change the text in my categories sidebox header. Now you're talking about /includes/templates/template_default/templates/tpl_products_info_display.php I know you said "Let's say you want to edit: /includes/templates/template_default/templates/tpl_products_info_display.php" but that's not the file I actually need to edit is it?? stevesh said "There's never a reason to have an english.php file in the templates area". So when you start talking about templates you lose me. Please consider me a real dummie? I need step by step and file by file instructions. I was able to edit my manufacturers sidebox header from 'Manufacturers' to 'Shop By Brand'. How can this be so hard?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Changing categories sidebox style/layout
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 May 2013, 01:44 PM
  2. Changing length of categories sidebox/header?
    By ed7501 in forum Basic Configuration
    Replies: 0
    Last Post: 18 Aug 2009, 11:25 AM
  3. Text on categories sidebox
    By SirBuck in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Aug 2008, 11:30 PM
  4. Changing text color in sidebox
    By bullseye in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Oct 2007, 06:54 PM

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