Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default horizontal menu table, where to insert?

    Hi, I've been searching for an answer to this question for days. What I am trying to do is have a simple (not flyout) horizontal menu under my header like I have here www.sculpturealley.com

    I have a new zen cart installation here: www.sculpturealley.net which is where I am trying to add the horizontal menu. I have the table code, I just don't know where exactly to add it. I tried on stylesheet css to no avail.

    Also, on my skyline header, the repeat is showing in the wrong place, I need to center the logo so that the city is in the center.

    Any advice would be greatly appreciated. Thanks in advance.

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

    Default Re: horizontal menu table, where to insert?

    Make EZ-Page internal links for each of those destinations (in admin > Tools > EZ-Pages), setting them to display in the header, and enable the ez-page header bar in admin > Configuration > EZ-Page Settings > EZ-Pages Display Status - HeaderBar.

    Then you can style the links as you wish in your stylesheet.

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

    Default Re: horizontal menu table, where to insert?

    Find in your stylesheet

    #logoWrapper {

    and add

    background-position: 32em 50%;

    Adjust the 32em as desired.

  4. #4
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: horizontal menu table, where to insert?

    Hello GJH,

    Thank you very much for your reply. The background image is now centered, thanks!!

    However, when I enabled the header for the ez page, it has appeared on my background image, shifting the image down, and is overlapping.

    Can I move those links down below the header, restore the original position of the background image and then style in stylesheet?

    Or is my header somehow intruding into ez page territory?

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

    Default Re: horizontal menu table, where to insert?

    You appear to have customized your tpl_header.php, and in the process eliminated the closing </div> in the branding display section. This has a cascading effect that your headerWrapper is no longer closed, but extends to the entire site.
    From your view source:
    HTML Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><a href="http://sculpturealley.net/"><img src="includes/templates/SculptureAlley/images/salogo.jpg" alt="Sculpture Alley" title=" Sculpture Alley " width="310" height="90" /></a> 
    </div>
    <br class="clearBoth" />
    
    <!--eof-branding display-->
    This should be
    HTML Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><a href="http://sculpturealley.net/"><img src="includes/templates/SculptureAlley/images/salogo.jpg" alt="Sculpture Alley" title=" Sculpture Alley " width="310" height="90" /></a> 
        </div>
    </div>
    <br class="clearBoth" />
    
    <!--eof-branding display-->

  6. #6
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: horizontal menu table, where to insert?

    Hi Glenn,

    Thank you again for responding. Actually what I did was follow this tutorial:

    https://www.zen-cart.com/tutorials/i...hp?article=125

    So in includes/languages/ENGLISH/CUSTOM/header.php I have:


    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Sculpture Alley');
    define('HEADER_SALES_TEXT', '<h1></h1>');
    define('HEADER_LOGO_WIDTH', '310px');
    define('HEADER_LOGO_HEIGHT', '90px');
    define('HEADER_LOGO_IMAGE', 'salogo.jpeg');

    and then in includes/templates/CUSTOM/css/stylesheet.css I have:

    #logoWrapper{
    background-image: url(../images/skyline.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:90px;
    border-right: 1px solid #262243;
    border-left: 1px solid #262243;
    border-top: 15px solid #262243;
    border-bottom: 1px solid #262243;
    margin-bottom: 10px;
    margin-top: 2px;
    background-position: 32em 50%;
    }

    Is there another location I could have lost that div tag? I'm sorry to admit I've made numerous changes trying to get the results I need. At least I have made copies of every file I changed to my custom folder.

    Should I implement the code you suggest to tpl_header.php and revert the other files back to the original code?

    Thanks

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

    Default Re: horizontal menu table, where to insert?

    Those changes would not have affected the div tags. You must somehow have edited /includes/templates/your_template/common/tpl_header.php (or possibly the original version at /includes/templates/template_default/common/tpl_header.php, which would be a bad idea). That section should look like
    PHP Code:
    <!--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-->
    Also, if you don't want a tagline, eliminate the <h1> tags in the definition leaving only the two single quotes'':
    PHP Code:
    define('HEADER_SALES_TEXT'''); 
    Last edited by gjh42; 21 Sep 2009 at 01:41 AM.

  8. #8
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: horizontal menu table, where to insert?

    Glenn,

    You are absolutely correct. I found the tag missing in my custom/common/tpl_header.php file. My apologies for not catching that the first time, when I looked at the file and didn't see my logo, and the original text, I thought I never modified it.

    The issue has been resolved, thank you so very much for your efforts.

    You are a gentleman and a scholar!

 

 

Similar Threads

  1. Horizontal Drop Menu sort order of mega-menu
    By familynow in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 19 Oct 2011, 04:39 PM
  2. How and where to insert a Horizontal Rule into an Index Listing?
    By skelly100 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jul 2010, 05:07 PM
  3. Where is my horizontal menu???
    By Brian Flanagan in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Feb 2010, 03:44 AM
  4. How to add menu items for top horizontal menu? - help
    By AndriyZ in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Feb 2010, 01:14 AM
  5. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 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