Some fixes and addition
-
If there is no image, the spot where the image is pushes over the text. Here is the fix:
/* Fix menu items with no images */ div.erm_product_image { max-width: 140px; width: auto; } li.no_image div.erm_product_image { display: none; }
Second item is a bit more complex and needs to be added to the core code.
On menus I prefer to use anchor links so that I can have a sub menu on the page wiki style that contains links to the sections. It’s easy to add. The fix:
In shortcodes.php line 62:
$html .= '<a id="'.$the_post->post_title.'" class="quick-resturant-menu-anchor-top-margin"> </a><h2 class="erm_section_title" id="'.$the_post->post_title.'">'.$the_post->post_title.'</h2>';
In the css, add (PLUGIN AUTHOR, please add the css class, even if you don’t add the code… allow users to add custom rules without editing plugin code):
/* Anchor menu margins */ a.quick-resturant-menu-anchor-top-margin { position: relative; top:-50px; display: block; height: 0; width:0; }
The margin amount should be a setting inside the plugin. 50px is nice because it shoves the anchor area a little further down.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Some fixes and addition’ is closed to new replies.