Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1

    help question Moving Home, Login & My Account

    Hi,

    1. I'd like to move the 'Home', 'Login' and 'My Account' links from the very top of the page to just below the banner where the Category text links are.

    2. I'd like to keep the Category text links centered, while aligning the 'Home', 'Login' and 'My Account' links to the left.

    3. I'd like to then get rid of the white space above the banner where the links currently reside.

    4. Lastly, I'd like to change the text for the 'Home' link to 'Store Home' or something similar, because I want to differentiate between the store's home page and the main site's home page.

    Cart can be viewed here: http://www.empowermentsanctuary.com/marketplace/

    I'm not sure which files to alter to accomplish this. Any assistance offered is much appreciated

    Thanks in advance
    Last edited by ScriptJunkie; 18 Aug 2008 at 01:29 PM. Reason: added a 4th item

  2. #2

    help question Re: Moving Home, Login & My Account

    Ok, here's where I am at:

    I determined that my original plan was a bad idea, because once a customer logs in, the additional my account and shopping cart links would shove the Category links off the page.

    I've been able to successfully move the "Home" and "Login", "My Account", etc. links from the top of the page to just above the Category Navigation links and get rid of the white space at the top of the page.

    Problem: I can't get the Home & Login line of links centered on the page.

    A look at the code using FF Developer's Toolbar shows me that when I moved it, I incorrectly named it and placed it. I suspect that I need to create a new div id? The trouble is that I'm not familiar with CSS and PHP, so I don't know how to fix it.

    I sure could use some help. If anyone has the time to take a quick peek and to then tell me how to resolve this issue, I'd be grateful

    Here's the page. Everything on it is aligned just how I want it, except for the Home & Login, My Account, etc. links, which should be centered.

    Thanks in advance

  3. #3
    Join Date
    Apr 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: Moving Home, Login & My Account

    It looks like those links are nested in the Nav Categories Div element.

    Maybe try manipulating some CSS with the navCatTabs anchor tags
    #navCatTabs a{ /*Stylesheet commands here */ }

    That would be in /includes/templates/YOUR_TEMPLATE/css/stylesheet.css
    "We cannot solve the problems we've created with the same kind of thinking that created them." -- Einstein

  4. #4

    Default Re: Moving Home, Login & My Account

    I tried the suggestion, it didn't seem to have any affect. Probably because I've coded it wrong & the links aren't nested properly.

    I just don't know how to fix it. I've considered getting ride of the "back" class and coding it just like the other NavCatTabs (i.e. as a UL), but:

    1. I don't want it on the same line as the Category links
    2. I don't know how to code it to make it show on a separate line
    3. I don't know what the effects would be of changing the class, because I don't know what other files the 'back class' is linked to.


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

    Default Re: Moving Home, Login & My Account

    Try:

    #navCatTabsWrapper {
    color: #04003F;
    text-align:center;
    }

  6. #6

    Default Re: Moving Home, Login & My Account

    I tried that before and it didn't work so I removed the 'text align:center;', but figured I'd give it another try after you suggested it, just in case the first failed attempt was a hiccup of some sort.

    It still didn't work. I stared at it for a long time before I realized...all this time the #NavCatTabsWrapper has been just sitting there commented out. duh!

    I removed that and of course it worked.

    Thank you Steve


    Any suggestions as to how I can keep my sidebox content from being centered? It happened after I changed above change. I'd like that content to be aligned left.
    Last edited by ScriptJunkie; 23 Aug 2008 at 01:38 PM.

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

    Default Re: Moving Home, Login & My Account

    Not sure why what you've done would center the sidebox contents, but:


    .leftBoxContainer, .rightBoxContainer {
    border: 1px solid #04003F;
    margin: 0 0 1em 0;
    text-align:left;
    }

  8. #8

    Default Re: Moving Home, Login & My Account

    I think it has something to do with the fact that I totally screwed up the code <grin>.

    I found another article here on the forum that may resolve it. I'm putting the code back as it was and then starting fresh using the instructions in this thread

    Thanks much for your assistance! I'll post back here when I'm done so others who may be struggling with this will be able to see the resolution.

  9. #9

    Default Re: Moving Home, Login & My Account

    Resolution

    Step 1: Follow the instructions in this thread
    Step 2: If the links are not centered and you want them to be, navigate to includes/templates/YOURCUSTOMTEMPLATE/common and edit the tpl_header.php file.

    Locate this text:

    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    and change it to this text:

    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="centeredContent">
    Note: The above text changes may not be necessary for you. You may be able to center your links by editing the navMainWrapper to include text-align: center;

    In my case, the above change was necessary because the class "back" was connected to other aspects of my cart that I did not want centered, so changing the link's class to a generic "centered content" class was the easiest fix.

    Make sure you examine your own template to see what's necessary before making changes to template files.

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

    Default Re: Moving Home, Login & My Account

    The <ul class="back"> should really not be in the PHP code - best practice is to keep styling/positioning information in the stylesheet and content information in the PHP files. This is an example of old legacy code that hasn't been fixed yet. Since the containing div is named, the ul doesn't need a separate class:

    <div id="navMain">
    <ul>

    In the stylesheet, add

    #navMain ul {text-align: center;}

    If there were multiple <ul> elements in #navMain, you might want to give one or more of them an identifying class so they could be manipulated separately, like class="ul1" or class="last".

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Moving Home & Login to ezpages links navbar
    By ckelley in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Jul 2012, 09:02 PM
  2. Moving 'home, login' links
    By Spo0f in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jun 2009, 10:41 PM
  3. Moving Home Login below Logo
    By gogolf in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 27 May 2008, 11:05 PM

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