Magento Expert Forum - Improve your Magento experience

Results 1 to 6 of 6

How to remove account button and replace with simple account|login links ?

  1. #1
    New member
    Join Date
    May 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to remove account button and replace with simple account|login links ?


  2. #2
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    260
    Thanks
    23
    Thanked 40 Times in 33 Posts

    Default

    You can adjust it in header template of current activated theme. If the activated theme have no phtml for this you can adjust from the default template.

  3. #3
    New member
    Join Date
    May 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by david View Post
    You can adjust it in header template of current activated theme. If the activated theme have no phtml for this you can adjust from the default template.
    i made the changes directly in the header.phtml of my current theme. Thank you David

  4. #4
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    260
    Thanks
    23
    Thanked 40 Times in 33 Posts

    Default

    Quote Originally Posted by Mystery View Post
    i made the changes directly in the header.phtml of my current theme. Thank you David
    Does it work? And did you clear cache?

  5. #5
    Junior Member
    Join Date
    Aug 2016
    Posts
    75
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    <default>
    <reference name="top.links">

    <action method="setTemplate">
    <template>page/template/my_links.phtml</template>
    </action>

    </reference>
    <default>

    Then copy page/template/links.phtml and rename it to page/template/my_links.phtml and do whatever you need inside that new template file.
    For example you can add log-in & logout link add the below code:
    <?php if (Mage::helper('customer')->isLoggedIn() ): ?>
    <a href="<?php echo Mage::helper('customer')->getLogoutUrl(); ?>"><?php echo 'Log OUT'; ?></a>

    <?php

    else: ?>
    <a href="<?php echo Mage::helper('customer')->getLoginUrl(); ?>">SIGN IN</a>
    <?php

    endif; ?>

    To add custom link to top links via local.xml:
    <reference name="top.links">
    <action method="addLink" translate="label title">
    <label>My Link</label>
    <url>path/to/page</url>
    <title>My link tooltip</title>
    <prepare>true</prepare>
    <urlParams/>
    <position>150</position>
    <liParams>id="my-custom-id"</liParams>
    </action>
    </reference>

  6. #6
    Junior Member
    Join Date
    Oct 2016
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Managing your account settings couldn’t be easier. To get started, click on the arrow in the top right-hand corner of any page next to your profile picture and select Settings. From here you can manage your author names, password, email addresses and notification settings. This is also where you can also choose who can see what is on your profile.
    In case you need to apply custom template only for Top Links, you can do it like this in your theme's local.xml:

    <default>
    <reference name="top.links">

    <action method="setTemplate">
    <template>page/template/my_links.phtml</template>
    </action>

    </reference>
    <default>
    Then copy page/template/links.phtml and rename it to page/template/my_links.phtml and do whatever you need inside that new template file. For example you can add log-in & logout link add the below code:

    <?php if (Mage::helper('customer')->isLoggedIn() ): ?>
    <a href="<?php echo Mage::helper('customer')->getLogoutUrl(); ?>"><?php echo 'Log OUT'; ?></a>

    <?php

    else: ?>
    <a href="<?php echo Mage::helper('customer')->getLoginUrl(); ?>">SIGN IN</a>
    <?php

    endif; ?>
    To add a custom link to Top Links via local.xml:

    <reference name="top.links">
    <action method="addLink" translate="label title">
    <label>My Link</label>
    <url>path/to/page</url>
    <title>My link tooltip</title>
    <prepare>true</prepare>
    <urlParams/>
    <position>150</position>
    <liParams>id="my-custom-id"</liParams>
    </action>
    </reference>
    Optomize your OnPage and Get High Rank Google With - this toolkit - Serplify Pro Review

    Igloo Page Builder Create your Landing page and Sales Page for Page Builder - Buy it and Get Special Gift
    Feedback software for Small business- Convertifire Review - Bonus Free

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
  •