Tagged: my account
-
AuthorPosts
-
September 2, 2015 at 12:13 pm #497006
Hi Guys!
how are you today?
i would like to take off the normal menu links till 1024 px resolution, and keep the mobile menu. than use an icon on the line above the header (normally used for phone number) as a link for “my account”, one icon for search and the cart icon.
There’s a way to do it?
Thanks a lot for your precious help!!!
cheers
MarioSeptember 2, 2015 at 2:49 pm #497141Hey Mario!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
@media only screen and (max-width: 1024px) { #mobile-advanced, #advanced_menu_toggle, #advanced_menu_hide { display: block; } nav.main_menu { display: none; }}
then change 1024px to needed value
Regards,
YigitSeptember 2, 2015 at 3:41 pm #497193Hi Yigit, thanks for your support.
that’s the way to hide the menu links.. but now we need to display again:
– cart icon
– my account icon (probably an icon similar to a facebook no profile picture)
– search iconthere’s a way to do it?
thanks a lot Yigit!
Cheers
Mario
September 3, 2015 at 7:21 am #497509Hi!
Can you please provide a screenshot? Use imgur or dropbox. You can modify the includes > helper-main-menu.php file if you want to add more elements inside the header.
Cheers!
IsmaelSeptember 3, 2015 at 10:00 am #497544Hi Ismael,
Thanks for your help but
I really don’t know how to change that file.I give you the link to the header sample screenshot i would like to create.
Look only the right side of the header.
Here’s the link.
Cheers!
Mario
September 4, 2015 at 9:28 am #498165Hi!
This kind of layout is a bit too different from the default theme setup so it will require more than a few modifications. First, try to display the cart icon on mobile with this in the Quick CSS field:
@media only screen and (max-width: 1024px) { nav.main_menu { display: block; } .avia-menu { display: none; } .html_header_top #menu-item-shop.cart_dropdown { right: -80px; } }
Add this in the functions.php file to add the account icon:
// add account icon add_action('ava_after_main_menu', function() { echo "<a class='mobile-account' href='#'><img src='ACCOUNT IMAGE URL'></a>"; });
In the Quick CSS field, add this afterwards:
@media only screen and (min-width: 1024x) { .mobile-account { display: none; } }
The code above will hide the account icon on desktop view. You can use additional css properties to adjust the position and style of the icon. Note that you need to create your own icon image, use that url in place of the “ACCOUNT IMAGE URL”.
Regards,
IsmaelSeptember 4, 2015 at 10:28 am #498204Good Morning Ismael!
thanks for your excellent post!
I’m gonna try now to modify the code you gave me, but i’ve just a question:
– can i use the account icon on entypo-fontello already included on my theme, without use an URL?
– is not possible show them above the header (where usually are social icons)?
Thanks a lot!
Mario
- This reply was modified 9 years, 3 months ago by Mario.
September 6, 2015 at 3:02 am #498778Hi!
Replace the code in functions.php if you want to use the icon font:
// add account icon add_action('ava_after_main_menu', function() { echo '<a class="mobile-account" href="#"><span class="av_font_icon avia_animate_when_visible av-icon-style- av-no-color avia-icon-pos-left avia_start_animation avia_start_delayed_animation" style=""><span class="av-icon-char" style="font-size:40px;line-height:40px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span></span></a>'; });
I’m sorry but I don’t see why you have to add it above the header? According to the screenshot, you want to align the icons on a single file.
Cheers!
IsmaelSeptember 6, 2015 at 1:02 pm #498854Hi Ismael,
thanks for your solution. As you can see on the screenshot the icon is under the logo..
I would like to have it as the right image on the screenshot. is it possible? the best solution is put these icons on the space dedicated to social icons. cause i don’t use them on the mobile version on the top of the header.
thanks a lot for your precious help!
cheers
Mario
- This reply was modified 9 years, 3 months ago by Mario.
September 9, 2015 at 10:10 am #500270Hi!
I can’t see the the account icon on your website. Where is it? we need to inspect the element to be able to provide you some precise CSS code.
Cheers!
AndySeptember 10, 2015 at 9:04 pm #501309Ok Andy,
i set again your code so you can check it out.
I would like to have the my account icon at the right side of the header, above the menu button, replacing the social icon.
Thanks a lot!
Mario
September 11, 2015 at 3:56 pm #501729Hi!
I still can’t see any account icon. Where is it? at the right side of your header? but social icons are on the left side. So where exactly? A mockup would help a lot …
Best regards,
AndySeptember 11, 2015 at 3:58 pm #501733Hi Andy,
on MOBILE VERSION AND ONLY ON MOBILE, the icon is under the logo, cyan color.
please try again , i can see it perfectly.check the image attached please
Thanks a lot!Mario
- This reply was modified 9 years, 3 months ago by Mario.
September 12, 2015 at 4:16 am #501938Hi!
You modified the header layout again. I think you should plan the header design prior to posting inquiries. It will save you more time. Try to use this in the Quick CSS field to move the account image around:
.mobile-account { position: absolute; top: -18px; right: 120px; }
Regards,
IsmaelSeptember 12, 2015 at 9:30 am #502020Hello Ismael,
ok now is on line with all the elements, that’s better! do you think is it possible fix it at the right side of the flag? on the top of the header , REPLACING SOCIAL ICONS. i would like to have it into the space dedicated to the social icons, not in the header with the menu. is it possible ?
Thanks for your precious help!
Cheers
Mario
- This reply was modified 9 years, 3 months ago by Mario.
September 14, 2015 at 7:09 am #502497Hi!
You can replace the action hook “ava_after_main_menu” with “avia_meta_header”. It will render the account icon inside the “top bar” instead of the “main menu container”.
Cheers!
IsmaelSeptember 16, 2015 at 1:57 pm #504087hi Ismael,
thanks i did it but the icon disappear and no way to show it on the top bar.
do i have to add some css code to position it?
thanks for your help
Mario
September 17, 2015 at 4:16 am #504474Hey!
Please replace the code in the functions.php file with this:
// add account icon add_action('avia_meta_header', function() { echo '<a class="mobile-account" href="#"><span class="av_font_icon avia_animate_when_visible av-icon-style- av-no-color avia-icon-pos-left avia_start_animation avia_start_delayed_animation" style=""><span class="av-icon-char" style="font-size:40px;line-height:40px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span></span></a>'; });
You can use the same css selector to adjust the position of the icon.
.mobile-account { position: absolute; top: 0; right: 120px; }
Adjust the values.
Best regards,
IsmaelSeptember 17, 2015 at 2:20 pm #504791Hi Ismael,
thanks but nothing works.
it disappear completely.
what’s wrong?
September 19, 2015 at 6:52 am #505870Hi!
We modified the code in the functions.php file a bit. Please remove browser cache then reload the page: http://www.rewavelab.com/
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.