Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-08-06 09:14:25

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,325
Website

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 | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#2 2019-09-02 12:59:58

etc
Developer
Registered: 2010-11-11
Posts: 3,419
Website

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&amp;t=My-Theme" />

seems to work fine.

If you try to access domain.tdl/css.php?n=default&amp;t=My-Theme via the browser URL bar then yes, you won’t get what you want, because the browser does not recognize &amp;t=My-Theme as t=My-Theme parameter but as amp;t=My-Theme which is meaningless for txp.

Offline

#3 2019-09-02 16:49:14

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,325
Website

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&amp;t=My-Theme via the browser URL bar then yes, you won’t get what you want, because the browser does not recognize &amp;t=My-Theme as t=My-Theme parameter but as amp;t=My-Theme which is meaningless for txp.

Ah ! Ok. All is fine, so. Thank you.


Patrick.

Github | CodePen | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB