![]() |
How to apply a style to a single page only
Let's say I want to have the FAQ pages have a different style than the rest of my board. How would I go about doing that? I know how to make certain forums and categories have certain styles, but cannot figure out how to do the same for non-forum pages. I'm not wanting to do template edits, I am already accustomed to this and it wouldn't serve my needs. Thanks.
|
If by style you mean a separate skin, then the following should work.
Create a new plugin using hook location 'style_fetch' with the following: Code:
if (THIS_SCRIPT == 'faq'){ |
Thanks for that Kirk.
Wonder if it's possible to delineate it further. If FAQ ID = X, then Y. |
Sure, just add a check using the $faqparent var.
Code:
if (THIS_SCRIPT == 'faq' AND $faqparent == X){ Code:
if (THIS_SCRIPT == 'faq') |
Quote:
Sweet! This works! Thank you! |
All times are GMT. The time now is 01:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|