Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #336296

    Hi, I’m developing a new web with this theme and I found 3 problems.

    1) I instaled the WPML plugin, all works fine but the languaje switcher only shows the flags. I set the language switcher style to List of languages (horizontal), but didn’t work.

    2) I would modify the /includes/helper-main-menu.php file to show an extra links in the top of the page, but I’m trying to refer that flie in the child theme. Is ti possible? I tried some php line quith a require parameter but didn’t work.

    3) Since I update to the last version and set the width of the content to 1130px, all works fine but the header (logo and nav) that don’t works the padding and seems wide than the rest of the content.

    Could you help me?

    #336549

    Hi izquierdomasmotter!

    Thank you for using Enfold.

    1.) Please add this on functions.php to use the default WPML language switcher:

    add_action('after_setup_theme','avia_remove_main_menu_flags');
    function avia_remove_main_menu_flags(){
            remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }

    2.) Yes, you can copy the includes folder plus the file then modify it there.

    3.) Please add this on Quick CSS or custom.css:

    .avia-menu.av-main-nav-wrap {
    float: right;
    }
    
    div .logo {
    float: left;
    position: relative;
    left: 0;
    }
    
    .main_menu {
    position: relative;
    }

    Best regards,
    Ismael

    #336643

    Hi Ismael,

    Thank you so much, the 2 and 3 questions works perfect, but about the 1st question, I put the code in functions.php (enfold child) but now the switcher desapears.

    #337182

    Hi!

    You need to configure the default flag options on WPML > Language switcher options. Attach it to the main menu.

    Regards,
    Ismael

    #339413
    This reply has been marked as private.
    #339892

    Hi!

    Thank you for the info.

    Try switching the menu as Enfold Main Menu on Appearance > Menus > Theme Location. If it doesn’t work, please post the login details here. Set it as a private reply.

    Cheers!
    Ismael

    #339958
    This reply has been marked as private.
    #340455

    Hey!

    Did you add any modifications on the child theme? I can’t see the child theme code because the Appearance > Editor is missing. Please set the Frontpage and Blog page using the theme options. Reset the Settings > Reading to default.

    Regards,
    Ismael

    #340518
    This reply has been marked as private.
    #340890

    Hey!

    I’m referring to the Appearance > Editor panel. It’s not visible. Please check. I’m not sure why it’s not working on your installation. Tested the code on my end and it works fine. I’ll ask Dude to take a further look.

    Cheers!
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.