Tagged: One Page Portfolio, Single Page
-
AuthorPosts
-
October 25, 2015 at 2:16 pm #524392
Hello,
I’m using One page portfolio template as a base for my site, but I have few Single pages, and on those pages I have use Zen Menu Logic plugin – https://wordpress.org/plugins/zen-menu-logic/ but I don’t see how to add ‘Search’ button on that custom menu, to have it like on my Home page?
Thanks,
DjukaOctober 25, 2015 at 11:34 pm #524562Hey bogosavljev!
Can you please provide us a username / password so we can give it a look?
Regards,
BasilisOctober 25, 2015 at 11:39 pm #524568Hello,
I have add link and login credentials in Private content.
Thanks,
DjukaOctober 27, 2015 at 6:47 am #525340Hi!
How can we login to the site? I tried the link above “db-login” but it redirects me to the coming soon page. The wp-admin and wp-login is not working either. Instead of the zen menu plugin, use this instead: https://wordpress.org/plugins/menu-items-visibility-control/
Create only one menu which includes all menu items for all pages then use conditional functions to control the visibility of the menu items.
Best regards,
IsmaelOctober 27, 2015 at 11:15 am #525410Hello,
please check WordPress admin link in Private section again, it’s working for me, but there is restricted time for access. There is forbidden access between 12am – 6am, so you can login after 6am until midnight.
Go ahead and install that plugin and make example on one page.
Thanks,
DjukaOctober 27, 2015 at 7:06 pm #525749Hi,
How to include search button in menu?
Issue is when I’m on for example on Events page that menu gets sub page in URL.October 29, 2015 at 6:41 pm #527073Any chance to get answer or help on this question?
Thanks,
DjukaNovember 1, 2015 at 12:21 am #528019Hi Djuka,
Try putting the full URL instead of just the #anchor. Regarding including the search on mobile menu – https://kriesi.at/support/topic/mobile-search-bar/
Cheers!
JosueNovember 1, 2015 at 1:09 pm #528087Hi Josue,
I see that you didn’t look into this problem in detail, so you write automated answer from your FAQ…
Please check my site in detail. How to add search button in custom navigation menu? (I don’t need it for mobile)
Thanks!
DjukaNovember 1, 2015 at 7:05 pm #528156Where’s your custom menu on the site? i’m not seeing it here.
November 2, 2015 at 12:15 am #528193Main Menu is replaced with Zen Menu Logic plugin, and I need to add search button, which is missing. Check under Appearance -> Menus options
Compare with this page: http://bogosavljev.com/homepage/home-v7-one-page-portfolio/
November 2, 2015 at 12:22 am #528196Try the following: open /functions-enfold.php, look for the
avia_append_search_nav
function and remove this conditional:if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu")) { .... }
Regards,
JosueNovember 3, 2015 at 10:41 pm #529644Hello Josue,
I want to ADD Search button, NOT to remove it. I want to have it like on this page – http://bogosavljev.com/homepage/home-v7-one-page-portfolio/
Here is missing:
http://bogosavljev.com/testimonials/Thanks,
DjukaNovember 5, 2015 at 2:25 am #530480Hi,
Can you please create me a WordPress administrator account? the one you posted in the first post doesn’t seem to work.
Regards,
JosueNovember 5, 2015 at 10:32 am #530643Hello Josue,
Try this one.
November 6, 2015 at 11:18 am #531391Ok, i added the following code to your child theme functions.php:
if(!function_exists('avia_append_search_nav')) { //first append search item to main menu add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 ); add_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 10, 2 ); function avia_append_search_nav ( $items, $args ) { if(avia_get_option('header_searchicon','header_searchicon') != "header_searchicon") return $items; if(avia_get_option('header_position', 'header_top') != "header_top") return $items; global $avia_config; ob_start(); get_search_form(); $form = htmlspecialchars(ob_get_clean()) ; $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown"> <a href="?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a> </li>'; return $items; } }
That will override the parent
avia_append_search_nav
function and it will make sure to append the search icon to all menus regardless of location.Regards,
JosueNovember 6, 2015 at 11:20 am #531392OK, thanks!
And on mobile search button is excluded right?
November 7, 2015 at 8:53 pm #531927By default yes, there are some ways around it though.
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.