Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1970

Extension Writers Discussion • Re: use php to add extra css class to existing class

$
0
0
I am on my mobile phone right now so I can't check, but AFAIK there is an article about building a child style in the knowledgebase
I have been away for some years. Child style is new to me. I only know of template inheritance
If you want, you can use the current template events to edit that portion of the header: overall_header_body_before and overall_header_headerbar_before.
This is a nice solution that doesnt "take out" too much of the core style code.
BTW, I love your assumed variable and extra class :lol:

About this part of the code. Does it make any difference? I mean if the EXT "StockerHeader" isn't active the template events wouldn't load anyway?

Code:

{% set StockerHeader = true %}{% if StockerHeader %}
Thanks to both of your for your help.
I guess that using php to add an extra class to an existing isn't possible. It would have made so many things more easy

Statistics: Posted by Stoker 4.0 — Wed Jan 29, 2025 2:26 am



Viewing all articles
Browse latest Browse all 1970

Trending Articles