Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Custom theme CSS file call from the URL vs the default one
I just noticed a strange behavior.
If you keep the “Default” theme and try to call your custom default.css
file from the URL like this:
domain.tdl/css.php?n=default&t=My-Theme
The page returns the initial CSS from the “Default” theme in the distribution but not in this case:
domain.tdl/css.php?n=default&t=My-Theme
Removing the entire “Default” theme from the installation gives the right file in the two cases above.
Please note the differences: &
and &
into the parameters.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Custom theme CSS file call from the URL vs the default one
Hi Patrick,
not sure to understand:
<link rel="stylesheet" href="domain.tdl/css.php?n=default&t=My-Theme" />
seems to work fine.
If you try to access domain.tdl/css.php?n=default&t=My-Theme
via the browser URL bar then yes, you won’t get what you want, because the browser does not recognize &t=My-Theme
as t=My-Theme
parameter but as amp;t=My-Theme
which is meaningless for txp.
Offline
Re: Custom theme CSS file call from the URL vs the default one
etc wrote #319211:
If you try to access
domain.tdl/css.php?n=default&t=My-Theme
via the browser URL bar then yes, you won’t get what you want, because the browser does not recognize&t=My-Theme
ast=My-Theme
parameter but asamp;t=My-Theme
which is meaningless for txp.
Ah ! Ok. All is fine, so. Thank you.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline