Post by allsop » Sat Jun 06, 2009 1:47 am

I've searched the forum for this, but no luck. I'd like to move the welcome message, since mine is short, to the right side of the page. Maybe make it something other than welcome. I've done this already for the search feature, but I'm not too sure how to properly make this change. Does anyone know the correct pages and changes I'd need to make? Thanks.

New member

Posts

Joined
Fri Jun 05, 2009 1:17 am

Post by readyman » Wed Jun 10, 2009 5:43 pm

Files involved are:
catalog\controller\common\home.php
catalog\controller\common\layout.php
catalog\view\theme\default\template\common\home.tpl
catalog\view\theme\default\template\common\layout.tpl

1. Open home.php and CUT the following code out of it.

Code: Select all

$this->data['welcome'] = html_entity_decode($this->config->get('config_welcome_' . $this->language->getId()));
2. Put the cut code into layout.php controller file. Put it around line 20 after the ... $this->document->breadcrumbs...

3. Open the layout.tpl file
Add the following just inside the right column. The column looks like ...<div id="column-right">...

Code: Select all

<?php echo $welcome; ?>
4. Open the home.tpl file and delete the welcome code.
Delete

Code: Select all

<?php echo $heading_title; ?>
You can delete the h1 tags as well or pull the latest products heading up.
Delete

Code: Select all

<div><?php echo $welcome; ?></div>
Tidy up as you see fit... hope this helps.

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by allsop » Wed Jun 10, 2009 11:53 pm

It works. Thank you so much.

New member

Posts

Joined
Fri Jun 05, 2009 1:17 am
Who is online

Users browsing this forum: No registered users and 5 guests