GridMarket Theme Options

Hi, I am trying to get GridMarket Theme Options to stop displaying in the admin menu for sub sites. I tried admin menu editor (changing roles, deleting the menu item, hiding the menu item) but it seem that GridMarket overrides that plugin.
How do I prevent that one line from showing in the menu so that sub sites don't fiddle with the settings? This way they can still edit the header and background menu items.

Thx

  • DavidM
    • DEV MAN’s Mascot

    Hi sdominique,

    I believe you could use the is_super_admin() check in the FrameMarket options.php file to achieve that, basically wrapping the code in that file with that function.

    Now, I haven't tried it with GridMarket or a child theme and that might take some more serious work but I simply added the is_super_admin() conditional right after the <?php tag:

    <?php
    if (is_super_admin()){

    And then added a closing brace at the bottom of the file:

    }
    ?>

    And it worked well. The theme has its defaults set so I don't imagine this would affect anything other than the fact that non-Super Admins couldn't see the options menu.

    Cheers,
    David

  • DavidM
    • DEV MAN’s Mascot

    Hi sdominique,

    Thinking through it more, I realized this would be much simpler done through the functions.php file instead.

    You could simple use the conditional on line 52 as follows:
    if (is_super_admin() ) {require_once ( TEMPLATEPATH . '/options/options.php' );}

    Much simpler that way and one less file included!

    Cheers,
    David

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.