Home / Forums / Basel support forum / SUBMENU MOBILE
Home › Forums › Basel support forum › SUBMENU MOBILE
SUBMENU MOBILE
- This topic has 21 replies, 3 voices, and was last updated 7 years, 4 months ago by
Artem Temos.
-
AuthorPosts
-
July 3, 2018 at 4:24 pm #65859
yo2bParticipantHello,
I need a issue about the dropdown submenu in responsive view.
My menu works well but the dropdown is hidden on mobile.
Do you have a solution?
July 3, 2018 at 6:15 pm #65868
Artem TemosKeymasterHi,
Mega menu dropdowns built with HTML Blocks are supported by the main desktop menu only. You need to create a separate mobile navigation in Appearance -> Menus without HTML Blocks dropdowns.
Regards
July 4, 2018 at 7:17 am #65905
yo2bParticipantHi,
I already use a menu from Appearance -> Menus without HTML Blocks. In HTML Blocks there is nothing I use for my site. My menu is create in Appaerance -> Menus and 2 boxes are checked : “Main menu” and “Mobile side menu”.
July 4, 2018 at 7:33 am #65906
Artem TemosKeymasterWe mean that you need to create two separate menus: one for desktop and one for mobile devices. Currently, you are using one menu for both devices.
July 4, 2018 at 9:39 am #65932
yo2bParticipantIt works thanks!
By the way, do you know where can I modify the popup by clicking on an add to cart?Regards,
July 4, 2018 at 11:27 am #65947
Artem TemosKeymasterThis popup is built in JS files and you can’t override it in the child theme, unfortunately. You can check its code in the file
js/functions.js.Regards
July 4, 2018 at 11:33 am #65948
yo2bParticipantI replace the code like this in line 2983, js/functions.js
/** *------------------------------------------------------------------------------------------------------------------------------------------- * WooCommerce adding to cart *------------------------------------------------------------------------------------------------------------------------------------------- */ addToCart: function() { var that = this, timeoutNumber = 0; $('body').bind('added_to_cart', function(event, fragments, cart_hash) { if( basel_settings.add_to_cart_action == 'popup' ) { var html = [ '<div class="added-to-cart">', '<p>Ce produit à été correctement ajouté à votre panier</p>', '<a href="#" class="btn btn-style-link close-popup">Voir d\'autres produits</a>', '<a href="' + basel_settings.cart_url + '" class="btn btn-color-primary view-cart">Voir le panier</a>', '</div>', ].join("");However, I must have made a mistake because the translation is not ok.
July 4, 2018 at 12:49 pm #65970
Elise NoromitMemberHello,
You do not need to edit file for translation. You can translate all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3
Best Regards
July 4, 2018 at 2:10 pm #65985
yo2bParticipantThanks to your response. Unfortunately, any solutions work. I install this Logo Translate plugin and manage this one, but it does not work.
I really don’t understand… all other translation works well when i modify in theme folder basel/inc/template-tags.php,shortcodes.php, etc…
Do you know where the problem emplacement?
July 4, 2018 at 3:52 pm #66003
Elise NoromitMemberHello,
Enter the Loco plugin in the Dashboard http://prntscr.com/k2im6e
Choose the theme if you want to rewrite/translate theme string and go to plugins if you need to translate a plugin
Add new language http://prntscr.com/k2imyu enter the language http://prntscr.com/k2inma and find the phrase: http://prntscr.com/k2io6z take into consideration that one word can be used in several phrases try and save and check.
If you have any problems contact.
Best Regards
July 4, 2018 at 4:35 pm #66010
yo2bParticipantHi,
I did all you say. But it no works again. I delete my cache et check this on differents browsers…
I don’t know if eventually i can give you logs ?
July 4, 2018 at 6:05 pm #66020
Elise NoromitMemberHello,
Did you modify the files? If you translated anything in files, get back to the initial state.
What phrase are you trying to rewrite?
Best Regards
July 4, 2018 at 7:03 pm #66027
yo2bParticipantHi,
The functions.js file is by default. I need to translate thoses sentences :
“PRODUCT WAS SUCCESSFULLY ADDED TO YOUR CART.
Continue Shopping – VIEW CART”When you add a product to cart there for example : http://edev-multimedia.com/kalliste-cosmetiques/huiles-essentielles-eaux-florales/huiles-vegetales/
The Loco Translate plugin is correcty configured.
Thanks,regards,
July 4, 2018 at 8:16 pm #66036
Elise NoromitMemberHello,
Please provide the screen of the sting and translation. Can you find the string? Follow the video tutorial above step by step.
Best Regards
July 6, 2018 at 9:00 am #66404
yo2bParticipantHi,
Please, check the Attachment, its the screen of the block. I follow all solutions, any works.
The code in functions.js is OK, the plugin translation is OK.
If this is not possible, atleast just redirect to Cart without this popup. I think is possible anyway
Thanks a lot, regards.
Attachments:
You must be logged in to view attached files.July 6, 2018 at 9:01 am #66407
Artem TemosKeymasterPlease, send us your admin access so we can check your configuration.
July 6, 2018 at 9:06 am #66408
yo2bParticipantLogs are in Private Content tab.
Thanks, Regards.
July 6, 2018 at 9:10 am #66409
Artem TemosKeymasterCould you please remove unnecessary translations files and leave only one where you have all the translated words https://gyazo.com/e9bf1945ad54cc598e04ab4547c6cae2 ? It will not work if you have multiple files there.
July 6, 2018 at 9:17 am #66410
yo2bParticipantDone. Only one language is on but it don’t work.
July 6, 2018 at 9:30 am #66415
Artem TemosKeymasterIt seems that you already tried to translate it in the
basel.potfile and broke the file. Please, restore our theme’s originallanguages/basel.potfile to make it work.July 6, 2018 at 9:48 am #66427
yo2bParticipantOh that’s it ! I did not see few pathfile possible to find the target file. It works now, thanks a lot !
Regards,
July 6, 2018 at 9:49 am #66429
Artem TemosKeymasterGreat, you are welcome!
-
AuthorPosts
The topic ‘SUBMENU MOBILE’ is closed to new replies.
- You must be logged in to create new topics. Login / Register