Images instead of text link in (sub)menu
|
11 posts
|
HI, I need some help with a menu. I want to show images in the menu. I have found this snippet but I have a hell to make it work togheter :) check the fourth post by David Thx! |
|
16 posts
|
Here is the snippet posted by David
Here’s what it means. The first line is a link to the home page because the “<?php echo URL_PUBLIC; ?>” as the global variable that contains the URL of your Frog installation. I guess the next lines are what you don’t understand. So for example let’s say you have this hierarchy :
The “foreach” will create a menu item for the 3 items “Characteristics, Plans Unites & Prices and Neighborhood” So for each item it will set the href=”“ to the item url automatically with $menu->url() Finally the foreach will add the page title as the alternative (alt) text to the image. Hope it’s clear now. |

