Post by dmbrownfield » Mon Nov 10, 2008 4:28 am

in my language/english/controller/home.php file, the paragraph that I inserted that says specializing in, etc is writing over the paragraph that starts with log yourself in, etc  here is my code  I have tried everything, including inserting more paragraph commands and nothing is working  thanks much


Specializing in vintage and discontinued perfume, vintage jewelry and vintage purses. ';

// Text

$_['text_greeting'] = '
            Log yourself in if you are a returning customer,
            create an account ,
                or browse the store by clicking on a category on the left.

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by bthirsk » Mon Nov 10, 2008 6:33 am

Do this in the Template/content/home.tpl
You need to Insert this in the proper text flow of the page, which is in the template file.

Brent


Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada

Post by dmbrownfield » Mon Nov 10, 2008 7:49 am

these are the only 2 lines of code in this file.  what do I change in this file?  thanks.




New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by fido-x » Mon Nov 10, 2008 8:19 am

dmbrownfield wrote: these are the only 2 lines of code in this file.  what do I change in this file?  thanks.


Leave those lines there and add what you want below them, eg.

Code: Select all

<div class="heading"><?php echo $heading_title; ?></div>
<?php echo $text_greeting; ?>
[color=blue]<p>Specializing in vintage and discontinued perfume, vintage jewelry and vintage purses.</p>[/color]
Alternatively, you could grab my homepage package from here http://www.opencart.com/contribution/do ... ion_id/141, then you can manage everything through the administration.

Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by dmbrownfield » Mon Nov 10, 2008 9:32 am

The suggested fix did not work.  I don't understand why I could add almost a whole page of text to the file but not this one line - I will do without it.

New member

Posts

Joined
Fri May 09, 2008 12:37 am

Post by bthirsk » Mon Nov 10, 2008 11:14 am

What you were doing in Home.php was assigning your text to the variable $text_greeting which was echoed to the screen in home.tpl.
When you tried to do the same thing with your specials, it was being displayed immediately on the screen.
When you then run the home.tpl, it overwrites you specialty text.
You should do all screen display in the tPL files to maintain the flow of display.

Brent


Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada
Who is online

Users browsing this forum: No registered users and 2 guests