Hello all
-----------
Add a banner for each section. It appears at the top of the topics
Works on all versions
-------------------
For example, if you have a gamings section
The gamings logo will appear for all topics in the "gamings" section only.
-----------
First put the following code at the top of the template viewtopic_body
- Code:
<div class="logo-posts"></div>
Then put the following code in java
Title : as you like
Placement : In the topics
- Code:
$(function() {
$(".logo-posts").css({
"display": "inline-block",
"width": "100%",
"height": "130px"
});
});
$(function() {
if($('a.nav[href^="/f????-"]').length)
$(".logo-posts").css({
"background": "url(yyyy)"
});
});
|
Replace
|
----------
And in case you want paneer for more than one section
Add a new line to the java code as follows
- Code:
$(function() {
if($('a.nav[href^="/f????-"]').length)
$(".logo-posts").css({
"background": "url(yyyy)"
});
});
|
Replace
|
Thus, repeat the same method for each section
as in the picture
-----------------------------
We hope you like this great little Trick and Tip on how to make the change.
_____________________________________________
This tutorial was written by: كونان2000
Last edited by كونان2000 on April 30th 2024, 1:01 am; edited 1 time in total