I have a menu Item, and I added a custom css class so I could modify it like so:
In Firefox's F12 developer tool, when I look up testphpmenuclass I find it just fine here:
So I create a Custom Module (on every tutorial, other people use "Custom HTML module" but I can't find this mysterious module that everyone else has access to but me.)
Then I add code for adding css I found directly from the Sourcerer FAQ website
{source}<?php
$css = "
.testphpmenuclass {
display: none !important;
}
";
$doc->addStyleDeclaration( $css );
?>{/source}
Then I save the module, and go to my index page, and add the module like so:
Then I visit my website, and the menu item is still there.
Before you tell me maybe the addon doesn't work, I tested a printf function in the php section, and the printf function works:
And here is the code:
So trying all this, what other method can I do to hide a menu item?
My hopes is to do this conditionally (if user visits at a certain time of the day, show, otherwise hide it, etc)