Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Modifing the headerwrapper.

    Hi.

    I would like to reduce the depth of the header bar (so the links appear on one line) and remove the search box.

    Could anyone please point me in the right direction?

    My site is www.pjleisurewear.co.uk/marketplace.

    Many thanks

    Philip

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

    Default Re: Modifing the headerwrapper.

    Your header nav links are showing as default <ul> list items. The standard Zen Cart stylesheet makes these display inline without bullets:
    Code:
    #navMain ul, #navSupp ul, #navCatTabs ul {
    	margin: 0;
    	padding: 0.5em 0em;
    	list-style-type: none;
    	text-align: center;
    	line-height: 1.5em;
    	}
    
    #navMain ul li, #navSupp ul li, #navCatTabs ul li {
    	display: inline;
    	}
    
    #navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {
    	text-decoration: none;
    	padding: 0em 0.5em;
    	margin: 0;
    	color: #ffffff;
    	white-space: nowrap;
    	}
    but something is obviously disrupting this.
    Your stylesheet has the appropriate settings, but they are for #navMainLinks instead of #navMain:
    Code:
    #navMainLinks {
    	float:left;
    	position:relative;
    	list-style-type:none;
    	text-align:left;
    	font-size:1.2em;
    	}
    ...
    
    #navMainLinks ul {
    	list-style-type:none;
    	text-align:center;
    	line-height:1.5em;
    	padding: 0.2em 0;
    	margin:0;
    	}
    
    #navSupp li, #navCatTabs li, #navMainLinks li {
    	display:inline;
    	padding:0 0.5em;
    	margin:0;
    	}
    Your header nav has the standard tag of #navMain, not #navMainLinks, so the stylesheet doesn't apply to it. Somehow the template's version of the tag got replaced with the standard.

    What you need to do is edit either the stylesheet or tpl_header.php to make the tags the same.

    The search box can be turned off in Tools > Layout Boxes Controller > search_header.

  3. #3
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Modifing the headerwrapper.

    Many thanks for that Glen.

    I'll have a play over the next few days.

    Kind regards

    Philip

  4. #4
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Modifing the headerwrapper.

    Hi.

    I thought I understood what you meant but I'm still confused. I have looked in tpl_header.php and changed <div id="navMain"> to "navMainLinks" It has not changed anything, either I misunderstand what you are telling me or something else is going on.

    What I am after is the overall effect of www.pjleisurewear.co.uk/shop but with left and right hand columns. This is governed by the apple_zen templates.

    The "shop" site was being designed by a designer who has since gone AWOL. Glenn, some time ago you advised my that I wasn't getting the RH column as main_page.php had been heavily modified. Hence why I am starting again.

    Any further help would be much appreciated.

    Philip

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

    Default Re: Modifing the headerwrapper.

    Maybe you needed to clear your cache or something... the header is now acting as it should according to your stylesheet, so your id change worked.

    So you want to match the Apple Zen template, but with three columns. If Apple Zen works for you otherwise, your best bet might be to use that with the standard tpl_main_page, merging in only the desirable aspects of Apple Zen if there are any mods to that file that are not related to the two-column layout.

    That would require doing a comparison of the /template_default/ copy with the Apple Zen copy (using Winmerge or the like). Post back with the differences if you are unsure, and I should be able to tell you what you should have in your tpl_main_page.php.

  6. #6
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Modifing the headerwrapper.

    Quote Originally Posted by gjh42 View Post
    Maybe you needed to clear your cache or something... the header is now acting as it should according to your stylesheet, so your id change worked.

    So you want to match the Apple Zen template, but with three columns. If Apple Zen works for you otherwise, your best bet might be to use that with the standard tpl_main_page, merging in only the desirable aspects of Apple Zen if there are any mods to that file that are not related to the two-column layout.

    That would require doing a comparison of the /template_default/ copy with the Apple Zen copy (using Winmerge or the like). Post back with the differences if you are unsure, and I should be able to tell you what you should have in your tpl_main_page.php.
    Many thanks for that Glen. I have a look at that tomorrow.

  7. #7
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Modifing the headerwrapper.

    Quote Originally Posted by gjh42 View Post
    Maybe you needed to clear your cache or something... the header is now acting as it should according to your stylesheet, so your id change worked.

    So you want to match the Apple Zen template, but with three columns. If Apple Zen works for you otherwise, your best bet might be to use that with the standard tpl_main_page, merging in only the desirable aspects of Apple Zen if there are any mods to that file that are not related to the two-column layout.

    That would require doing a comparison of the /template_default/ copy with the Apple Zen copy (using Winmerge or the like). Post back with the differences if you are unsure, and I should be able to tell you what you should have in your tpl_main_page.php.
    Hi Glen.

    I've all day messing about with this and got nowhere. It seems to be more of a case of chunks missing from the apple_zen file. Also, some of the code seems to be in a different order and I am not aware of the significance of this.

    I may well be pushing my luck but I have attached the apple zen header file(as a text file) for you to have a look at. If that is asking too much, I quite understand.

    Thank you.

    Philip
    Attached Files Attached Files

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

    Default Re: Modifing the headerwrapper.

    Yes, there are huge essential chunks missing. I seem to recall that the last time I looked at this, the code was (at least mostly) there, just rearranged. This copy can't just be edited to function properly, it needs Dr. Frankenstein.

    PS - the easiest way to look at a file is for you to post it between [php] and [/php] tags so the code highlighting shows up and it doesn't take up too much space on the page.

  9. #9
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Modifing the headerwrapper.

    Quote Originally Posted by gjh42 View Post
    Yes, there are huge essential chunks missing. I seem to recall that the last time I looked at this, the code was (at least mostly) there, just rearranged. This copy can't just be edited to function properly, it needs Dr. Frankenstein.

    PS - the easiest way to look at a file is for you to post it between [php] and [/php] tags so the code highlighting shows up and it doesn't take up too much space on the page.
    Oh.

    What is my best way forward?

  10. #10
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Modifing the headerwrapper.

    Hi Glen.

    I don't quite now how I managed it but I seem to have taken a major step forward in getting the effect I want. I haven't touched the header, just done some debugging.

    Many, many thanks for your help though. I suspect you will be seeing one or two more posts from me!

    Kind regards

    Philip

 

 

Similar Threads

  1. v139h The content of the headerWrapper div won't load anymore on the French side of my site
    By cjdweb in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Feb 2012, 01:32 AM
  2. Modifing product pages
    By sorint in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 01:37 PM
  3. #headerWrapper
    By aajc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:48 AM
  4. Lost the HeaderWrapper
    By bluealice in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Dec 2008, 03:19 PM
  5. Drop Shipping via modifing packing slip
    By systemagic in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Jan 2008, 03:53 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