Jump to content

Editing index.php


Recommended Posts

So I can right click the page, and see all the codes I want to change (i.e. background, change call us now to an email us now, etc. etc.), but when I download the php file I do not see all these codes?

 

Sorry I am new at this but for the life of me I cannot find the correct page to try and edit some things.

 

Russ

Link to comment
Share on other sites

  On 8/28/2014 at 9:13 PM, dioniz said:

You can make changes in tpl and css files in theme folder.

What exactly you want to change?

I want to do a few things like....

 

1. take out the "Call us Now:" on top and change that to our email. 

2. Add a background, right now it is just white.

3. I want categories to be listed on the left side like I see most sites. 

4.  Add a text area on home page, just above the banners, and below the categories.

 

My site is http://bluegrassblades.com   Thanks for your help, I have tried to look at all tpl files and csswith no luck, I was hoping to find the html style things I need change as it shows when I right click to view page source, but see nothing like this when downloading css or php files?

 

Russ

Edited by milezone (see edit history)
Link to comment
Share on other sites

if you use tools built into chrome or say firebug on firefox, you get more than just css styles etc, on the right it tells you what file the sytle is in to the line number.  those are the files you want to back up and then change to customize your shop.

 

tip: one topic per post is best, so once you accomplish one part, post new topic.

Link to comment
Share on other sites

Sorry it's a bit tough to get a response after previous posts without help so figure I try and get it all in.  And I am sorry I still do not understand this answer, so 1 question....

 

I want to edit the top where it says "Call Us Now:" and change that so it will say "Email Us" and with our email.

Link to comment
Share on other sites

1. You can edit all text in BO > Localization > Translations. For that text select Module translations, your theme and language and click Modify. Search for text and replace with your text.

 

2. You will need to edit yourdomain\themes\yourtheme\css\global.css to add background

 

3. check if your module Categories block is enabled in BO > Modules

 

4. You can try this free module: http://www.prestashop.com/forums/topic/189039-module-html-box-for-free/?do=findComment&comment=934232

 

To learn more you should read User guide here: http://doc.prestashop.com/display/PS16/User+Guide

Link to comment
Share on other sites

Thanks for the response.  I suppose this is not for me as neither did work for me.

 

1. I could not find anywhere where to edit the Call Us Now: in any of the translations

 

2. My bad here as I have no clue where to add my background image file.  :-(

 

3. Category Block is enabled, but still only see category on top, and not left side.

 

4.  Going to give that free mod a peek, as I am ok in html stuff.

Link to comment
Share on other sites

1: Call Us Now is in localization->translation->installed modules (choose language English) and find blockcontact module translations (easily found by searching on the page (Ctrl-F (Win) / Cmd-F (Mac) for 'call us now'). However, this will still show the Telephone number behind it, so should probably edit the tpl file to change to Email address-field as well.

 

2. In global.css add a background to the body {} css code

In your case, around line 6681 change:

body {
    min-width: 240px;
    height: 100%;
    line-height: 18px;
    font-size: 13px;
    font-family: "Open Sans",verdana,Helvetica,sans-serif;
    color: #666;
    background: linear-gradient(to bottom, #181B1C 0%, #F3F3F3 30%) repeat scroll 0% 0% transparent; <- change this line
}

 

if you want a background image, use something like:

  background-image: url('/img/my_background.jpg');

  background-color: #bbb;

 

and add your 'my_background.jpg' file in the <shoproot>/img folder.

 

More info:   http://www.w3schools.com/cssref/pr_background-image.asp

 

 

 

 

3: Add the module to the DisplayFooter hook. (go to modules->positions, select show:'categories block' and press Transpose a hook button at the top. Select DisplayFooter hook and save. Then go to modules->positions, scroll to Display Footer hook and drag the module to the top poisition no 1, to get it all the way on the left.

 

4: Not sure if you use it already, but there is a built in "Home Text Editor" module, which allows HTML on the front page. If additional blocks with text are needed, take the module Dioniz mentioned (there are others available, if you need more blocks)

Edited by PascalVG (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...