Firefox PHP

How enable custom style?

Posted by x99nbar 
How enable custom style?
March 20, 2017 09:38AM
Hi all! I create mobile template for phorum.
I enable my mobilestyle.css in the header.php of template like this:
Language: HTML
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="{URL->CSS}" media="screen" /> <link rel="stylesheet" type="text/css" href="{URL->CSS_PRINT}" media="print" /> <link rel="stylesheet" type="text/css" href="templates/themename/mobilestyle.css" media="screen"/>

But it's just works for some pages. It's not works for all page, because in the header (that I can saw in console of browser) of some page my code:

Language: HTML
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="stylesheet" type="text/css" href="templates/themename/mobilestyle.css" media="screen"/>

is missing.
Please, help me how can I enable custom stylesheet?



Edited 1 time(s). Last edit at 03/20/2017 10:02AM by x99nbar.
Re: How enable custom style?
March 20, 2017 11:33AM
I solved this problem.
I thought that selected template for forum-parents will be set for childrens forums too. And this not true.
Resolve: Need select your template for each forum-children OR use Forums - Default Settings - Display Settings - Template - Select your template.



Edited 1 time(s). Last edit at 03/20/2017 11:44AM by x99nbar.
Sorry, only registered users may post in this forum.

Click here to login