Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Header customization quirks

    The problem may also be within your stylesheets.

    Because you reference things like:

    PHP Code:
    li {
    list-
    style:none;
    float:left;
    }
    A:link {
    color:#000000;
    text-decorationnone;
    }

    A:visited {
    color:#000000;
    text-decorationnone;
    }

    A:hover {
    color:#000000;
    text-decorationnone;
    }
    {
    outlinenone;

    ... in style_2.css,

    You are creating conflicts with similar statements in stylesheet.css... and stuff will be over-ridden

    Somehow we've got to apply these declarations ONLY to the fancy header you have created, or restructure the HTML in your header so it's not using <li> tags...
    20 years a Zencart User

  2. #12
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Header customization quirks

    What about:


    my_menu_header.php


    PHP Code:
    <div class="myNavBar"
    Then, dispense with style_2.css and just put the following at the bottom of the stylesheet.css :-


    PHP Code:
    /* removes the "bullet" before each list item*/
    .myNavBar li {
    list-
    style:none;
    float:left;
    }
    .
    myNavBar A:link {
    color:#000000;
    text-decorationnone;
    }

    .
    myNavBar A:visited {
    color:#000000;
    text-decorationnone;
    }

    .
    myNavBar A:hover {
    color:#000000;
    text-decorationnone;
    }
    .
    myNavBar a {
    outlinenone;
    }

    #home
    {
    displayblock;
    width220px;
    height112px;
    backgroundurl("images/home_btn.gif"no-repeat 0 0;

    }

    #home:hover
    {
    background-position-112px;
    }

    #home span
    {
    displaynone;
    }

    #store
    {
    displayblock;
    width90px;
    height112px;
    backgroundurl("images/store.gif"no-repeat 0 0;

    }

    #store:hover
    {
    background-position-112px;
    }

    #store span
    {
    displaynone;
    }

    #portfolio
    {
    displayblock;
    width144px;
    height112px;
    backgroundurl("images/portfolio.gif"no-repeat 0 0;

    }

    #portfolio:hover
    {
    background-position-112px;
    }

    #portfolio span
    {
    displaynone;
    }

    #about
    {
    displayblock;
    width132px;
    height112px;
    backgroundurl("images/about.gif"no-repeat 0 0;

    }

    #about:hover
    {
    background-position-112px;
    }

    #about span
    {
    displaynone;
    }


    #contact
    {
    displayblock;
    width268px;
    height112px;
    backgroundurl("images/contact.gif"no-repeat 0 0;

    }

    #contact:hover
    {
    background-position-112px;
    }

    #contact span
    {
    displaynone;
    }



    .
    myNavBar {
    height:100px;

    20 years a Zencart User

  3. #13
    Join Date
    Jun 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Header customization quirks

    none of this has seemed to work. is there a better way all together to insert a custom header? i am open to suggestions.

  4. #14
    Join Date
    Jun 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Header customization quirks

    schoolboy:

    i appologize for the incredibely long post but i couldn't figure out a better way to do it to make sure i am not missing something!

    i tried your suggestion and this is what it is doing
    Name:  zen_capture.jpg
Views: 127
Size:  20.3 KB


    maybe i am missing something (i will admit that php is not something i am comfortable with YET. i have enrolled in a class to fix my ignorance though!!!!!!)

    here is exactly what i have done:

    includes/templates/template_default/common/tpl_header.php (red is MY code)

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>


    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>

    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->

    <!--eof-header logo and navigation display-->





    <!--bof custom nav bar -->
    <?php include("my_menu_header.php") ?>

    <!--eof custom nav bar -->


    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>

    includes/templates/template_default/common/my_menu_header.php

    <?php
    <div id="nav_bar">
    <li><a id="home" href="/" title="Home"><span>Home</span></a></li>
    <li><a id="store" href="/store/" title="Store"><span>Store</span></a></li>
    <li><a id="portfolio" href="/portfolio/" title="Portfolio"><span>Portfolio</span></a></li>
    <li><a id="about" href="/about/" title="About"><span>About</span></a></li>
    <li><a id="contact" href="#" title="Contact Us"><span>Contact Us</span></a></li>

    </ul></div><!--end nav_bar -->

    ?>

    includes/templates/template_default/css/stylesheet.css (red is my code) NOTICE THIS IS 1 LEVEL ABOVE THE OTHER 2 FILES IN A CSS SUB-FOLDER

    /**
    * Main CSS Stylesheet
    *
    * @package templateSystem
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: stylesheet.css 5952 2007-03-03 06:18:46Z drbyte $
    */

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    background-color: #e5edf5;
    }

    a img {border: none; }

    a:link, #navEZPagesTOC ul li a {
    color: #3300FF;
    text-decoration: none;
    }

    a:visited {
    color: #3300FF;
    text-decoration: none;
    }

    a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    color: #FF0000;
    }

    a:active {
    color: #0000FF;
    }

    h1 {
    font-size: 1.5em;
    }

    h2 {
    font-size: 1.4em;
    }

    h3 {
    font-size: 1.3em;
    }

    h4, h5, h6, LABEL, h4.optionName, LEGEND, ADDRESS, .sideBoxContent, .larger{
    font-size: 1.1em;
    }

    .biggerText {
    font-size: 1.2em;
    }

    h1, h2, h3, h4, h5, h6 {
    margin: 0.3em 3px;
    }

    CODE {
    font-family: arial, verdana, helvetica, sans-serif;
    font-size: 1em;
    }

    FORM, SELECT, INPUT {
    display: inline;
    font-size: 1em;
    margin: 0.1em;
    }

    TEXTAREA {
    /* float: left;*/
    margin: auto;
    display: block;
    width: 95%;
    }

    input:focus, select:focus, textarea:focus {
    background: #F0F8FF;
    }

    FIELDSET {
    padding: 0.5em;
    margin: 0.5em 0em;
    border: 1px solid #cccccc;
    }

    LEGEND {
    font-weight: bold;
    padding: 0.3em;
    }

    LABEL, h4.optionName {
    line-height: 1.5em;
    padding: 0.2em;
    }

    LABEL.checkboxLabel, LABEL.radioButtonLabel {
    margin: 0.5em 0.3em;
    }

    #logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
    float: left;
    }

    LABEL.inputLabel {
    width: 11em;
    float: left;
    }

    LABEL.inputLabelPayment {
    width: 15em;
    float: left;
    }

    LABEL.selectLabel, LABEL.switchedLabel, LABEL.uploadsLabel {
    width: 12em;
    float: left;
    }

    P, ADDRESS {
    padding: 0.5em;
    }

    ADDRESS {
    font-style: normal;
    }

    .clearBoth {
    clear: both;
    }

    HR {
    height: 1px;
    margin-top: 0.5em;
    border: none;
    border-bottom: 1px solid #9a9a9a;
    }

    /*warnings, errors, messages*/
    .messageStackWarning, .messageStackError, .messageStackSuccess, .messageStackCaution {
    line-height: 1.8em;
    padding: 0.2em;
    border: 1px solid #000000;
    }

    .messageStackWarning, .messageStackError {
    background-color: #ff0000;
    color: #ffffff;
    }

    .messageStackSuccess {
    background-color: #99FF99;
    color: #000000;
    }

    .messageStackCaution {
    background-color: #FFFF66;
    color: #000000;
    }

    /*wrappers - page or section containers*/
    #mainWrapper {
    background-color: #ffffff;
    text-align: left;
    width: 100%;
    vertical-align: top;
    }

    #headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
    margin: 0em;
    padding: 0em;
    }

    #navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
    margin: auto;
    }

    #tagline {
    color:#000000;
    font-size: 2em;
    text-align : center;
    vertical-align: middle;
    }

    #sendSpendWrapper {
    border: 1px solid #cacaca;
    float: right;
    margin: 0em 0em 1em 1em;
    }

    .floatingBox, #accountLinksWrapper, #sendSpendWrapper, #checkoutShipto, #checkoutBillto, #navEZPagesTOCWrapper {
    margin: 0;
    width: 47%;
    }

    .wrapperAttribsOptions {
    margin: 0.3em 0em;
    }

    /*navigation*/

    .navSplitPagesResult {}
    .navSplitPagesLinks {}
    .navNextPrevCounter {
    margin: 0em;
    font-size: 0.9em;
    }
    .navNextPrevList {
    display: inline;
    white-space: nowrap;
    margin: 0;
    padding: 0.5em 0em;
    list-style-type: none;
    }

    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    margin: 0em;
    background-color: #9a9a9a;
    font-weight: bold;
    color: #ffffff;
    height: 1%;
    width: 100%;
    }

    #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;
    }

    #navEZPagesTOCWrapper {
    font-weight: bold;
    float: right;
    height: 1%;
    border: 1px solid #000000;
    }

    #navEZPagesTOC ul {
    margin: 0;
    padding: 0.5em 0em;
    list-style-type: none;
    line-height: 1.5em;
    }

    #navEZPagesTOC ul li {
    white-space: nowrap;
    }

    #navEZPagesTOC ul li a {
    padding: 0em 0.5em;
    margin: 0;
    }

    #navCategoryIcon, .buttonRow, #indexProductListCatDescription {
    margin: 0.5em;
    }

    #navMainSearch {
    float: right;
    }

    #navBreadCrumb {
    background-color: #cc9900;
    }

    #navEZPagesTop {
    background-color: #ffff33;
    }

    #navBreadCrumb, #navEZPagesTop {
    font-size: 0.95em;
    font-weight: bold;
    margin: 0em;
    padding: 0.5em;
    }

    #navColumnOne {
    background-color: #FFCC99;
    }

    #navColumnTwo {
    background-color: #00BFBF;
    }

    /*The main content classes*/
    #contentColumnMain, #navColumnOne, #navColumnTwo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .alert {
    vertical-align: top;
    }

    /*.content,*/ #productDescription, .shippingEstimatorWrapper {
    /*font-size: 1.2em;*/
    padding: 0.5em;
    }

    .alert {
    color: #FF0000;
    margin-left: 0.5em;
    }
    .advisory {}
    .important {
    font-weight: bold;
    }
    .notice {}
    .rating{}
    .gvBal {
    float: right;
    }
    .centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix {
    padding: 0.8em;
    }

    .smallText, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP {
    font-size: 0.9em;
    }

    /*Shopping Cart Display*/
    #cartAdd {
    float: right;
    text-align: center;
    margin: 1em;
    border: 1px solid #000000;
    padding: 1em;
    }

    .tableHeading TH {
    border-bottom: 1px solid #cccccc;
    }

    .tableHeading, #cartSubTotal {
    background-color: #e9e9e9;
    }

    #cartSubTotal {
    border-top: 1px solid #cccccc;
    font-weight: bold;
    text-align: right;
    line-height: 2.2em;
    padding-right: 2.5em;
    }

    .tableRow, .tableHeading, #cartSubTotal {
    height: 2.2em;
    }

    .cartProductDisplay, .cartUnitDisplay, .cartTotalDisplay, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, #cartInstructionsDisplay, .cartTotalsDisplay {
    padding: 0.5em 0em;
    }

    .cartUnitDisplay, .cartTotalDisplay {
    text-align: right;
    padding-right: 0.2em;
    }

    #scUpdateQuantity {
    width: 2em;
    }

    .cartQuantity {
    width: 4.7em;
    }

    .cartNewItem {
    color: #33CC33;
    position: relative; /*do not remove-fixes stupid IEbug*/
    }

    .cartOldItem {
    color: #660099;
    position: relative; /*do not remove-fixes stupid IEbug*/
    }

    .cartBoxTotal {
    text-align: right;
    font-weight: bold;
    }

    .cartRemoveItemDisplay {
    width: 3.5em;
    }

    .cartAttribsList {
    margin-left: 1em;
    }

    #mediaManager {
    width: 50%;
    margin: 0.2em;
    padding: 0.5em;
    }
    .mediaTitle {
    float: left;
    }
    .mediaTypeLink {
    float: right;
    }

    .normalprice, .productSpecialPriceSale {
    text-decoration: line-through;
    }

    .productSpecialPrice, .productSalePrice, .productSpecialPriceSale, .productPriceDiscount {
    color: #ff0000;
    }

    .orderHistList {
    margin: 1em;
    padding: 0.2em 0em;
    }

    #cartBoxListWrapper ul, #ezPageBoxList ul {
    list-style-type: none;
    }

    #cartBoxListWrapper li, #ezPageBoxList li, .cartBoxTotal {
    margin: 0;
    padding: 0.2em 0em;
    }

    #cartBoxEmpty, #cartBoxVoucherBalance {
    font-weight: bold;
    }

    .totalBox {
    width: 5.5em;
    text-align: right;
    padding: 0.2em;
    }

    .lineTitle, .amount {
    text-align: right;
    padding: 0.2em;
    }

    .amount {
    width: 5.5em;
    }

    /*Image Display*/
    #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage {
    margin: 0em 1em 1em 0em ;
    }

    .categoryIcon {}

    #cartImage {
    margin: 0.5em 1em;
    }

    /*Attributes*/
    .attribImg {
    width: 20%;
    margin: 0.3em 0em;
    }

    .attributesComments {}

    /*list box contents*/
    .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
    margin: 1em 0em;
    }

    /*sideboxes*/
    .columnLeft {}

    h3.leftBoxHeading, h3.leftBoxHeading a {
    font-size: 1em;
    color: #ffffff;
    }

    .leftBoxHeading, .centerBoxHeading {
    margin: 0em;
    background-color: #FF6699;
    padding: 0.5em 0.2em;
    }

    .leftBoxContainer {
    border: 1px solid #ffffff;
    margin-top: 1.5em;
    }

    .sideBoxContent {
    background-color: #ffffff;
    padding: 0.4em;
    }

    h3.rightBoxHeading, h3.rightBoxHeading a {
    font-size: 1.1em;
    color: #FFFF00;
    }

    .rightBoxHeading {
    margin: 0em;
    background-color: #663366;
    padding: 0.2em 0em;
    }

    h3.leftBoxHeading a:hover {
    color: #FFFF33;
    text-decoration: none;
    }

    h3.rightBoxHeading a:hover {
    color: #FF0000;
    text-decoration: none;
    }

    .rightBoxContent {
    background-color: #ffffff;
    margin-bottom: 1em;
    }

    .centeredContent, TH, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading,.rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, LABEL#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .gvBal, .attribImg {
    text-align: center;
    }

    #bestsellers .wrapper {
    margin: 0em 0em 0em 1.5em;
    }

    #bestsellers ol {
    padding: 0;
    margin-left: 1.1em;
    }

    #bestsellers li {
    padding: 0;
    margin: 0.3em 0em 0.3em 0em;
    }

    #bannerboxHeading {
    background-color: #0000CC;
    }

    #upProductsHeading {
    text-align: left;
    }

    #upDateHeading {
    text-align: right;
    }

    /*misc*/
    .back {
    float: left;
    }

    .forward, #shoppingCartDefault #PPECbutton {
    float: right;
    }

    .bold {
    font-weight: bold;
    }

    .rowOdd {
    background-color: #E8E8E8;
    height: 1.5em;
    vertical-align: top;
    }

    .rowEven {
    background-color: #F0F0F0;
    height: 1.5em;
    vertical-align: top;
    }

    .hiddenField {
    display: none;
    }
    .visibleField {
    display: inline;
    }

    CAPTION {
    /*display: none;*/
    }

    #myAccountGen li, #myAccountNotify li {
    margin: 0;
    }

    .accountTotalDisplay, .accountTaxDisplay {
    width: 20%;
    text-align: right;
    /*vertical-align: top*/
    }

    .accountQuantityDisplay {
    width: 10%;
    vertical-align: top
    }

    TR.tableHeading {
    background-color: #cacaca;
    height: 2em;
    }

    #siteMapList {
    width: 90%;
    float: right;
    }

    .ratingRow {
    margin: 1em 0em 1.5em 0em;
    }

    LABEL#textAreaReviews {
    font-weight: normal;
    margin: 1em 0em;
    }

    #popupShippingEstimator, #popupSearchHelp, #popupAdditionalImage, #popupImage, #popupCVVHelp, #popupCouponHelp, #popupAtrribsQuantityPricesHelp, #infoShoppingCart {
    background-color: #ffffff;
    }
    .information {padding: 10px 3px; line-height: 150%;}

    #shoppingcartBody #shippingEstimatorContent {
    clear: both;
    }

    .seDisplayedAddressLabel {
    background-color:#85C285;
    text-align: center;
    }
    .seDisplayedAddressInfo {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    }
    #seShipTo {
    padding: 0.2em;
    }



    #home
    {
    display: block;
    width: 220px;
    height: 112px;
    background: url("images/home_btn.gif") no-repeat 0 0;

    }

    #home:hover
    {
    background-position: 0 -112px;
    }

    #home span
    {
    display: none;
    }

    #store
    {
    display: block;
    width: 90px;
    height: 112px;
    background: url("images/store.gif") no-repeat 0 0;

    }

    #store:hover
    {
    background-position: 0 -112px;
    }

    #store span
    {
    display: none;
    }

    #portfolio
    {
    display: block;
    width: 144px;
    height: 112px;
    background: url("images/portfolio.gif") no-repeat 0 0;

    }

    #portfolio:hover
    {
    background-position: 0 -112px;
    }

    #portfolio span
    {
    display: none;
    }

    #about
    {
    display: block;
    width: 132px;
    height: 112px;
    background: url("images/about.gif") no-repeat 0 0;

    }

    #about:hover
    {
    background-position: 0 -112px;
    }

    #about span
    {
    display: none;
    }


    #contact
    {
    display: block;
    width: 268px;
    height: 112px;
    background: url("images/contact.gif") no-repeat 0 0;

    }

    #contact:hover
    {
    background-position: 0 -112px;
    }

    #contact span
    {
    display: none;
    }



    .myNavBar {
    height:100px;
    }


    and then i added the images to includes/templates/template_default/images


    here is what my source code for that page says though... i dont understand!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
    <head>
    <title>Fingerprint Design, LLC</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="Egg Designs Wall Art Portraits ecommerce, open source, shop, online shopping, egg, designs, egg designs, wall art, wall, art, portraits, custom, unique " />
    <meta name="description" content="Fingerprint Design, LLC : - Egg Designs Wall Art Portraits ecommerce, open source, shop, online shopping, egg, designs, egg designs, wall art, wall, art, portraits, custom, unique" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&trade; Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce" />

    <base href="http://fingerprintdesignllc.com/store/" />

    <link rel="stylesheet" type="text/css" href="includes/templates/CUSTOM/css/style.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/CUSTOM/css/stylesheet.css" />
    </head>

    <body id="indexHomeBody">

    <div id="mainWrapper">



    <!--bof-header logo and navigation display-->

    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><a href="http://fingerprintdesignllc.com/store/">Home</a></li>

    <li><a href="http://fingerprintdesignllc.com/store/index.php?main_page=login">Log In</a></li>

    </ul>
    </div>
    <div id="navMainSearch"></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><a href="http://fingerprintdesignllc.com/store/"><img src="includes/templates/CUSTOM/images/" alt="" /></a></div>
    </div>
    <br class="clearBoth" />

    <!--eof-branding display-->

    <!--eof-header logo and navigation display-->
    <!--bof custom nav bar -->

  5. #15
    Join Date
    Jun 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Header customization quirks

    Quote Originally Posted by schoolboy View Post
    The problem may also be within your stylesheets.

    Because you reference things like:

    .
    .
    .

    You are creating conflicts with similar statements in stylesheet.css... and stuff will be over-ridden

    Somehow we've got to apply these declarations ONLY to the fancy header you have created, or restructure the HTML in your header so it's not using <li> tags...
    what would you suggest? i am open! if there is a better way to do this i can

    i got rid of style_2.css so the only stylesheet that should be referenced currently would be stylesheet.css so atleast we only have one file that conflicts now!

  6. #16
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Header customization quirks

    Try this... DON'T EDIT ANYTHING BELOW...JUST COPY & PASTE
    (Backup original files, of course...)

    Use this code in tpl_header.php

    (includes/templates/template_default/common/tpl_header.php)

    PHP Code:
    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo 
    $messageStack->output('header');
    }
    if (isset(
    $_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo 
    htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset(
    $_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo 
    htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>


    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>

    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>
    <?php
    } else {
    if (
    STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->

    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2))) { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2)) {
    if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static'$banner);?></div>
    <?php
    }
    }
    ?>
    </div>
    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->

    <!--eof-header logo and navigation display-->





    <!--bof custom nav bar -->
    <div id="myNavBar">
    <li><a id="home" href="/" title="Home"><span>Home</span></a></li>
    <li><a id="store" href="/store/" title="Store"><span>Store</span></a></li>
    <li><a id="portfolio" href="/portfolio/" title="Portfolio"><span>Portfolio</span></a></li>
    <li><a id="about" href="/about/" title="About"><span>About</span></a></li>
    <li><a id="contact" href="#" title="Contact Us"><span>Contact Us</span></a></li>

    </ul></div><!--end nav_bar --> 

    <!--eof custom nav bar -->

    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->

    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>
    <?php 
    require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php 
    ?>
    <!--eof-header ezpage links-->
    </div>
    <?php ?>
    ADD TO STYLESHEET.CSS - RIGHT AT THE BOTTOM - AGAIN... DO NOT EDIT... JUSt COPY/PASTE

    Code:
    /* - - - CUSTOM NAV BAR  - - - */
    
    #myNavBar ul li { /* YOU MAY JUST NEED #myNavBar --- without the ul li */
    list-style:none;
    float:left;
    }
    #myNavBar ul li a {
    color:#000000;
    text-decoration: none;
    }
    
    #myNavBar ul li a:visited {
    color:#000000;
    text-decoration: none;
    }
    
    #myNavBar ul li a:hover {
    color:#000000;
    text-decoration: none;
    }
    #myNavBar ul li a {
    outline: none;
    }
    
    #home
    {
    display: block;
    width: 220px;
    height: 112px;
    background: url(../images/home_btn.gif) no-repeat 0 0;
    
    }
    
    #home:hover
    {
    background-position: 0 -112px;
    }
    
    #home span
    {
    display: none;
    }
    
    #store
    {
    display: block;
    width: 90px;
    height: 112px;
    background: url(../images/store.gif) no-repeat 0 0;
    
    }
    
    #store:hover
    {
    background-position: 0 -112px;
    }
    
    #store span
    {
    display: none;
    }
    
    #portfolio
    {
    display: block;
    width: 144px;
    height: 112px;
    background: url(../images/portfolio.gif) no-repeat 0 0;
    
    }
    
    #portfolio:hover
    {
    background-position: 0 -112px;
    }
    
    #portfolio span
    {
    display: none;
    }
    
    #about
    {
    display: block;
    width: 132px;
    height: 112px;
    background: url(../images/about.gif) no-repeat 0 0;
    
    }
    
    #about:hover
    {
    background-position: 0 -112px;
    }
    
    #about span
    {
    display: none;
    }
    
    
    #contact
    {
    display: block;
    width: 268px;
    height: 112px;
    background: url(../images/contact.gif) no-repeat 0 0;
    
    }
    
    #contact:hover
    {
    background-position: 0 -112px;
    }
    
    #contact span
    {
    display: none;
    }
    
    #myNavBar{
    height:100px;
    }
    Make sure to load the images into the following folder:

    includes/templates/CUSTOM/images/

    ---
    20 years a Zencart User

  7. #17
    Join Date
    Jun 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Header customization quirks

    YEAH it worked... i need to tweak the image sizes so it all fits right but it is there and functional!


    THANK YOU SOOOOOOO MUCH

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. USPS January 17 2016 K8 - Support Quirks
    By Ajeh in forum Addon Shipping Modules
    Replies: 142
    Last Post: 10 Jan 2020, 07:39 PM
  2. Header customization
    By greatlakesherbalife in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Apr 2010, 12:35 PM
  3. Hidden BOM throwing IE into quirks mode
    By phreakymonkey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2009, 03:11 AM
  4. Header Customization
    By leew04 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Jun 2008, 04:47 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