Skip to content

Different skins on different pages and posts #2695

Answered by mmistakes
kalaniwilliams asked this question in Q&A
Discussion options

You must be logged in to vote

This is not something I'd consider supporting in the theme, but if you're adventurous it is something that should be possible. Off the top of my head you'd need to:

  1. Create stylesheets for each of the skins. These are currently Sass partials now so you'd need to modify things slightly to get them to build as .css files you can reference in a page.
  2. Create new skin stylesheets in /assets/css/ similar to main.scss and change the @import line that brings in a skin partial to a specific file. For example if you wanted to create a dark stylesheet you'd create /assets/css/dark.scss and change line 7 to @import "minimal-mistakes/skins/dark";
  3. Modify _includes/head.html to have some logic that if y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmistakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2695 on December 09, 2020 03:28.