Forums / Templates, Stylesheets, Page Layout / Template override files - some work, others don't

Template override files - some work, others don't

Locked

Views: 894

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
3 Jun 2010, 10:09 AM
#1
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Template override files - some work, others don't

Hi,

I had a zc installation on a windows server, setting up a site for a florist, but have moved it to linux. I've done a manual install, and everything went fine.

I had used a template called Orange as my starting point, and I have uploaded that folder and all its contents to my includes/templates folder. I wanted to customise that template, so I created a folder called flowers, also in the includes/templates folder, and copied all the contents of the Orange folder into this flowers folder.

In the flowers/template_info.php file, I set the template name to Flowers Template, and when I select that template in admin, it shows that the Template Directory is flowers.

Now my understanding of template overrides is that any files that originally exist in a 'classic' folder that I want to modify, I copy them into my flowers folder (into whatever folder structure the file resided in), and make the changes there.

I have done that with the includes/languages/english.php - I've copied the original english.php file, made a few changes just to check that I was on the right track (changed 'Search' to 'Find', things like that) and uploaded it to the includes/languages/flowers folder. Refreshed my home page, and there it was - Search became Find, etc.

Thing is, I have also done this with meta-tags.php, so that I can customise my page title - I copied the original, made my changes, and uploaded it to includes/languages/flowers, but the changes I make there are having no effect at all.

It's the same when I try to change my TagLine Here text. Reading the Tutorials/FAQ section, I take includes/languages/english/header.php, modify it, then upload my modified file to includes/languages/english/custom/header.php - in my case, includes/languages/english/flowers/header.php. However this also is having no effect.

Another thing that's puzzling me is that there is no text in my define_main_page.php, but still I'm getting the text that was on the site previously, under the windows installation. I can't see where that's coming from.... I've gone into admin, into Tools - Define Pages Editor, and opened define_main_page.php. I added a little text just to see where would it appear, and it is appearing below the main body of text that has come across from my previous site.

Any help very much appreciated! The site (test version) is at http://www.d1089064.cp.blacknight.com/.

J.

3 Jun 2010, 10:16 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Template override files - some work, others don't

The path for your meta tag text changes is slightly different from those for your main english file. You should put the new file in your includes/languages/english/flowers folder.

The text carried across from your old site sounds as though it may have been put straight into one of your templates, but that's difficult to say for sure without actually looking in the files.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

3 Jun 2010, 10:47 AM
#3
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Re: Template override files - some work, others don't

Aha - that's it, thanks a mil Kuroi! There are so many 'classic' folders going around that I'd overlooked that one. :smile:

3 Jun 2010, 10:58 AM
#4
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Re: Template override files - some work, others don't

I've just FTPd everything from my includes/templates folder down onto my local machine so that I could run a search for the word 'practically', which is one of the words that appears on that block of text on the homepage, but the search results can't find anything!

Any idea where else I should look to try and track down where this text is coming from?

Ta,
J.

3 Jun 2010, 11:20 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Template override files - some work, others don't

That text is in an HTML banner sidebox and so will be being stored in your database rather than your files. Take a look at the banners defined in your Admin > Tools > Banner Manager.

I'd also recommend a quick spell check on your home page text. I saw a typo straight off and there may be more.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

3 Jun 2010, 1:05 PM
#6
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Re: Template override files - some work, others don't

Thanks Kuroi,

Not sure why you say it's banner text... I've only got two banners active - one on the top left of the homepage, above the 'Information' section, and the other on the bottom right below the 'Search' section. It's the text in the main part of the page that's baffling me - "As members of Interflora®, we are in a position to ..." etc. I can't figure out where that bit is coming from.

Re. spell check, the text was just copied from the existing site and is all being revised, it's just slotted in for testing purposes. You wouldn't believe the amount of spelling errors on the current site! :shocking: But thanks for the tip!