Home Forums Basel support forum SUBMENU MOBILE

SUBMENU MOBILE

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #65859

    yo2b
    Participant

    Hello,

    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?

    #65868

    Artem Temos
    Keymaster
    Xtemos team

    Hi,

    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

    #65905

    yo2b
    Participant

    Hi,

    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”.

    #65906

    Artem Temos
    Keymaster
    Xtemos team

    We 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.

    #65932

    yo2b
    Participant

    It works thanks!
    By the way, do you know where can I modify the popup by clicking on an add to cart?

    Regards,

    #65947

    Artem Temos
    Keymaster
    Xtemos team

    This 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

    #65948

    yo2b
    Participant

    I 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.

    #65970

    Hello,

    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

    #65985

    yo2b
    Participant

    Thanks 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?

    #66003

    Hello,

    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

    #66010

    yo2b
    Participant

    Hi,

    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 ?

    #66020

    Hello,

    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

    #66027

    yo2b
    Participant

    Hi,

    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,

    #66036

    Hello,

    Please provide the screen of the sting and translation. Can you find the string? Follow the video tutorial above step by step.

    Best Regards

    #66404

    yo2b
    Participant

    Hi,

    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.
    #66407

    Artem Temos
    Keymaster
    Xtemos team

    Please, send us your admin access so we can check your configuration.

    #66408

    yo2b
    Participant

    Logs are in Private Content tab.

    Thanks, Regards.

    #66409

    Artem Temos
    Keymaster
    Xtemos team

    Could 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.

    #66410

    yo2b
    Participant

    Done. Only one language is on but it don’t work.

    #66415

    Artem Temos
    Keymaster
    Xtemos team

    It seems that you already tried to translate it in the basel.pot file and broke the file. Please, restore our theme’s original languages/basel.pot file to make it work.

    #66427

    yo2b
    Participant

    Oh that’s it ! I did not see few pathfile possible to find the target file. It works now, thanks a lot !

    Regards,

    #66429

    Artem Temos
    Keymaster
    Xtemos team

    Great, you are welcome!

Viewing 22 posts - 1 through 22 (of 22 total)

The topic ‘SUBMENU MOBILE’ is closed to new replies.