
-
AuthorPosts
-
October 15, 2014 at 6:10 pm #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?
October 16, 2014 at 6:30 am #336549Hi 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,
IsmaelOctober 16, 2014 at 9:22 am #336643Hi 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.
October 17, 2014 at 6:54 am #337182Hi!
You need to configure the default flag options on WPML > Language switcher options. Attach it to the main menu.
Regards,
IsmaelOctober 22, 2014 at 9:36 am #339413This reply has been marked as private.October 23, 2014 at 2:25 am #339892Hi!
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!
IsmaelOctober 23, 2014 at 9:14 am #339958This reply has been marked as private.October 24, 2014 at 6:00 am #340455Hey!
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,
IsmaelOctober 24, 2014 at 9:16 am #340518This reply has been marked as private.October 25, 2014 at 4:54 am #340890 -
AuthorPosts
- You must be logged in to reply to this topic.