Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2011
    Posts
    106
    Plugin Contributions
    0

    Default Using Westminster_New theme - Position text/image below the search bar

    Hi,
    I would like to show my telephone number below the search bar in the top header area. I have added the text in the php and css but cant seem to position the text below the search bar.
    Any help would be appreciated.
    Also if i cant make this look right i will probably like to insert an image instead. Any advice on how i do this would be appreciated.
    website: https://www.selfbuildplans.co.uk
    Thanks.

  2. #2
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Using Westminster_New theme - Position text/image below the search bar

    Quote Originally Posted by J9MM0 View Post
    Hi,
    I would like to show my telephone number below the search bar in the top header area. I have added the text in the php and css but cant seem to position the text below the search bar.
    Any help would be appreciated.
    Also if i cant make this look right i will probably like to insert an image instead. Any advice on how i do this would be appreciated.
    website: https://www.selfbuildplans.co.uk
    Thanks.
    One way is:

    At the moment you have
    Code:
     
    <div id="logo">...</div>
    <div class="logoText">Tel: 0161 408 0438</div> 
    <div id="navMainSearch">...</div>
    Change it like so:

    Code:
    <div id="logo">...</div>
    <div id="navMainSearch">...</div>
    <br class="clearBoth">
    <div class="logoText">Tel: 0161 408 0438</div>
    You can then move the tel no. up wth margin-top:-??px;
    Simon

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Using Westminster_New theme - Position text/image below the search bar

    Also, I think you may have hard coded the telephone number straight into the php file. If you have, a better way is to pull the customer service number from the database - Admin > Configuration > My Store > Telephone - Customer Service
    Simon

  4. #4
    Join Date
    Feb 2011
    Posts
    106
    Plugin Contributions
    0

    Default Re: Using Westminster_New theme - Position text/image below the search bar

    Thanks Simon1066 for your comments.
    I have my phone number in the admin pages but what code do i need to show this on the page?
    Also my phone number shows on the main page on a laptop but on a mobile i cant get it to show. I moved it to the top wrapper so it would show up on the mobile still no joy...
    Any help would be great
    thanks.

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Using Westminster_New theme - Position text/image below the search bar

    Quote Originally Posted by J9MM0 View Post
    ... I have my phone number in the admin pages but what code do i need to show this on the page? ...
    For the above - from last time I looked the code you used to display the tel no. was

    Code:
    <div class="logoText">Tel: 0161 408 0438</div>
    to grab and display the customer service tel no. from the database you could use:

    Code:
    <div class="logoText">Tel: <?php echo STORE_TELEPHONE_CUSTSERVICE; ?></div>
    However the 'Tel:' prefix should really be stored in a language file so I would add the following to \includes\languages\YOUR_TEMPLATE\english.php:

    Code:
    define('STORE_TELEPHONE_CUSTSERVICE_PREFIX', 'Tel:&nbsp;');
    and use this code in your header php file:

    Code:
    <div class="logoText"><?php echo STORE_TELEPHONE_CUSTSERVICE_PREFIX . STORE_TELEPHONE_CUSTSERVICE; ?></div>
    Simon

  6. #6
    Join Date
    Feb 2011
    Posts
    106
    Plugin Contributions
    0

    Default Re: Using Westminster_New theme - Position text/image below the search bar

    Spot on Thanks Simon.

 

 

Similar Threads

  1. v150 Measuring the using of search bar
    By Dave1st in forum General Questions
    Replies: 4
    Last Post: 10 Nov 2013, 07:34 PM
  2. v151 Move Home/Login/Search Bar/ below header image...
    By Kris63 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Dec 2012, 05:11 AM
  3. moving the navigation bar to just below the header_bg image?
    By silver500 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Nov 2011, 12:26 AM
  4. Search bar in middle of a wrapper below header
    By choyingsmith in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Aug 2010, 06:04 PM
  5. Replies: 1
    Last Post: 31 Dec 2009, 01:36 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR