-
AuthorPosts
-
May 21, 2015 at 4:05 pm #447790
Dear Kriesi,
We want to add a Currency Switcher (maybe https://wordpress.org/plugins/woocommerce-currency-switcher/)
Documentation at http://currency-switcher.com/documentation/#!/section_3
It has is own shortcode [woocs show_flags=1 width=’300px’ flag_position=’right’]
or can be put as widget in any sidebar
I would like instead to place it in the Header Secondary Menu or, if not possible, in the Main header area.
How can I do it?
Thank you Mauro
May 22, 2015 at 5:44 pm #448512Hi profumopuntoit!
You can do this, http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/, to add a widget area to your header.
Send us a link to your page after your done and let us know where you want to position it and we’ll give you some CSS to use.
Regards,
ElliottMay 22, 2015 at 6:43 pm #448545Dear Elliott
Thank you very much.
This is a link to our website http://goo.gl/5ngTJv
Actually I would like to have the widget in the Header Secondary Menu on the left of Account Login. If it not possible I may move the Header Social Icons to the Header Secondary Menu and I would like the switch at the left of the cart icon
Please see http://www.profumo.it/main-header.PNG and http://www.profumo.it/secondary.PNGThank you Mauro
May 22, 2015 at 7:09 pm #448554Now widget is where it is using:
#header .widget {
padding-top: 0;
position: absolute;
top: 0;
transform: translate(-50%);
}May 25, 2015 at 1:59 pm #449503Hey!
Please add following code to Quick CSS
#header_meta { z-index: 3; } #header .widget { top: -147px; left: 55px; }
Cheers!
YigitJune 9, 2015 at 5:57 pm #456831Thank you Jigit
But in this way it is not responsive: will completely disappear when browsing from a mobile.
Actually I would like to have it at the right of the Secondary Menu in the top bar not in the main header. Is it possible?
(PS: we changed plugin, now we use “Currency Switcher for WooCommerce”)
June 10, 2015 at 4:23 pm #457325Hey!
To move the Woocommerce cart to the top right of your page then try this out.
@media screen and (max-width:767px) { .responsive #top .cart_dropdown { right: -34px !important; top: -55px !important; } }
If that’s not what your wanting to do either then take a screenshot and highlight exactly what your trying to do so we can get a better idea.
Cheers!
ElliottJune 10, 2015 at 4:50 pm #457355Thank you but I don’t see any change. I cannot see the currency switch on my mobile (5 inches Android 4.4.2 )
For a desktop you can refer to the screenshot posted earlier. Please see http://www.profumo.it/main-header.PNG and http://www.profumo.it/secondary.PNG
For a mobile in one of the two position indicated in http://www.profumo.it/android.PNGThank you
MauroJune 11, 2015 at 5:22 pm #457927Hey!
To move the currency switcher to the right hand side then use this CSS.
#header .widget { position: absolute; right: 80px; top: -90px; width: auto; z-index: 9999 !important; }
To get it to display on mobiles add this.
@media screen and (max-width:767px) { #header_main_alternate { display: block !important; } nav.main_menu { display: none !important; } }
Best regards,
ElliottJune 11, 2015 at 6:49 pm #457975Thank you Elliott,
very good on a desktop but stays just over the logo on mobile
I added left and top position like this:
#header .widget {
position: absolute;
right: 90px;
top: -90px;
width: auto;
z-index: 9999 !important;
}
@media screen and (max-width:767px) {
#header_main_alternate { display: block !important; }
nav.main_menu { display: none !important; }
#header .widget {
position: absolute;
left: -10px;
top: -130px;
width: auto;
z-index: 9999!important;
}}but element remain under secondary top bar
I tried with
position:relative;
z-index: 0!important;
but not helpingThank you Mauro
June 12, 2015 at 7:29 am #458206Hi!
Where do you want to place the currency switcher on mobile screens? If you want it below the header, adjust the top position:
@media screen and (max-width: 767px) { #header .widget { left: -10px; top: 0px; }}
Remove browser cache then reload the page.
Best regards,
IsmaelJune 12, 2015 at 11:13 am #458286I would be grateful to receive suggestion in where to place it.
One of the points where Prestashop is really superior to WooCommerce is that is multi-currency and multi-language out of the box.
Your theme is the state of the art of WooCommerce themes. If you will look after how to programmatically place this elements (currency menu and language flags), you will fill a very important gap.As I said before for a mobile I would like to have it in one of the two position indicated in http://www.profumo.it/android.PNG
If I try the suggested code dropdown menu is invisible
@media screen and (max-width: 767px) {
#header .widget {
left: -10px;
top: 0px;
}}I am close to what I want with
@media screen and (max-width:767px) {
#header_main_alternate { display: block !important; }
#header .widget {
left: 220px;
top: -120px;
}}top should be something around
top: -150px;
but if I move it up there it will disapper below secondary top barPlease see http://www.profumo.it/andr.PNG
Thank you Mauro
June 13, 2015 at 10:01 am #458719Hi!
Please try this:
@media screen and (max-width: 767px) { #header_main { z-index: 50; } .widget_wc_aelia_currencyswitcher_widget select#aelia_cs_currencies { font-size: 11px; height: 25px; } @media screen and (max-width: 767px) #header .widget { left: 0px; top: -140px; width: 100px; } }
The code should position the widget above the logo, beside the “Account” menu item.
Cheers!
IsmaelJune 15, 2015 at 11:26 am #459221Thank you Ismael
Yes like this goes above the logo but UNDER secondary top bar and thus becoming invisible.
I tried also with different z-index directives like
@media screen and (max-width: 767px)
#header .widget {
left: 0px;
top: -140px;
width: 100px;
z-index: 9999 !important;
}
}
Thank you MauroJune 16, 2015 at 9:02 am #459897Hi!
The #header_main’s z-index should take care of that. Please test the code above. Remove browser cache then reload the page.
Cheers!
IsmaelJune 16, 2015 at 11:11 am #459955Dear Ismael,
I disabled W3 Total Cache, I emptied the cache in my two browser in my mobile (Chrome and Firefox) but I cannot see it. Do you?June 16, 2015 at 7:53 pm #460330Hey!
Please add following code to Quick CSS as well
@media only screen and (max-width: 767px) { .main_menu .avia-menu, #header_main_alternate, .fallback_menu { display: block; } nav.main_menu { display: none; } .widget_wc_aelia_currencyswitcher_widget select#aelia_cs_currencies { height: 35px; }}
Regards,
YigitJune 17, 2015 at 10:37 am #460615Dear Yigit
Same result like before, with this code switch sits over the logo, if I try to move it where I want it goes under top bar element.
Shall I give you login credentials?
Thank you MauroJune 17, 2015 at 6:58 pm #460917June 17, 2015 at 7:13 pm #460927This reply has been marked as private.June 18, 2015 at 7:25 pm #461533Hi!
Changes are done. I have added additional custom CSS to bottom of Quick CSS field. Please review your website now.
Best regards,
YigitJune 19, 2015 at 12:29 pm #461826That’s great. Thank you Yigit
June 19, 2015 at 1:47 pm #461856 -
AuthorPosts
- The topic ‘WooCommerce Currency Switcher’ is closed to new replies.