Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Center Image on Main Page

Center Image on Main Page

Locked

Views: 2,028

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Oct 2007, 4:49 PM
#1
amacole avatar

amacole

New Zenner

Join Date:
Oct 2007
Posts:
32
Plugin Contributions:
0

Center Image on Main Page

I've been trying to add an image to the front page. Found a tutorial and have done multiple searches, I did this

.centerBoxWrapper {
border: 1px solid #006699;
height: 1%;
margin: 1.1em 0;
padding-bottom: 20px;
background-image: url(../images/fourpictures.png);
background-position: bottom center;

background-no-repeat;

}

iun my style sheet to no avail. It is not even showing that a picture/image has been added (for instance, no red X). Image is in my images folder.

Do I need to change this elsewhere too? Any help would be appreciated!
Kathy

17 Oct 2007, 6:50 PM
#2
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Center Image on Main Page

Hello Kathy:
Here is what you need to do.

  1. you will need to use a FTP in order to change the permission for define_main_page.php which is located at
    includes/languages/english/html_includes/define_main_page.php
    change this to 777. Make sure you write down what the permission set was before you change it.
  2. Next goto admin>Tools>Define Page Editor
    Next select a file to edit menu and select define_main_page.php
  3. You will also see TEXT EDITOR and a box next to it Select HTMLarea

Here is where you can add text or images (you can center the text or image)
Click save, review you site to make sure yoy like it. if so then go
back to your ftp and change the permission back to it org setting.

You might need to replace your stylesheet.css.

nomad

17 Oct 2007, 8:07 PM
#3
amacole avatar

amacole

New Zenner

Join Date:
Oct 2007
Posts:
32
Plugin Contributions:
0

Re: Center Image on Main Page

Nomad, thank you for the response!
I've changed permissions, gone to the area, and see the wysiwig but when I try to upload an image into the editor all it allows me to do is search for a url for the image, not search my documents for where it is located on my cmoputer. Also can't copy and paste into the wysiwig. Any ideas?

Thank you again! Do you always need to change [permissions to change the php?

17 Oct 2007, 8:38 PM
#4
amacole avatar

amacole

New Zenner

Join Date:
Oct 2007
Posts:
32
Plugin Contributions:
0

Re: Center Image on Main Page

aha, got a red X so I'm getting somewhere :clap:

17 Oct 2007, 8:41 PM
#5
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Center Image on Main Page

I think I know what you are asking.
When you load a file I would save your image in the image folder.
You can make a new folder for that image.
Make sure you write down or copy the path because you will need it.
Lets say its something like this you (need to add your domain name) so
http://www.yourdomain/images/foldername/fourpictures.png. Place your image in that folder.
Once that is done go back to the define_main_page.php and open it again. Click on the icon that looks like a frame. A Insert Image window will open paste or type the path in the of the Image URL:
http://www.yourdomain/images/foldername/fourpictures.png.
Click the Preview Button it should show your image if it does not then the path is not right.
Finish the rest of the info.
that's it

Your second question all the define pages need to be change to 777 in order to make changes. You need to reset the permission once you have complete or update those files. If you do not it will allow other to hack.

hope that helps you
nomad

17 Oct 2007, 8:42 PM
#6
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Center Image on Main Page

You path is just wrong.
Look a my thread above and you should get it.

good luck
nomad

17 Oct 2007, 9:23 PM
#7
amacole avatar

amacole

New Zenner

Join Date:
Oct 2007
Posts:
32
Plugin Contributions:
0

Re: Center Image on Main Page

Ah Nomad you ROCK! I got it, thanks so much :D

Kathy

18 Oct 2007, 2:27 AM
#8
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Center Image on Main Page

you are welcome.

Happy Zenning.
nomad