Skip to content

Instantly share code, notes, and snippets.

View OksanaRomaniv's full-sized avatar

Oksana Romaniv OksanaRomaniv

  • Kalush, Ukraine
View GitHub Profile
@OksanaRomaniv
OksanaRomaniv / filter-front-page.php
Created September 27, 2018 12:32
Filter / Bypass front-page.php template to use custom template as static page (WordPress)
<?php
// Add this snippet to your funstions.php to use any custom template as you static front page if your theme has front-page.php // that overwrites custom template. This also supports page templates created with a page builder.
add_filter( 'frontpage_template', 'mc_filter_front_page_template' );
/**
* Bypass font-page.php.
*
* @param string $template Custom Template Slug.
* @return string
@OksanaRomaniv
OksanaRomaniv / settings.json
Last active May 10, 2018 14:47
postcssSorting.config using SMACSS properties order. Object can be used in package.json, VS Code settings.json etc.
// https://github.com/hudochenkov/postcss-sorting
// https://smacss.com/book/formatting
// https://github.com/mrmlnc/vscode-postcss-sorting
{
"postcssSorting.config": {
"order": [
"custom-properties",
"dollar-variables",
"declarations",
"at-rules",