Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Add Sign In and Register to header

    Hi all,

    I am working on www.cks.digi-blue.co.uk. At present, at the top, there is two links - My Account and Create an Account. This is the code:

    <div class="headerRightTop"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT); ?>">My Account</a> | <a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT); ?>">Create an Account</a></div>
    <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING); ?>"><img src="images/checkout.gif" alt="" align="right" /></a><div class="cartDetails"><strong>Cart:</strong>&nbsp; &pound;<?php echo $ThisAmount; ?></div>

    Unfortunately, these have been added as links, so once the customer logs in, there is no option for them to log out. I am not good with coding, could someone please help with how I can get these in there?

    To use an example, I have done http://www.crumbzcatering.co.uk/ with a template, and would like to replace that all with the header bar that starts with the Home - Log in - Shopping Cart - Checkout

    I have been messing with files for 2 days now, any direction will be greatly appreciated!!!!!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add Sign In and Register to header

    Someone would have to have access to all the template files to figure out what was done on the first site. Whoever coded it has replaced a lot of the stock header code with custom coding that removed the navMain section that is still there in the catering site.

    Looking at the source, everything between <div id="mainWrapper"> and <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper"> has been replaced with custom coding, possibly in tpl_header.php. Use the Admin - Tools - Developers Tool Kit to search for headertop to be sure.

    You might also (temporarily) remove tpl_header.php from your custom template override folder and see what happens.

  3. #3
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Add Sign In and Register to header

    Hi,

    Thank you for the reply. Just to show how far I got with trying to adjust this, please see http://www.cks.digi-blue.co.uk/index...ain_page=login.

    At present, they are all underneath each other, I am sure there is something missing that will display this all in 1 line, is there any chance you would know what is missing / what I am doing here?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Add Sign In and Register to header

    You'll need to fiddle with the padding / margins (and font-size, if it were me), but adding this to the bottom of your stylesheet might help:


    .headerRightTop {width: 370px;}
    .headerRightTop li {display: inline;}

  5. #5
    Join Date
    Apr 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: Add Sign In and Register to header

    Thank you ever so much!!!! This has resolved the issue!

 

 

Similar Threads

  1. congradulation sign and top header logo
    By kharames in forum General Questions
    Replies: 9
    Last Post: 30 Apr 2011, 01:55 AM
  2. Add Register next to Log In
    By Johnboat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Sep 2010, 07:31 PM
  3. "Sign in" and "register" pages
    By jonezy09 in forum General Questions
    Replies: 1
    Last Post: 4 Aug 2010, 10:48 AM
  4. Home, Login in header. How can i put a "register" and others?
    By alex2310 in forum Customization from the Admin
    Replies: 1
    Last Post: 15 Mar 2007, 12:23 PM
  5. Add a JOIN US or REGISTER NOW
    By Barcelona in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Nov 2006, 12:13 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