Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2009
    Location
    Gold Coast, Australia
    Posts
    40
    Plugin Contributions
    0

    help question Adding Image to Main Page

    I'm using Zen Cart 1.38, with the dezina_advent template which i've customised a little. I have searched on and off for the last two days on a subject thread dealing with this but have not found anything, many apologies if i've overlooked it but what i want to know is:

    Can i add an image to my main page that is linked to an upload section [in the ADMIN area], where the image displayed is replaced every time i choose to upload a new image?

    I primarily want this to replace something like the "New Products" section, where i can upload one singular image of our new stock and then have it displayed on the main page. Then when i choose to upload a new image, the previous image is overwritten and the new image is shown.

    I may be asking for two much here, but in theory i guess it couldn't be TOO hard, then again it's hard enough that i don't know how to do it

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Image to Main Page

    It's not ZC-admin related, but you can just FTP a new image with the same name and replace the existing image. This would have the exact result you are looking for.

  3. #3
    Join Date
    Sep 2009
    Location
    Gold Coast, Australia
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding Image to Main Page

    I appreciate your suggestion, and i WOULD try doing this but i'm setting up this store for a friend of mine and she would love to be able to go to a section in her ADMIN and just upload images as she see's fit.

    I had thought of editing one of the banner php files that i'm not showing and just setting that to show on the main page, that way i guess she could go into the banner section and upload a replacement image for that banner [in the banner manager section], does that sound right?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Image to Main Page

    Haven't used the banner manager myself, but that sounds like a good approach. You can set up the banner to display in the shape & location you want, and she can replace the content.

  5. #5
    Join Date
    Sep 2009
    Location
    Gold Coast, Australia
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding Image to Main Page

    Thanks for your help, i'll post a link and let you know how it turned out.

    Cheers

  6. #6
    Join Date
    Sep 2009
    Location
    Gold Coast, Australia
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding Image to Main Page

    This worked PERFECTLY. I went to the "Layout Settings" in the Admin section of Zen-Cart, then turned on the "Banner Display Groups - Footer Position 1" banner, named the group "Main-Image". Then i went to the "Banner Manager", created a new group called "Main-Image" and uploaded my picture. Now if my sis needs to edit it she can upload a new banner for the main image group all from the Admin section.

    cheers for your help

  7. #7
    Join Date
    Sep 2009
    Location
    Gold Coast, Australia
    Posts
    40
    Plugin Contributions
    0

    help question Re: Adding Image to Main Page



    I have one follow on question if anyone is reading this

    How do i choose to show a banner on one page only? Is it possible?


    I've just come to realise the main page image i setup in the footer pos 1 banner is repeating through all subsequent pages, i only want it to show on the main page.

    any suggestions would be appreciated

    cheers

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Image to Main Page

    The easiest way would probably be with your stylesheet. You can set the banner to not display except on the home page:

    #bannerWhatever {display: none;}

    #indexHomeBody #bannerWhatever (display: block;}

    If you can't find the right id to use, post a link and I'll look at it.


    There is a code method that will prevent the banner from being processed except on the home page, and if you experience slow loading, this would be worth doing.

  9. #9
    Join Date
    Sep 2009
    Location
    Gold Coast, Australia
    Posts
    40
    Plugin Contributions
    0

    help question Re: Adding Image to Main Page

    Thanks for your help bud, i tried inputting the info you gave me but to no avail. I used all banner identifiers up to #bannerSix but to be honest i'm not even sure if this is correct.

    I used the "Footer Banner Position 1" opening to upload the image, and created it under the group "Main-Image"

    My temporary site is located at: http://sitesynth.com/sukas/store/


    Cheers!


  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Image to Main Page

    There is apparently some display styling in the HTML, which takes precedence over the stylesheet by default. Add !important to make the stylesheet override the HTML:

    Code:
    #bannerFour {
       display: none !important;
       }
    
    #indexHomeBody #bannerFour {
       display: block !important;
       }
    Actually, I can't see anything in view source or the stylesheet that should be interfering... odd.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. adding image links to categories on main page
    By mist57 in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 11 Aug 2009, 04:10 AM
  2. Adding an Image to Main Page
    By picard1701 in forum General Questions
    Replies: 5
    Last Post: 14 May 2009, 04:48 PM
  3. Adding an overflow image to the main page
    By guynumber6 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Mar 2008, 03:59 PM
  4. Adding image on main page
    By topaz44 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Jan 2008, 09:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR