Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Adding drop-down menu to an Account (on header)
New Landing › How can we help? › Atelier › Adding drop-down menu to an Account (on header)
- This topic has 17 replies, 5 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Atelier
-
November 28, 2015 at 6:12 pm #231966
Hi,
I’m one of happy users who’s building my website with atelier theme.
I’m wondering if I can add a menu(page?) in the account menu on header. I’d like to link this drop-down menu which is called ‘track my order’ to a tracking page.
Please let me know how can I make it.
(please check the attachment)Thanks
idAttachments:
You must be logged in to view attached files.November 30, 2015 at 5:58 pm #232229Hi,
Unfortunately that is not as easy to build as other menu items. You will need to active your atelier child theme, within it’s
functions.php
file you will need to add this to override the defaultsf_aux_links()
function : http://pastie.org/private/tw2aav6tfcpqaismp6spg.Within that function, you will see this:
$aux_links_output .= '<li><a href="' . $my_account_link . '" class="admin-link">' . __( "My Account", "swiftframework" ) . '</a></li>' . "\n";
Directly beneath that, you can add your links. Ex:
$aux_links_output .= '<li><a href="mydomain.com/custom-url" class="admin-link">' . __( "MY CUSTOM LINK TEXT", "swiftframework" ) . '</a></li>' . "\n";
Thanks.
November 30, 2015 at 9:54 pm #232284Hi David,
Thanks for your reply.
I’ve followed your direction. (had put that script in the child theme’s functions.php file, added my link and changed text too.)
Could you please check the script again?
Many thanks
idDecember 2, 2015 at 12:03 pm #232656Please add your WP URL and login details.
Thanks.
December 2, 2015 at 8:12 pm #232870This reply has been marked as private.December 3, 2015 at 5:59 pm #233158Hey,
You have not installed or activated the child theme?
– David.
December 3, 2015 at 6:13 pm #233160This reply has been marked as private.December 3, 2015 at 6:31 pm #233161You have not added the code I provided. Please re-read over the above: http://www.swiftideas.com/forums/topic/adding-drop-down-menu-to-an-account-on-header/#post-232229.
Thanks.
December 3, 2015 at 6:45 pm #233164This reply has been marked as private.December 7, 2015 at 11:38 am #233621Hey,
No problem, I have updated your child theme and the link is now being output.
Please take a look and let me know how that looks for you.
Thanks.
December 7, 2015 at 1:23 pm #233661Hi David,
It works beautifully and perfectly :>
Thank you so very much!Have a great week David!
Thanks,
idDecember 7, 2015 at 1:28 pm #233663Great, no problem – happy to help you.
Thanks.
February 16, 2016 at 12:26 pm #249540How do I add the track your order page to the user menu?
I already set up a page with [woocommerce_order_tracking] shortcode, just the need the snippet to add to my childtheme function.php i guess?
February 17, 2016 at 12:30 pm #249928@JackV this post details that: http://www.swiftideas.com/forums/topic/adding-drop-down-menu-to-an-account-on-header/#post-232229.
Thanks.
February 25, 2016 at 9:04 pm #252108Greetings,
I was wondering – can I have the Account Menu translated via the child-theme’s function.php
something like:
$aux_links_output .= '<li><a href="' . $my_account_link . '">' . __( "My Account", "swiftframework" ) . '</a></li>' . "\n"; if ( if get locale() ) == 'bg_BG' ) { $aux_links_output .= '<li><a href="/bg/moiya-account">' . __( "MY CUSTOM LINK TEXT", "swiftframework" ) . '</a></li>' . "\n";
Or is there another way to have it translate?
I am using Polylang & Loco Translate, but I can’t find these string to translate. I mean I did in Loco translate bu putting as a translating not just the word but with
<a href="url to menu">my translated menu name</a>,
but this thing broke a few things in the theme.I would really appreciate it if you can help me with this.
Thanks!
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.