Tagged: font
-
AuthorPosts
-
February 28, 2021 at 1:08 am #1284191
Hi,
You can have the Logo and Main Menu set as a sidebar in the theme options:
Here is an example of a demo with this option.
To have a similar “expanding” menu, on this demo, on hover, this css could be used:.av-main-nav ul { position: relative !important; } .html_header_left .av-main-nav ul { left: unset !important; } .av-main-nav li ul.sub-menu li { display: none; } .av-main-nav li:hover ul.sub-menu li { display: block; } .av-main-nav ul li a { border-style: none !important; border-width: 0 !important; }
I believe you could have a much more similar menu to the example site with some more time, css, and some jQuery, but I think it would be more involved than our scope of support here.
Perhaps a alternative would be to look for a plugin.
Another possible solution for a expanding sidebar menu would be to use the “navigation menu” widget and select a menu, the default way this widget displays a menu is as a list:
and with this script added this code to the end of the functions.php file in Appearance > Editor:function custom_widget_menu_dropdown(){ ?> <script> (function($){ $(document).ready(function(){ $('#nav_menu-3 #menu-main-menu > li.menu-item-has-children').find('ul').hide(); $('#nav_menu-3 #menu-main-menu > li.menu-item-has-children').mouseenter(function () { $('#nav_menu-3 #menu-main-menu > li.menu-item-has-children').not(this).find('ul').hide(); $(this).find('ul').toggle(); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_widget_menu_dropdown');
please note the nav_menu-3 in the code above may need adjusting, but the result is a collapsed menu that will expand on hover:
Just a thought.Best regards,
MikeMarch 1, 2021 at 10:39 pm #1284582Hummmm
I imagined that this would be more complicated.
I’ll try something and let you know, ok?
Maybe the plugin is the best option …How can I add the search icon using the menu like this?
When I switch to the left menu layout, the search bar (icon) disappears.March 1, 2021 at 10:41 pm #1284583I added an extra widget with the search feature but I wish I could have the same thing as the menu on top has.
March 3, 2021 at 2:38 pm #1285033Hi,
Please ensure that the option at Enfold Theme Options > Main Menu > General > Append search icon to main menu is enabled when your menu is set to the left.
If this is enabled please set the menu to the left as you would link it and include admin login in the Private Content area so we can check what is hiding the search icon.Best regards,
MikeMarch 5, 2021 at 1:05 am #1285573For now, we’ll keep the menu on top. It’s safer …
I’ve placed the search feature as a widget on our sidebar, but how can I have the same behaviour? I wish I could see the same thing when results show while you’re typing. How can I have this?
Header Search: https://snipboard.io/8zLC3O.jpg
Sidebar search: https://snipboard.io/YmMN2h.jpg
Thank YOU!!!!!March 5, 2021 at 1:51 pm #1285727Hi,
To use the Ajax search in a widget sidebar, please add this shortcode to a custom HTML widget:
[avia_sc_search placeholder='Search...' label_text='SEARCH' icon_display='input' icon='ue803' font='entypo-fontello']
The expected results:
In my test I found that the option: Enfold Theme Options > Performance > Disable Template Builder Elements > Always load all elements needed to be enabled:
Best regards,
MikeMarch 5, 2021 at 7:17 pm #1285887This is great! Super cool!!!!
But how can I display only the icon instead of the “search” text on the button? Like we have in our top header …
Thank YOU!March 5, 2021 at 8:17 pm #1285917I wish I could display it the same way the default search does:
https://snipboard.io/Snmre0.jpg
It would be perfect!March 6, 2021 at 5:41 pm #1286084Hi,
I adjusted the shortcode based on the Enfold Knowledgebase demo example:[avia_sc_search placeholder='How can we help you today?' label_text='SEARCH SITE' icon_display='input' icon='ue803' font='entypo-fontello' post_types='' display='ajax' ajax_location='form_absolute' ajax_container='#my_container' numberposts='5' results_hide_titles='aviaTBresults_hide_titles' results_hide_meta='aviaTBresults_hide_meta' custom_input_size='' custom_button_size='' custom_height='68' radius='100px' radius_sync='true' border_width='12' results_padding='50px' results_padding_sync='true' results_margin='20px,0,0,0' border_color='custom' custom_border_color='rgba(255,255,255,0.64)' input_bg='custom' custom_input_bg='rgba(255,255,255,0.64)' button_bg='custom' custom_button_bg='#1ddab8' results_bg='custom' custom_results_bg='#ffffff' input_color='' custom_input_color='#1ddab8' button_color='' custom_button_color='' results_color='' custom_results_color='' av_uid='av-3jk7' custom_class='' admin_preview_bg='']
I’m posting this shortcode here for future reference, should someone wish to adjust it further.
To have a default look for the Ajax search, depending on any base demo that you might be using, with an ajax popup:[avia_sc_search placeholder='Search...' label_text='' icon_display='button' icon='ue803' font='entypo-fontello' post_types='' display='ajax' ajax_location='form_absolute' ajax_container='#my_container' numberposts='5' results_hide_titles='aviaTBresults_hide_titles' results_hide_meta='aviaTBresults_hide_meta' border_width='1' radius='0px' radius_sync='true' results_padding='50px' results_padding_sync='true' results_margin='20px,0,0,0' results_bg='custom' custom_results_bg='#ffffff' results_color='' custom_results_color='' av_uid='av-2aeoak']
To have a default look for the Ajax search without an ajax popup:[avia_sc_search placeholder='Search...' label_text='' icon_display='button' icon='ue803' font='entypo-fontello' post_types='' numberposts='5' results_hide_titles='aviaTBresults_hide_titles' results_hide_meta='aviaTBresults_hide_meta' border_width='1' radius='0px' radius_sync='true' results_padding='50px' results_padding_sync='true' results_margin='20px,0,0,0' results_bg='custom' custom_results_bg='#ffffff' results_color='' custom_results_color='' av_uid='av-25fx3w']
Or this seems to be the minimum shortcode for a default Ajax search without an ajax popup:[avia_sc_search placeholder='Search...' label_text='' icon_display='button' icon='ue803' font='entypo-fontello' numberposts='5' radius='0px' radius_sync='true' av_uid='av-38vvxo']
If you wish, you can compare the above shortcodes and adjust the attributes to suit.Best regards,
MikeMarch 8, 2021 at 8:05 pm #1286541The minimum shortcode looks fantastic !!!!
I’m so glad we have your support since the beginning and it’s clear to me that I can trust you.
Thanks a lot for your help!!!I just saw that Enfold has released a theme update.
What should I do? As you know, we have some CSS in the General Styling tab and lots of theme configuration (fonts, colours, layout) in the advanced styling menu tab. Can I proceed with the update as usual and everything will stay there?Thank YOU!
March 8, 2021 at 9:54 pm #1286559Hi Mike!
I need your help here ….Remember when we were talking about how to display a specific product on a page (blog post or simple page)?
At that time, I used the “display feature products only” option. But now I need to show specific products from the same category.
In this post (https://www.akhurst.com/kingswood-cabinets-a-true-commitment-to-growth/), you can see that I’m displaying 5 products but I only need to display 3 of them (Omnitech). But as they’re part of the same category, the “featured products display” is not helping me anymore …So, I followed what you said before (“Yes, you can create a specific tag in Woocomerce for products, then if you choose this in the element it will only show these.”) butI can’t find a way to display a “product related to a tag” in the element.
https://snipboard.io/3WGIuy.jpgHelp me ;)
Thanks again …
LeoMarch 9, 2021 at 2:25 pm #1286735Hi,
Thank you, I will try to answer your two posts here, the first one was about updating to v4.8 and at this point, you have added css to the Enfold Quick CSS field, and made theme option changes. So you can update the theme without concern, if at some point you had added code to your functions.php file you would need to copy because it would be overwritten when you update.
In the future, I would recommend using a child theme, so that you will be able the add customizations to the functions.phpFor your second question, please note that the way “Related” works for products is they share the same “Tag”, so your single products must have a “Tag” and you will want to consiter the Tag of your Product & your Related products.
So looking at the single post that you linked to, I note that the first 3 related products use the Tag:blog-post-cnc-series-omnitech
and the two you don’t want use the tagblog-post-kingswood-anderson
So currently you seem to be organizing these by category only, please try incorporating tags also.Best regards,
MikeMarch 9, 2021 at 7:28 pm #1286865Hi Mike!
Regarding the update, I think we’re good to go, as we don’t have any CSS under the Functions.php file.
All the CSS we did are under Elfold Theme > General Styling Tab > Quick CSS.
So I’m understanding that I can run the update with no issues ;)Regarding the Product Display, I’m kind of lost here …
You’ve mentioned that I need to add tags (I did for the 5 products I need to display), but I don’t know where to choose “display by tag” and not ” under “Select Entries”. What should I do?Thank YOU!
LeoMarch 9, 2021 at 7:34 pm #1286872https://snipboard.io/ovPFRT.jpg
this is what I’m seeing under “select entries”.March 10, 2021 at 1:38 pm #1287099Hi,
Please note that the way “Related” works are they share the same “Tag”, so your single products must have a “Tag” and you will want to consider the Tags of your Products & your Related products.
There is not a “display by tag” setting the “Related Tags” works in the background, you need to add “Tags” here:
Best regards,
MikeMarch 12, 2021 at 10:12 pm #1287887Hi Mike!
Again, thanks for your huge help.
We launched the 5 new websites and everybody is amazed at the result.
Only positive feedback!So … regarding the “related products”, I’m still lost. I’m sorry.
I’m trying to understand what you’re saying, and I guess I did, but I still don’t how to make it work. For real …You mentioned adding different tags to specific products, right? I did …
https://snipboard.io/Zi6DAc.jpg
https://snipboard.io/x9Irv7.jpgAnd then, I don’t know what to do next to show them separately in different posts or pages.
The way I see it here, I can’t have this feature because it’s not a product page, so the element is not even enabled for me.
https://snipboard.io/azUGjL.jpgAnd I can’t use “show only featured products” in the “Product Grid” element because both are part of the same category (CNC Routers).
So what should I do? Any chance?Help me ;(
LeoMarch 13, 2021 at 11:19 pm #1288060Hi,
Glad to hear the good news of your launches, thank you for the screenshots. We have covered a lot of ground in this thread, on many topics, and sometimes this gets confusing, even for me 🙂 I think that the word “related” might be an issue depending on the context within Woocommerce & Enfold, because it is different, so lets try a new explanation.We want to have a single post that we can display 3 products in, and we want to show a specific group of products from a group that we will decide on. We will use a woocommerce shortcode to do this. We are not picking specific product IDs to show in the shortcode, we are going to pick a group that we create.
So to show 3 items in a row from a specific group that we decided to identify as savvy, and we decided to identify this group by adding the Tag savvy to the products.
So the shortcode is:
[products limit="3" columns="3" tag="savvy"]
and the result is:
Please give this a try 🙏Please Note: in this example we are using a woocommerce shortcode in a Classic Editor single post, we are not using the Advanced Layout Builder elements. We are doing it this way because our previous conversations led me to believe that we (you, or any future readers), may want to show a single in-line product in the content, not just 3 at the bottom.
Also note that the woocommerce shortcodes have many Product Attributes for use to cull the products used that you may want to use.Please Also Note: that I believe you will have better results if you use single word tags, or at least use dashes, this format doesn’t look promising:
Best regards,
MikeMarch 16, 2021 at 9:12 pm #1288619It worked !!!!
This is great!!!!I’m using the Advanced Layout Builder and adding a text element and pasting the shortcode inside.
And it works fine!THANK YOU!!!!!
March 17, 2021 at 10:40 am #1288686Hi,
Glad to hear this helped you move your project forward. As I pointed out earlier this thread is very long now and is covering too many topics to make reasonable sense, lets close this thread, and if you have any future questions you can open a new thread and we will be happy to assist, agree?Best regards,
MikeMarch 17, 2021 at 5:47 pm #1288761Sure, Mike.
And now the websites are live ;)
Thanks a lot for all your help!March 17, 2021 at 8:31 pm #1288777Hi,
Did you need additional help or shall the topic be closed?
Best regards,
Jordan ShannonMarch 17, 2021 at 8:35 pm #1288779Yes, you can close it!
Am I still gonna be able to access it?
Thank YOU!March 18, 2021 at 1:46 am #1288809Hi,
Yes you will be. If you need any additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Different font – full-width slider element’ is closed to new replies.