![]() |
Change stylevar with plugin
Hi,
is it possible to set/change a stylevar, for example doc_maxWidth, in a plugin? I tried $stylevar['doc_maxWidth'] but this doesn't work or i choose the wrong hook... |
No, you cannot do that. You may write a plugin that adds more CSS to the page and that CSS can override whatever the old CSS is that you are trying to change.
|
This is an old thread), but maybe someone will search the answer and not find, like me.
Now you can change a stylevar in a plugin with the 'fetch_template_complete' hook. For example: Code:
if (THIS_SCRIPT == 'css') { |
I know this is old. I'm adding Style Variable to the page so that Google will index the page with the word Style Variable as well. I knew this page existed, and I was pulling my hair out trying to find it. When I finally changed Style Variable to stylevar it came right up. Now hopefully it will get properly indexed for bother Style Variable and stylevar. ;)
|
I remember doing this along time ago, so I checked my library and found that I did it the same way. So I must have come across the thread myself once in a blue-moon ago. :)
|
All times are GMT. The time now is 02:29 AM. |
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:
|