Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Restaurant Menu Add spicy icons(like peppers)
- This topic has 8 replies, 2 voices, and was last updated 7 years, 3 months ago by J. Davis.
- AuthorPosts
- April 3, 2017 at 1:22 am #500950SteliosGuest
Is there any way to add an icon for example one pepper for spicy menu items and two peppers for very hot and spicy ?
Or is there any workaround using tags and css ?
April 4, 2017 at 12:15 am #501488SteliosGuestHi there, please ignore my question..just noticed that tag slugs are added as classes so i can add the spicy levels as tags and use css to add an icon.
April 5, 2017 at 2:56 pm #502315J. DavisKeymasterHello Stelios,
Thank you for your notification. Contact us if you have any additional questions.
Best regards,
JohnAugust 31, 2017 at 8:44 pm #565374zenzinoGuest@Stelios
Can you share how you did that?
I used:
a.mprm-tag-gluten-free { text-indent: -9999px; background: url (http://dailydosegrill.zenzino.design/wp-content/uploads/2017/08/gluten-free.png) no-repeat; height: 24px; }
And it didn’t work. Having an icon instead of the tags would be very helpful so I appreciate any solution you could share.
Thanks.
September 1, 2017 at 10:51 am #565512J. DavisKeymasterHi Zenzio,
You can try adding image or icons for certain tag. For example I’ve added tag and called it ‘fish’. It’s class name is .mprm-tag-fish. Thus I go to Appearance>Customize>Additional CSS and add the style below to transform the text into image or icon:a.mprm-tag-fish{ content:url("wp-content/uploads/fish.jpg"); height:30px; }
Best regards,
JohnSeptember 1, 2017 at 2:27 pm #565574zenzinoGuestHi John,
It worked like a charm. Thank you very much for your help.
One last question (hopefully): Is there a way to remove the comma between the tags when I use multiple tags?
Thanks,
DonSeptember 4, 2017 at 11:10 am #566280J. DavisKeymasterHi Don,
You need to override templates of plugin to edit the output of tags. Try to follow the steps below:
1. go to your server – /wp-content/plugins/mp-restaurant-menu/templates/common and copy item-tags.php file
2. go to /wp-content/themes/your_theme_folder and create /mp-restaurant-menu/common folder and paste the file you copied.
3. open the file to edit and find the line below
echo implode(", ", $tags_array); ?>
4. put “\n” instead of “, “ in this line and save the changes.
Go to preview the page with your menu items.
Best regards,
John- This reply was modified 7 years, 3 months ago by J. Davis.
September 5, 2017 at 6:47 pm #566748zenzinoGuestPerfect.
Thanks for all your help.
September 6, 2017 at 5:57 am #566790J. DavisKeymasterHi,
You are welcome. We’d appreciate if you rate and leave a review for our Restaurant Menu plugin. Thank you for your interest.
best regards,
John - AuthorPosts
- You must be logged in to reply to this topic.