[.🇨🇺] Post Color Highlighting

[.🇨🇺] Post Color Highlighting 2022-11-16

No permission to download
One day I was checking the Invision Community website and I came across this feature, so I set out to replicate it for Xenforo.


Step number 1:

We create a template called xf_post_highligh and copy the following code:
PHP:
One day I was checking the Invision Community website and I came across this feature, so I set out to replicate it for Xenforo.
Step number 1:
We create a template called xf_post_highligh and copy the following code:
Setp number 2:

go to the template post_macros and edit the following line:
HTML:
<div class="message-cell message-cell--main">

then add to extra.less :
CSS:
.admin_highlight {
border: 2px solid red;
box-shadow: 0 0 10px red;
}

Result:
1668442899763.webp

If you only want to display the highlight in only one forum you can use this code in extra.less
CSS:
[data-container-key="node-X"]
{
.admin_highlight {
border: 2px solid red;
box-shadow: 0 0 10px red;
}
    }
Author
axtona
Views
657
First release
Last update
Ratings 0.00 star(s) 0 ratings
More resources from axtona
Using Composer Packages
Using Composer Packages
XenForo v2 uses Composer behind the scenes to include certain packages used by the core software
Eggy SEO Autopilot
Eggy SEO Autopilot
Automated auditing, metadata, structured data, Google Search Console, IndexNow
Cool Timeline Pro - WordPress 时间线插件
Cool Timeline Pro - WordPress 时间线插件
一个展示你生命历史时间线的高级WordPresstimeline插件

Similar resources

Custom User Post Background A
allow you to add an image to the background of all posts by a given user
Back
Top