Denis V (Artprima)
Forum Replies Created
-
Forum: Plugins
In reply to: [Foodlist] Formatting is all wonkyAhoj ??
Actially, this is a generic html/css question, not directly related to Foodlist. But I can help you. Add this to your css file:
.clear { clear:both; display:block; overflow:hidden; visibility:hidden; height:0px; }
- This reply was modified 7 years, 11 months ago by Denis V (Artprima).
Forum: Plugins
In reply to: [Foodlist] Items in Menu Manager / Section Manager not draggable@410, no you will not lose. But it’s always good to make a backup copy before any update (in general, not just for Foodlist).
Forum: Plugins
In reply to: [Foodlist] Items in Menu Manager / Section Manager not draggableI fixed this problem in the version 1.13. Please let me know if it works for you.
Forum: Plugins
In reply to: [Foodlist] Items in Menu Manager / Section Manager not draggableOk, I confirm the problem. I will release the update today.
Forum: Plugins
In reply to: [Foodlist] Items in Menu Manager / Section Manager not draggableDoes the problem appear when you switch the theme to any other? If so, this may mean that the theme overrides some scripts, you should then contact the theme author and ask him to fix the issue. As it is a commercial theme, I can’t test it myself.
Forum: Plugins
In reply to: [Foodlist] Items in Menu Manager / Section Manager not draggable1. Which version of Foodlist do you use?
2. Which version of WP do you use?
3. What plugins do you use?
4. What theme do you use?
5. Don’t you have something like NoScript in your browser? If so, try turning it off. The same applies to AdBlock.Forum: Plugins
In reply to: [Foodlist] Download selected menus togetherDownloading as a PDF is definitely not a built-in feature of Foodlist. So, you should check with the plugin that provides you that.
If you can’t solve the problem yourself, I can offer you my services.
Forum: Plugins
In reply to: [Foodlist] Download selected menus togetherHi, do you mean in some form like csv or xml? There is no feature for that and you might need to develop your own addon for Foodlist (built-in hooks should be enough for that).
If you want to do this just once, you can change the templates and put shortcodes of the menus on the same page, and then manually copy and paste the output.
Forum: Plugins
In reply to: [Foodlist] totally seperate menus for different resturantsUnfortunately, it’s not currently possible. Although, menus/sections/items are custom posts and the access restrictions apply to them, custom functionality does not consider the post author.
Forum: Plugins
In reply to: [Foodlist] totally seperate menus for different resturantsYes, it is possible. Just create two menus and fill them with the relevant items.
Forum: Plugins
In reply to: [Foodlist] Shortcode?There is a column “Shortcode” in each list of Menus/Sections/Items from which you can copy the shortcode that you are interested in:
[flmenu id=”118″]
[flmenu_section id=”117″]
[flmenu_item id=”104″]The id must be an id of the menu/section/item post, not name. Even if it works for you with a name (what is it btw? Title?) I cannot guarantee that it will work in future.
Forum: Plugins
In reply to: [Foodlist] Shortcode?Is this what you are looking for:
[flmenu id="YOUR_MENU_ID"]
?Forum: Plugins
In reply to: [Foodlist] Revisited: easy way to put section in responsive fluid columnsThank you, Chris!
Forum: Plugins
In reply to: [Foodlist] This plugin breaks Cyclone Slider 2Cyclone Slider has a bug because of which it can be broken not just by Foodlist. There is a file:
cyclone-slider-2\src\CycloneSlider\Admin.php
. Inside there is a methodadmin_footer()
. Inside this method this plugin checks the current page usingif(get_post_type()=='cycloneslider'){ /* ... */ }
But this is wrong, instead it should check the current screen:
if ((($screen = get_current_screen()) !== null) && $screen->id == 'cycloneslider') { /* ... */ }
Forum: Plugins
In reply to: [Foodlist] Managing Multiple Menus with Same Menu Item NamesWith the new version of Foodlist you will be do the following (put this code in your
functions.php
):add_filter('foodlist_admin_ajax_metabox_menu_post_note', function($note, $postId, $postType) { if ($postType == 'fl-menu-item') { $terms = wp_get_post_terms($postId, 'fl-menu-tag', array("fields" => "names")); $terms = implode(', ', $terms); $note = $terms; } else { $note = get_post_meta($postId, '_fl_menu_section_note', true); } return $note; }, 10, 3); add_filter('foodlist_admin_metabox_menu_item_template', function($template) { return ' <li class="widget-top fl-menu-sortable-item"> <div class="widget-title"><h4>%s %s</h4></div> <div class="fl-menu-sortable-item-remove dashicons dashicons-no"></div> <input type="hidden" name="fl_menu_section[items][]" value="%s" /> </li> '; }); add_filter('foodlist_admin_metabox_menu_item_html', function($html, $postId, $title, $template) { $terms = wp_get_post_terms($postId, 'fl-menu-tag', array("fields" => "names")); $terms = implode(', ', $terms); $note = $terms; if ($note) { $note = '<span class="in-widget-title">('.esc_html($note).')</span>'; } $html = sprintf($template, esc_html($title), $note, (int)$postId); return $html; }, 10, 4); add_filter('foodlist_admin_metabox_menu_item_jstemplate', function($jsTemplate, $template) { return sprintf($template, '__title__', '__note__', '__id__'); }, 10, 2);