adrianmak Posted February 27, 2016 Share Posted February 27, 2016 instead of adding custom in-line css styling in body field. This module provide a feature to add custom css style by page Link to comment Share on other sites More sharing options...
teppo Posted February 27, 2016 Share Posted February 27, 2016 Perhaps I'm missing the point here, but why don't you just add a textarea field for custom CSS and output the contents of that in your template files? 3 Link to comment Share on other sites More sharing options...
pwired Posted February 27, 2016 Share Posted February 27, 2016 This can be done very easy: http://processwire.com/talk/topic/2782-template-design-better-route/#entry27206http://processwire.com/talk/topic/2210-help-getting-a-custom-styles-php-file-working/?p=20641https://processwire.com/talk/topic/5162-how-to-load-js-css-plugins-colorbox-cycle2/ Also with the delayed output you can set default page css with _init.php and overrule with specifiq page css with template file 1 Link to comment Share on other sites More sharing options...
tpr Posted February 27, 2016 Share Posted February 27, 2016 Another approach is to add class to the body tag, eg. <body class="template-basic-page page-1022" blabla and add specific rules in your CSS like #page-1022 .main-content { background: red; } Link to comment Share on other sites More sharing options...
adrianmak Posted February 27, 2016 Author Share Posted February 27, 2016 good to see there are a number of solutions. thx Link to comment Share on other sites More sharing options...
adrianmak Posted February 27, 2016 Author Share Posted February 27, 2016 Another approach is to add class to the body tag, eg. <body class="template-basic-page page-1022" blabla and add specific rules in your CSS like #page-1022 .main-content { background: red; } The critical cons of this method is ordinary users have to access the template css file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now