Move sign in to bottom in my top links
Clash Royale CLAN TAG#URR8PPP
I want my top links in the order like:
- My Account
- My Wishlist
- My Orders
- Sign In
But I am getting like:
- My Account
- My Wishlist
- Sign In
- My Orders
Below is my code:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" before="my-account-link"
template="Magento_Customer::account/link/authorization.phtml"/>
<block class="MagentoCustomerBlockAccountLink" name="my-account-link" after="authorization-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-orders-link-top" after="my-account-link" before="-">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountRegisterLink" name="register-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Create an Account</argument>
</arguments>
</block>
</referenceBlock>
magento2 toplinks
add a comment |
I want my top links in the order like:
- My Account
- My Wishlist
- My Orders
- Sign In
But I am getting like:
- My Account
- My Wishlist
- Sign In
- My Orders
Below is my code:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" before="my-account-link"
template="Magento_Customer::account/link/authorization.phtml"/>
<block class="MagentoCustomerBlockAccountLink" name="my-account-link" after="authorization-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-orders-link-top" after="my-account-link" before="-">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountRegisterLink" name="register-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Create an Account</argument>
</arguments>
</block>
</referenceBlock>
magento2 toplinks
check here magento.stackexchange.com/q/222717/3368
– Supravat M
Dec 27 '18 at 5:42
it didn't worked
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:01
can you past your latest code here?
– Supravat M
Dec 27 '18 at 7:11
Above is my latest code
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:12
Did you check answer of magento.stackexchange.com/a/223927/3368
– Supravat M
Dec 27 '18 at 7:19
add a comment |
I want my top links in the order like:
- My Account
- My Wishlist
- My Orders
- Sign In
But I am getting like:
- My Account
- My Wishlist
- Sign In
- My Orders
Below is my code:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" before="my-account-link"
template="Magento_Customer::account/link/authorization.phtml"/>
<block class="MagentoCustomerBlockAccountLink" name="my-account-link" after="authorization-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-orders-link-top" after="my-account-link" before="-">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountRegisterLink" name="register-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Create an Account</argument>
</arguments>
</block>
</referenceBlock>
magento2 toplinks
I want my top links in the order like:
- My Account
- My Wishlist
- My Orders
- Sign In
But I am getting like:
- My Account
- My Wishlist
- Sign In
- My Orders
Below is my code:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" before="my-account-link"
template="Magento_Customer::account/link/authorization.phtml"/>
<block class="MagentoCustomerBlockAccountLink" name="my-account-link" after="authorization-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navigation-orders-link-top" after="my-account-link" before="-">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountRegisterLink" name="register-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Create an Account</argument>
</arguments>
</block>
</referenceBlock>
magento2 toplinks
magento2 toplinks
asked Dec 27 '18 at 5:26
Chethan Sreenivasa MurthyChethan Sreenivasa Murthy
12210
12210
check here magento.stackexchange.com/q/222717/3368
– Supravat M
Dec 27 '18 at 5:42
it didn't worked
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:01
can you past your latest code here?
– Supravat M
Dec 27 '18 at 7:11
Above is my latest code
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:12
Did you check answer of magento.stackexchange.com/a/223927/3368
– Supravat M
Dec 27 '18 at 7:19
add a comment |
check here magento.stackexchange.com/q/222717/3368
– Supravat M
Dec 27 '18 at 5:42
it didn't worked
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:01
can you past your latest code here?
– Supravat M
Dec 27 '18 at 7:11
Above is my latest code
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:12
Did you check answer of magento.stackexchange.com/a/223927/3368
– Supravat M
Dec 27 '18 at 7:19
check here magento.stackexchange.com/q/222717/3368
– Supravat M
Dec 27 '18 at 5:42
check here magento.stackexchange.com/q/222717/3368
– Supravat M
Dec 27 '18 at 5:42
it didn't worked
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:01
it didn't worked
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:01
can you past your latest code here?
– Supravat M
Dec 27 '18 at 7:11
can you past your latest code here?
– Supravat M
Dec 27 '18 at 7:11
Above is my latest code
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:12
Above is my latest code
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:12
Did you check answer of magento.stackexchange.com/a/223927/3368
– Supravat M
Dec 27 '18 at 7:19
Did you check answer of magento.stackexchange.com/a/223927/3368
– Supravat M
Dec 27 '18 at 7:19
add a comment |
1 Answer
1
active
oldest
votes
Try the below code instead of yours:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountLink" name="my-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountSortLinkInterface" name="customer-account-navigation-orders-link">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
<argument name="sortOrder" xsi:type="number">40</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" after="customer-account-navigation-orders-link-top"
template="Magento_Customer::account/link/authorization.phtml">
<arguments>
<argument name="sortOrder" xsi:type="number">10</argument>
</arguments>
</block>
</referenceBlock>
Flush the cache and test.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255876%2fmove-sign-in-to-bottom-in-my-top-links%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try the below code instead of yours:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountLink" name="my-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountSortLinkInterface" name="customer-account-navigation-orders-link">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
<argument name="sortOrder" xsi:type="number">40</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" after="customer-account-navigation-orders-link-top"
template="Magento_Customer::account/link/authorization.phtml">
<arguments>
<argument name="sortOrder" xsi:type="number">10</argument>
</arguments>
</block>
</referenceBlock>
Flush the cache and test.
add a comment |
Try the below code instead of yours:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountLink" name="my-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountSortLinkInterface" name="customer-account-navigation-orders-link">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
<argument name="sortOrder" xsi:type="number">40</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" after="customer-account-navigation-orders-link-top"
template="Magento_Customer::account/link/authorization.phtml">
<arguments>
<argument name="sortOrder" xsi:type="number">10</argument>
</arguments>
</block>
</referenceBlock>
Flush the cache and test.
add a comment |
Try the below code instead of yours:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountLink" name="my-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountSortLinkInterface" name="customer-account-navigation-orders-link">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
<argument name="sortOrder" xsi:type="number">40</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" after="customer-account-navigation-orders-link-top"
template="Magento_Customer::account/link/authorization.phtml">
<arguments>
<argument name="sortOrder" xsi:type="number">10</argument>
</arguments>
</block>
</referenceBlock>
Flush the cache and test.
Try the below code instead of yours:
<referenceBlock name="top.links">
<block class="MagentoCustomerBlockAccountLink" name="my-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="sortOrder" xsi:type="number">110</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountSortLinkInterface" name="customer-account-navigation-orders-link">
<arguments>
<argument name="path" xsi:type="string">sales/order/history</argument>
<argument name="label" xsi:type="string" translate="true">My Orders</argument>
<argument name="sortOrder" xsi:type="number">40</argument>
</arguments>
</block>
<block class="MagentoCustomerBlockAccountAuthorizationLink" name="authorization-link" after="customer-account-navigation-orders-link-top"
template="Magento_Customer::account/link/authorization.phtml">
<arguments>
<argument name="sortOrder" xsi:type="number">10</argument>
</arguments>
</block>
</referenceBlock>
Flush the cache and test.
answered Dec 27 '18 at 8:00
Sukumar GoraiSukumar Gorai
6,3953527
6,3953527
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255876%2fmove-sign-in-to-bottom-in-my-top-links%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
check here magento.stackexchange.com/q/222717/3368
– Supravat M
Dec 27 '18 at 5:42
it didn't worked
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:01
can you past your latest code here?
– Supravat M
Dec 27 '18 at 7:11
Above is my latest code
– Chethan Sreenivasa Murthy
Dec 27 '18 at 7:12
Did you check answer of magento.stackexchange.com/a/223927/3368
– Supravat M
Dec 27 '18 at 7:19