X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Editing home page in 4.4.1 (https://forum.x-cart.com/showthread.php?t=57613)

herniarelievers 01-19-2011 10:27 AM

Editing home page in 4.4.1
 
Hello. We are using the Fashion Mosaic Theme(Green) and we are unable to edit the home page. There is a stock image that is embedded in welcome.tpl. We would like to replace this image with some text and tables. We have tried editing the welcome.txt file and re-placing the image in the welcome.tpl file however it does not display where the image is. Please help.

balinor 01-19-2011 10:43 AM

Re: Editing home page in 4.4.1
 
Two things:

1. Make sure you are editing the correct welcome.tpl template - it is the one in the Fashion Mosaic folder, not the common_templates folder.

2. Clear your template cache after you update (Tools/Maintenance)

herniarelievers 01-19-2011 10:50 AM

Re: Editing home page in 4.4.1
 
Thanks. I double-checked and we are in the correct template. Below is the small portion of code that seems to control the image. I am not sure what to do to replace this image with our own copy, which is the welcome.txt file.

<div class="welcome-top">
<img src="{$AltImagesDir}/fashion_mosaic/welcome.jpg" class="welcome" alt="" />
{if $categories_menu_list}
{$lng.txt_welcome class="welcome"}
{include file="customer/categories.tpl"}
{else}
<img src="{$ImagesDir}/spacer.gif" alt="" class="empty-height-extender" />
{/if}
</div>

balinor 01-19-2011 10:57 AM

Re: Editing home page in 4.4.1
 
Just change the img tag to point to your image. And clear your cache.

herniarelievers 01-19-2011 11:01 AM

Re: Editing home page in 4.4.1
 
We do not want to use an image. We want to add some text and a table were the image is currently located. We just cannot seem to find where the text and tables should go to override the image.

balinor 01-19-2011 11:11 AM

Re: Editing home page in 4.4.1
 
Just put it right there where the image code is.

herniarelievers 01-19-2011 11:36 AM

Re: Editing home page in 4.4.1
 
Anything we put where the image is located shows up on the left side above the categories.

gb2world 01-19-2011 12:06 PM

Re: Editing home page in 4.4.1
 
You are going to need to understand the css that is being used for positioning - Firefox + Firebug will help you to see this. (The image was being positioned with css - you removed it, so its positioning was also removed.)

---

herniarelievers 01-19-2011 12:10 PM

Re: Editing home page in 4.4.1
 
I will take a look using your suggestions. I appreciate your help on this.
Thanks!!

herniarelievers 01-19-2011 03:54 PM

Re: Editing home page in 4.4.1
 
I am not sure why this is so difficult. I have been using X-Cart for years and editing the welcome page has never been this painful. I tried your suggestions but came up empty. I have submitted a ticket to X-Cart but I am still annoyed this is so difficult this time around. I do appreciate your efforts.

gb2world 01-19-2011 04:49 PM

Re: Editing home page in 4.4.1
 
Unfortunately - it will be difficult unless you have some basic html/css/smarty knowledge. You can get some basic help from the people on this forum - or some quick work done by posting in the pro-help-services request forum.

Hint - if you remove the img inside the div class="welcome-top" - you have to account for the css that was placing it in the layout, if you want your new content to be in the same place. If you look with Firefox/Firebug at the original image, you will see something like this:
img.welcome {
float: right;
height: 262px;
margin-left: 20px;
width: 580px;
}

So, whatever you replace it with, will need similar styles to sit in the same location. You might have to creaate a div with the same style as the image you replaced, and put your $lng.txt_welcome inside of it. At any rate - using Firebug - you can change css on the fly until it is how you like it - then commit it to your code.

---

herniarelievers 01-20-2011 09:31 AM

Re: Editing home page in 4.4.1
 
I have used Firefox and Firebug and still no success. I have not removed the image yet so that is not the issue. X-cart responded with the same methods I have already tried. If someone has successfully modified their home page using the Fashion Mosaic them please help me.


All times are GMT -8. The time now is 12:18 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.