Search code examples
phpcssadminsocialengine

Change font color for Admin account in socialengine


This is probably a stupid simple question, but I'm not very code savvy. I moderate a forum on socialengine and I want the admin account font color to be in red, so users know who the admin is. Is there a way to do that in the admin panel area?

this is the furthest I've gotten from googling and research, but I'm not sure where to put this piece of code:

<?php if($this->viewer()->getIdentity() == '1'){ ?>
<style>***change to red***</style>

I want the h2 header to be in red as well as the link in "popular members" where the admin account shows up. How can I achieve this? I'm hoping there is a way in the admin area to do it, just can't seem to find it. Thank you.


Solution

  • It is possible.

    CSS:

    <style type="text/css">
        .is-admin {
            color: red;
        }
    </style>
    

    HTML/PHP:

    <h2 <?php echo ($this->viewer()->getIdentity() == '1' ? 'class="is-admin"' : '');?>>Username</h2>