Forum Replies Created
-
AuthorPosts
-
Try this
function my_theme_setup() { add_filter('wp_list_pages', 'new_nav_menu_items'); add_filter('wp_nav_menu_items', 'new_nav_menu_items'); } add_action('after_setup_theme', 'my_theme_setup'); function new_nav_menu_items($items){ if (function_exists('icl_get_languages')){ $languages = icl_get_languages('skip_missing=0'); if (count($languages) > 1){ foreach ($languages as $l) { if (!$l['active']) { $items .= "<li class='menu-item menu-item-language'>"; $items .= "<a href='{$l['url']}'>"; $items .= $l['native_name']; $items .= "</a></li>"; } } } } return $items; }
I did start with the Minimal Portfolio as the base.
I know many use contact forms, but most of my clients actually come via personal reference and thus my contact information suffices.
I like Contact Forms in general, but sometimes they don’t work, so I prefer not to rely on them. =)
I recently redid my website in a clean minimalist style, using te Enfold theme (v 3.8), WPML for the dual languages and some moderate custom CSS styling – especially for the mobile menu.
Check it out if you wish:
All,
I also initially had trouble getting the burger menu options to work, and later, having my menu populate the new Burger Menu.
After reuploading the 3.8 version of the theme, I also resaved the Permalinks. That did it for me.
I had some issues with the solution provided for having the new Burger Menu available for mobile as well. In particular, even though the top menu was set as “Transparent”, it would still show a white menu at the top…with the white icons on top. Of course, white on white is…difficult to see.
The mobile/searc menus were also displaced from their location, so I combined an earlier solution for the “Transparent Header on Mobile” with this Burger Menu on Mobile solution…and added some z-index and absolute position for mobile so that the open close icon stays in the same spot.
Try this:
@media only screen and (max-width: 767px) { .main_menu .avia-menu { display: block !important; position: absolute; top: 0em; right: 0em; } #advanced_menu_toggle { display: none !important; } } @media only screen and (max-width: 767px) { #top #wrap_all .av_header_transparency, .av_header_transparency #advanced_menu_toggle { background: transparent!important; position: absolute!important; } }
- This reply was modified 8 years, 3 months ago by castellanero.
-
AuthorPosts