If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Existing site: can't locate images/text

Existing site: can't locate images/text

Started by nutsinmay on 21 Jun 2012, 7:57 PM · Views: 906

Results 1 to 7 of 7
21 Jun 2012, 7:57 PM
#1
nutsinmay avatar

nutsinmay

New Zenner

Join Date:
Jun 2012
Posts:
4
Plugin Contributions:
0

Post #1 by nutsinmay

Hello,

First of all, let me say that I am very much a novice when it comes to PHP and ZenCart. However, the actions I wish to perform are fairly basic 'tweaks', and so I hope this is something that can be sorted out without too much trouble.

The tweaks are:

  • editing/replacing the image in the header (this is a custom image named logo.jpg, not the default ZenCart header image)

  • editing the content of the Copyright notice in the footer bar (again, this is a custom notice, and not the default ZenCart one)

I have downloaded the entire site (built using ZenCart v139h) to my computer and am using Dreamweaver (CS6). However, when I use the 'Find' function in the Find and Replace facility to try to locate the name of the header image (logo.jpg), Dreamweaver is unable to locate this file name. I have pored through the files themselves, looking in the commonly suggested locations for the header image. I have also checked the images in Assets (sorted A-Z), but am unable to find the image file (logo.jpg) anywhere.

Likewise, when I try using Find & Replace to look for specific words in the Copyright notice in the footer (e.g. the name of the web development company who created the site), these cannot be found. I have searched both Text and Source code, across the entire site. However, I AM able to locate other elements that sit within the footer bar (such as links to Twitter and Facebook), in the following file: includes\languages\english\extra_definitions\andover_modern\footer_menu_defines. php

These are the settings I am using in Find and Replace to try to locate the above elements:


Find In: Entire Current Local Site
Search: Source Code (also tried Text)
Find: logo.jpg (also searched for name of web design company, exactly as it appears in copyright notice)

Options:

Match case: Unchecked
Match whole word: Unchecked
Ignore white space: Unchecked
Use regular expression: Unchecked

Click "Find all" button.


I would be extremely grateful if somebody here could indicate where I might be going wrong with this. Is the reason that I'm unable to locate these files because they are somehow "hidden"? If so, does this mean that I will be able to "discover" the files once I have set up a PHP testing server?

Thank you for reading my post.

23 Jun 2012, 10:32 PM
#2
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Post #2 by keneso

For the logo:

inludes/languages/english/YOUR_TEMPLATE/header.php
look for
define('HEADER_LOGO_IMAGE', 'logo.gif');
change to name of your image, you could/should set width, and height too, lines above.

For the footer:
includes/templates/YOUR_TEMPLATE/common/tpl_footer.php

Anyhow you'd better forget dreamweaver, and get yourself a simple text editor (google for notepad++), and also to search for the stuff either use the editor, or the development tool kit in your admin backened under tools, there you can search for your terms, and it'll tell you where it is, for commodity you could use the last search on the bottom.

Also get yourself firefox, and firebug extension for it, if you need to tweak more in the future.

24 Jun 2012, 8:33 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #3 by schoolboy

nutsinmay:

I have downloaded the entire site (built using ZenCart v139h) to my computer and am using Dreamweaver (CS6).

Put Dreamweaver back in its box. It is useful ONLY if you have advanced PHP knowledge, and understand zencart's core schema perfectly.

Dreamweaver is more likely to break your site if you don't have sufficient PHP knowledge, or an understanding of ZC's structure.

If you need to find elements, use the function under the TOOLS menu in your admin panel (Developers Toolkit).

PHP (and all other code files, including CSS) are best edited using a PLAIN TEXT EDITOR such as Crimson Editor or Notepad++ .

20 years a Zencart User

25 Jun 2012, 9:15 PM
#4
nutsinmay avatar

nutsinmay

New Zenner

Join Date:
Jun 2012
Posts:
4
Plugin Contributions:
0

Post #4 by nutsinmay

keneso and schoolboy, thank you both very much for taking the time to reply to me, and for your helpful advice. Using 'Look-up in All Files' in the Developers Tool Kit in Admin, I've located the .php file containing the website copyright information that I have been requested to amend. The location is given as:
/home/[COMPANY NAME]/public_html/shop/includes/languages/english.php

However, I'm unable to find this file in the directory hierarchy. When I call up all the english.php files sitting within in the directory (which contains the entire site), then open each english.php file in Notepad ++, none contain the copyright text that I need to edit. Confused by this.

25 Jun 2012, 9:40 PM
#5
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Post #5 by keneso

It is there then, have you tried the search within the english.php file?
Anyhow in the original zencart package it is at line 16 of that file.

Like said you can override it by going to the includes/templates/andover_modern/common/tpl_footer.php and edit it as you please; andover_modern being YOUR_TEMPLATE.

25 Jun 2012, 11:10 PM
#6
nutsinmay avatar

nutsinmay

New Zenner

Join Date:
Jun 2012
Posts:
4
Plugin Contributions:
0

Post #6 by nutsinmay

keneso:

It is there then, have you tried the search within the english.php file?
Anyhow in the original zencart package it is at line 16 of that file.

Like said you can override it by going to the includes/templates/andover_modern/common/tpl_footer.php and edit it as you please; andover_modern being YOUR_TEMPLATE.

Hi, keneso, thank you again for your advice on this. Have to say, I'm reluctant to amend the template footer at present, as already quite a number of customisations have been carried out to the footer.

What concerns me is I've searched all files across the entire website using Agent Ransack (which normally picks up all text content, including within .php files), and am not picking up the aforementioned Copyright string. So really have no idea how to locate or access this file. I've tested it on several other elements of code however, and its able to locate them just fine.

Can anyone offer any pointers on this?

26 Jun 2012, 12:29 AM
#7
nutsinmay avatar

nutsinmay

New Zenner

Join Date:
Jun 2012
Posts:
4
Plugin Contributions:
0

Post #7 by nutsinmay

Hey, I have managed to find a solution to this. I was able to find the relevant file (below) without any problem whatsoever on the remote site, but not among the downloaded files webfiles, which included many .php files. Interesting!

/home/[COMPANY NAME]/public_html/shop/includes/languages/english.php

I was able to successfully make the necessary to the live site.

Thank you once again guys for your help with this - it is very much appreciated.