Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Menu colors
Menu colors
Menu colors
Hi all. Thank you for this great plugin. I've created a new menu which I want to be available on certain pages. Evertyhing is working fine but the colors of the new menu is not corresponding to my template. Where can I change this? This is what I've put in under the php part of the module:
Code:
if ( $content_genius->check("category_id = 35") ) return Menu1;
Re: Menu colors
Hi,
just want to check first: when you return a string (Menu1 in this case) from MetaMod, it interprets it as the name of a module position. So, do you have a module position named "Menu1" containing the new menu?
Also, you should really put the name of the menu position in quotes to return it from MetaMod. Otherwise, PHP can sometimes get upset:
if ( $content_genius->check("category_id = 35") ) return "Menu1";
As for the problem about menu colours: this is likely due to the fact that your CSS is getting messed up a little because the MetaMod puts an extra layer of HTML around the module that it's including. There are 3 ways around this:
1 - If you use MetaMod Pro, the included module is not "wrapped" in a MetaMod - it is just placed on the page directly, as if MetaMod was not there. This means that the CSS can't get confused about any extra HTML.
Even without MetaMod Pro, you can often get good results with:
2 - set the "style for included modules" to XHTML or "naked". This affects how much HTML is added around the included module.
3 - you could try adding a random Module Class Suffix to the MetaMod. e.g. "-metamod". Often times this causes CSS to ignore the HTML of the wrapping MetaMod.
Hope these help,
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Menu colors
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5946
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 7675
- Newest User:
- ferelya229
- Members Online:
- 0
- Guests Online:
- 135
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked