Header Image css?
2 posters
Page 1 of 1
Header Image css?
Ange Tuteur wrote:If it's for all forum pages you can do this :
- Code:
$(function() {
if (/\/f\d+/.test(window.location.href)) {
document.body.className += ' forum-page';
}
});
If it's for that page only, you can do this instead :The number "2" is the forum ID.
- Code:
$(function() {
if (/\/f2(?:-|p\d+-)websites/.test(window.location.href)) {
document.body.className += ' forum-page-websites';
}
});
I want to edit the header image on a specific page, how?
Re: Header Image css?
Which specific page were you thinking ? Also, which forum version too ? Almost all versions have a unique selector for the banner logo.
Re: Header Image css?
Ange Tuteur wrote:Which specific page were you thinking ? Also, which forum version too ? Almost all versions have a unique selector for the banner logo.
Punbb.
http://boredom.iftopic.com/
Re: Header Image css?
Using this script as an example :
We can modify the logo element source inside the condition, like this :
Just replace
with the URL to your image.
- Code:
$(function() {
if (/\/f2(-|p\d+-)websites/.test(window.location.href)) {
}
});
We can modify the logo element source inside the condition, like this :
- Code:
$(function() {
if (/\/f2(-|p\d+-)websites/.test(window.location.href)) {
document.getElementById('pun-logo').firstChild.src = '/img_src.png';
}
});
Just replace
|
Similar topics
» header image
» Change Header background image and forum icons
» Requesting for Header Image
» Header Image Request
» Issue with forum background image and custom image display
» Change Header background image and forum icons
» Requesting for Header Image
» Header Image Request
» Issue with forum background image and custom image display
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum