这可能是一个愚蠢的简单问题,但我不是很精通代码。 我在socialengine上讨论一个论坛,我希望管理员帐户的字体颜色为红色,这样用户就知道管理员是谁了。 有没有办法在管理面板区域中执行此操作?
这是我从谷歌搜索和研究中得到的最远,但我不知道在哪里放这段代码:
<?php if($this->viewer()->getIdentity() == '1'){ ?> <style>***change to red***</style>我希望h2标题为红色以及管理员帐户显示的“热门成员”中的链接。 我怎样才能做到这一点? 我希望在管理区域有办法做到这一点,似乎无法找到它。 谢谢。
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.
最满意答案
有可能的。
CSS:
<style type="text/css"> .is-admin { color: red; } </style>HTML / PHP:
<h2 <?php echo ($this->viewer()->getIdentity() == '1' ? 'class="is-admin"' : '');?>>Username</h2>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>更多推荐
发布评论