How to remove menu-item links (again)
This support request was posted in BBQ by wyattlane
- wyattlane May 3, 2013 at 7:54 pm
Hi, Juan.
I wish to remove the links within the menu item titles – because we don’t need separate pages for menu items – but cannot get the solution you posted (created by sketch2uk, #post-1076) to work.
Altering the two template files (template-menu.php and template-menu-list.php) seems to have no effect whatsoever (even after straightening the smart quotes within the code that appeared in that post, clearing cache files, etc., etc.)
We’ve got BBQ version 1.0.8 running on framework version 1.0.4.
Scott
Juanfra Aldasoro May 3, 2013 at 8:08 pmHi Scott,
Thanks for writing. Are you using the menu category template?
Best,
Juan.Juanfra Aldasoro May 3, 2013 at 9:13 pmHi Scott,
Then you have to do the same thing over the file taxonomy-menu-category.php
Lines #64 and #111.
Best,
Juan.wyattlane May 6, 2013 at 5:08 pmHi, Juan.
Replacing those lines with:
echo ” . get_the_title() . ” . “\n”;Did do the trick; however, it also stripped out the nice menu formatting (with prices appearing page right, etc.).
Might there be an easy workaround for this?
Thanks!
ScottJuanfra Aldasoro May 6, 2013 at 5:33 pmHi Scott,
Yes, it depends on what you actually replaced. The item title has to be inside a span to have the correct formatting.
We’ll be releasing a new version of BBQ with the option of removing links for each menu item, between today and tomorrow.
Best,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.