Re: Main Page Text Gone!!!
When you open define_main_page.php, either in the editor or by downloading the file is the text there?
Re: Main Page Text Gone!!!
Yes it is all there.
Matt
Re: Main Page Text Gone!!!
Hi
I still have not worked out why the text above the category images on my homepage has gone. The text is in define_main_page.php.
http://www.ethicalpartybags.com
Anyone have any ideas?
Thanks
Matt
Re: Main Page Text Gone!!!
It looks like your template has it commented out ... :eek:
Peek in the View Source of the page and you will see:
Code:
<!-- deprecated - to use - uncomment
<div id="" class="content">This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong></div>
-->
<!-- deprecated - to use - uncomment
<div id="" class="content">Helo.</div>
-->
Re: Main Page Text Gone!!!
Thanks Ajeh for the reply.
How could this have happened as i have not done anything?
Also:
Which file do I need to change this?
Thanks
Matt
Re: Main Page Text Gone!!!
Go to your Zen Cart Admin and in the Tools ... Developers Tool Kit ... in the bottom input box do a search on:
deprecated
in the Catalog ... and click search ...
This should help you find which files have the code commented out ...
Re: Main Page Text Gone!!!
Hi
I've found the file - tpl_index_categories.php and know I get this appearing on the homepage.
This is the main define statement for the page for english when no template defined file exists. It is located in: /includes/languages/english/index.php
-->
Helo.
-->
Any ideas?
Matt
Re: Main Page Text Gone!!!
In HTML the way to comment out something is to mark it by surrounding what you do not want to show with HTML comment marks:
Quote:
<!-- anything here will not show -->
From the looks of it, you have things commented out with HTML comment marks so it is not showing ...
If you were to remove the HTML comment marks, then the text would show on the page ...
Re: Main Page Text Gone!!!
This same behavior happened to the site I am developing, without me having manually commented anything out. Very odd. I think it might be linked to the Open With Category setting under Layout Settings - because I noticed that my entire page disappeared after toggling that setting to 0. Investigating further...