更改socialengine中Admin帐户的字体颜色(Change font color for Admin account in socialengine)

编程入门 行业动态 更新时间:2024-10-24 16:23:03
更改socialengine中Admin帐户的字体颜色(Change font color for Admin account in socialengine)

这可能是一个愚蠢的简单问题,但我不是很精通代码。 我在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>

更多推荐

本文发布于:2023-08-06 16:06:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1451297.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:帐户   字体   颜色   Admin   socialengine

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!