Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    No it wasn't me. I purchased the template solution (slightly modified) from another company which I am now somewhat regretting. It was when I was new to everything and had no idea bout the open source Zen Cart.

    How would I go about creating a search bar in default div if it doesn't already exist?

    In my stylesheet.css, I currently have

    #navMainSearch {

    float: right;

    }

    Does this mean it already exists just not enabled? If so, how would I enable it?

  2. #12
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header Search Issue.

    Does this mean it already exists just not enabled? If so, how would I enable it?
    It exists but not in your template because the code has been altered

    you might look in your template's /common folder for a tpl_header.php and compare it to the one in /template_default/common
    Zen-Venom Get Bitten

  3. #13
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    The search has an absolute position in the declaration...add a relative position to an outer div...

    Try adding position:relative; to your #mainWrapper declaration in the stylesheet

    Hope that helps :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  4. #14
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    I've looked in my template's common folder however my knowledge of coding isn't sufficient enough to really understand how to enable a search bar in #navMain

    I tried changing the position to relative but that restricts it to the right of the #headerSearch frame

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header Search Issue.

    my knowledge of coding isn't sufficient enough to really understand how to enable a search bar in #navMain
    No Need

    admin > tools > layout sidebox controller > look for "sideboxes/search_header.php" > and turn it on
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    Sorry, I mistakenly thought the position:relative; command was ment to go into #headerSearch. I applied it to MainWrapper and it works now.

    Thanks heaps guys

  7. #17
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    How would I be able to increase the height of the search bar? I've looked through tpl_search_header.php but couldn't find any properties regarding height...


    Also, how can I reduce the space from the right side of the search bar to the left side of the search box. From this;


    To this;



    I've tried changing different properties in #headerSearch but haven't had any luck.

  8. #18
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Header Search Issue.

    how can I reduce the space from the right side of the search bar to the left side of the search box. From this;
    We went through this back in my posting #8
    Zen-Venom Get Bitten

  9. #19
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    I know we discussed changing the width in #headerSearch and in tpl_search_header.php
    HEADER_SEARCH_BUTTON . '" style="width: 45px" />';

    But whenever I do reduce the size, this is what happens


    How can I achieve the result in the image I displayed in the above post?

    Also, where in #tpl_search_header.php can I link my own search button?



    <?php
    /**
    * Side Box Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 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: tpl_search_header.php 4142 2006-08-15 04:32:54Z drbyte $
    */
    $content = "";
    $content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
    $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
    $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();

    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
    $content .= zen_draw_input_field('keyword', '', 'size="8" maxlength="30" width="400" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
    } else {
    $content .= zen_draw_input_field('keyword', '', 'size="8" maxlength="30" style="width: 400px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '&nbsp;<input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />';
    }

    $content .= "</form>";
    ?>

  10. #20
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

    Default Re: Header Search Issue.

    Sorry, accidentally highlighted in yellow.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v150 padlock on login broken, because of header search and sidebox search. Any fix?
    By zenartman in forum Customization from the Admin
    Replies: 6
    Last Post: 11 Apr 2015, 06:30 AM
  2. v139h Moving search button in header search?
    By RescoCCC in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Feb 2013, 11:52 PM
  3. search header issue
    By lina0962 in forum Basic Configuration
    Replies: 1
    Last Post: 2 Oct 2010, 10:31 PM
  4. Search Header with Alternative Header v2-0
    By hcd888 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 May 2009, 02:47 PM
  5. Question about search sidebox and search header
    By jenzi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Sep 2008, 06: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