Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How Do I Add An Additional Image To My Header?

    Are you adding this to the file in your ashley_pink template??

  2. #12
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add An Additional Image To My Header?

    No...I'm working with the includes/templates/template_default/common/tpl_header.php file.

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

    Default Re: How Do I Add An Additional Image To My Header?

    Do you have a file /includes/templates/ashley_pink/common/tpl_header.php? If so, you need to put your new div there. If not, you need to copy the /template_default/common/ version into the /ashley_pink/common/ folder and do all your editing there.

    The div's id is irrelevant to its location, except for your reading comprehension. It will have whatever styling and positioning you assign in a new #midheader {} rule in your stylesheet, and until you have that it will just inherit whatever other styling applies to it.

  4. #14
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add An Additional Image To My Header?

    Yes, I do, but Kobra said I needed to work with the other file, back in Post #2, so I have been.

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

    Default Re: How Do I Add An Additional Image To My Header?

    Try adding to a copy for your template of
    By this he meant make a copy of the file and put it under /ashley_pink/, or use the copy already there if there is one.

  6. #16
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add An Additional Image To My Header?

    Okay, this is bad. I copied the line to the ashley_pink/common/tpl_header.php file, and now it is showing up...in the middle of the pink menu bar. That's not where it needs to be. How do I get it up into the header, where it belongs?

    http://www.becca-sinh.com/zencart/

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

    Default Re: How Do I Add An Additional Image To My Header?

    It's not bad at all. You just need to position it as desired. Add to your stylesheet
    Code:
    #midheader {
        position: absolute;
        top: 23px;
        right: 12px;
        }
    Adjust to taste.

  8. #18
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add An Additional Image To My Header?

    Okay...where, exactly, should I add it? (I warned you up front that I'm a PHP moron........) LOL

    The existing line says:

    <div id="midheader">

    Should it be:

    <div id=#midheader {
    position: absolute;
    top: 23px;
    right: 12px;
    }>

    ??? Even to my clueless eyes, that looks really weird.


    No, I just tried it, and it didn't work. Neither did putting the

    #midheader {
    position: absolute;
    top: 23px;
    right: 12px;
    }

    beneath the original line. So I'm officially lost...again. LOL
    Last edited by Scully; 14 Feb 2013 at 01:11 AM.

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

    Default Re: How Do I Add An Additional Image To My Header?

    Style rules always go in your stylesheet, in this case /includes/templates/ashley_pink/css/stylesheet.css.

    Sometimes the exact location of the rule matters, but in this case it can go anywhere (except inside another rule or a comment:). You might put it at the bottom of the file or another place that makes sense to you.
    Last edited by gjh42; 14 Feb 2013 at 02:23 AM.

  10. #20
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add An Additional Image To My Header?

    Oh, I missed that part. LOL No wonder none of the other code in the tpl_header.php file didn't look like a good match.

    Well, I put it at the very end of the stylesheet.css file, and uploaded it...and nothing changed. It needs to go in the upper right corner, in the white area to the right of the logo and the pink swirly vines.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. How to add additional header on Index page?
    By bluesky1992 in forum Customization from the Admin
    Replies: 1
    Last Post: 18 Nov 2011, 09:13 PM
  2. How to add an image to the header?
    By rrzc in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Jun 2010, 11:06 AM
  3. How to add second header image???
    By keis779 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 30 Dec 2009, 04:50 PM
  4. Product Info page - how to add additional text and image on right side?
    By tat1973 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Nov 2007, 06:20 AM

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