Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Using a html file as header/logo

    You can style the clickable link area to the size you want, so it includes the "button" image to the left of the text, for example.

    You would do this by adding padding to the link id to bulk it out on whichever sides of the text you desire, in combination with setting a fixed height and width for the link.

  2. #12
    Join Date
    Dec 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Using a html file as header/logo

    Quote Originally Posted by gjh42 View Post
    You can style the clickable link area to the size you want, so it includes the "button" image to the left of the text, for example.

    You would do this by adding padding to the link id to bulk it out on whichever sides of the text you desire, in combination with setting a fixed height and width for the link.
    Thanks for the help, but which specific files do I need to do changes. in the tpl_header.php and the stylesheet.css? How do I give the links an id and write this the the stylesheet?

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

    Default Re: Using a html file as header/logo

    Example:
    Code:
    #headerWrapper {
        background: url(../images/yourimage.png);
        position: relative;
        }
    
    #navLink1 {
        position: absolute;
        display: block; /*not sure if this is needed*/
        top: 123px;
        left: 567px;
        width: 66px;
        height: 34px;
        padding: 12px 0 0 33px;
        }
    The link code is up to you; you can relocate existing ones or add new ones. They will all have the <a href=... code. You can add the id there:
    <a id="navLink1" href=...
    Last edited by gjh42; 22 Dec 2008 at 10:23 PM.

  4. #14
    Join Date
    Dec 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Using a html file as header/logo

    So, I only need to alter the stylesheet? The links I want on the header is Customer Service, Contact Us and Shopping Cart. The example you use #navLink1, which id has the one I will be needing?

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

    Default Re: Using a html file as header/logo

    The <a id=... is in tpl_header.php. The #headerWrapper... is in your stylesheet.

    None of the links has an id now, so you will have to give them whatever ids you want. They can be anything, but they must be distinctive so they don't accidentally match some other existing id.

  6. #16
    Join Date
    Dec 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Using a html file as header/logo

    OK, I have this code in tpl_header.php
    Code:
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    Can I change this to:

    Code:
    <li><a id=navLogoCart><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></a></li>

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

    Default Re: Using a html file as header/logo

    No, you will need to take the link out of the <ul> <li> list structure (get rid of the list and its containing div) and just have this:
    PHP Code:
    <a id="navLogoCart" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a>

  8. #18
    Join Date
    Dec 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Using a html file as header/logo

    OK, I REMOVE this:
    PHP Code:
    <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>
    And REPLACE with:

    PHP Code:
        <?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a>
    <?php if ($_SESSION['customer_id']) { ?>
        <a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a>
        <a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a>
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <a id="navLogoCart" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a>
        <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a>
    <?php }?>

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

    Default Re: Using a html file as header/logo

    That is correct. Now you have to decide which of those links you want active in your reworked header. The code as is will only show the navLogoCart link if there is something in the cart. If you want to show that link all the time, you will need to remove the
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    and
    <?php }?>
    from around that HTML link. The checkout link is also displayed when the cart link is displayed; do you want that?

    You need to go through each of those links, learn what they are, and decide if and where to use them.

  10. #20
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Using a html file as header/logo

    Just reading this makes me twitch. What if I do not want to deal with all the links and tpl_header and CSS etc.etc.etc.

    All I would like to do is to create my header in photoshop with sliced images that have link code embeded in it and cut and paste the code to be used as my header.

    Keep it simple so I can change it whenever I want without having to go through all the extra bull.

    Any suggestions for how to so this? Thanks.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Installing Header in HTML with a jpg. Logo.
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Nov 2009, 09:08 AM
  2. replace logo with flash file or Html
    By phillpal in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jun 2008, 12:29 PM
  3. Adding logo using html
    By mooncavecrystals in forum General Questions
    Replies: 5
    Last Post: 22 Dec 2007, 10:49 PM
  4. Replace Logo.gif with an HTML File
    By ner0tik in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2007, 08:35 PM

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