Forum Replies Created
-
AuthorPosts
-
July 17, 2015 at 9:42 am in reply to: Replace standard search with WooCommerce product search? #474750
I’ve just tried this, and there are a few problems: The placeholder text doesn’t clear when clicked in the search box, and also the nice little magnifying glass icon is replaced by the word “search” which is too big for the button!
Any ideas please?
Great thank you Rikard!
Absolutely perfect!! Thanks so much Ismael. Please mark this as resolved :)
So close!! I’m really sorry to keep asking, it DOES work (I’ve tweaked it slightly) :
add_filter('avia_breadcrumbs', function() { ob_start(); wp_nav_menu( array('menu' => 'test submenu', 'menu_class' => 'av-subnav-menu av-submenu-pos-center')); return ob_get_clean(); });
But can I set the class as “socket color” I’ve tried but it didn’t look right (the links were still light)
Also, it can’t deal with a drop down, the menu disappears behind the main body of the page.
Also (and this is a cheeky request!) can we get it to appear above the breadcrumbs? It was in that position when I was using:
add_action('ava_after_main_container', 'ava_after_main_title_mod');
Thank you, I know I’m asking a lot but I would really appreciate this. Odds are, I’ll be using it on all my other sites too
Perfect! Thank you Josue.
Although Is there no way of setting a new menu location? I notice these are manual links, is there some way of setting a menu I’ve created in the admin?
- This reply was modified 9 years, 5 months ago by mikebackhouse.
Thanks Josue, that fixed it.
Although I didn’t realise, my previous example has knocked the left sidebar down below the main content.
add_action('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod'); function avia_breadcrumbs_trail_mod() { echo do_shortcode("[av_submenu which_menu='custom' menu='51' position='center' color='socket_color' sticky='aviaTBsticky' mobile='disabled'] [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style=''] [/av_submenu]"); }
And using Ismael’s example just breaks the whole site unfortunately.
add_action('avia_breadcrumbs_trail', 'ava_after_main_title_mod'); function ava_after_main_title_mod() { echo do_shortcode("[av_submenu which_menu='custom' menu='41' position='center' color='main_color' sticky='aviaTBsticky' mobile='disabled'] [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 3' link='manually,http://' linktarget='' button_style=''] [/av_submenu]"); }
What am I doing wrong?
- This reply was modified 9 years, 5 months ago by mikebackhouse.
Sorry, that’s not quite worked. This is a bit beyond me, I had to make one change to the following:
add_action('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod'); function avia_breadcrumbs_trail_mod() { echo do_shortcode("[av_submenu which_menu='custom' menu='51' position='center' color='socket_color' sticky='aviaTBsticky' mobile='disabled'] [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style=''] [/av_submenu]"); }
But I’m now getting the following errors:
Warning: array_pop() expects parameter 1 to be array, null given in /home/ACCOUNT/public_html/SITE/wp-content/themes/enfold/config-woocommerce/config.php on line 437
Warning: array_merge(): Argument #1 is not an array in /home/ACCOUNT/public_html/SITE/wp-content/themes/enfold/config-woocommerce/config.php on line 444
(although the menu IS showing at least!)
- This reply was modified 9 years, 5 months ago by mikebackhouse.
Love it! That works perfectly, thanks Ismael
Now, how do I get it to show on the woocommerce shop page and category description?
Thanks Andy, when adding the following shortcode (just as an example):
[av_submenu which_menu='custom' menu='41' position='center' color='main_color' sticky='aviaTBsticky' mobile='disabled'] [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style=''] [av_submenu_item title='Menu Item 3' link='manually,http://' linktarget='' button_style=''] [/av_submenu]
..to the “products” page (named “documents” on my site) the sidebar shifts to below the main content and the body gets cut short.
Screenshots:
No shortcode: http://snag.gy/QNmbN.jpg
With shortcode: http://snag.gy/V5bXN.jpgAnd basically the same thing happens when I add the shortcode to woocommerce product category description: http://snag.gy/iH8UL.jpg
- This reply was modified 9 years, 5 months ago by mikebackhouse.
Sorry Andy, I already tried that, that’s what I mean by
I tried creating it on a page, and grabbing the shortcode using the debug option, but it broke so many things when adding it to the category description
:)
Sorry, I must have not made sense. But yeah, unfortunately that didn’t work I’m afraid. Would it be possible in some way to set the submenu as a “menu location”? Then add pages etc.. to that via the wp menu options?
Ismael, I’m confused, I added the code you wrote at the start of this post into my quick css, and it worked perfectly. No need to add it to base.css (I did add !important for the icon, I don’t know if I needed to, but it’s working anyway!)
Sorry andy, I knew I would do something wrong! please try again
Brilliant! Thanks Andy.. details below
(Could you let me know what you did after? As I would like to do similar on another site I have)Hey all.
I’ve created a few websites with this theme now, and MAN I love it! I love the versatility, the fact that each site I’ve used it on looks different from the last.
My company’s site is http://www.ecdis.org
I’m so happy with how its come out, there’s been a reasonable amount of CSS tweaks and a LOT of plugins, but I got rave reviews from staff here when we went live with the site.
let me know what you think :)
Hi, I’m having the same issue.
I’ve been using the theme with no problem for months on another website, I’ve installed it on a new site (with only 3 plugins running currently) and same as Pete’s issue. Click the upload button and nothing happens.
I’m using the enfold child theme if that helps?
-
AuthorPosts