Skip to content

Instantly share code, notes, and snippets.

Oksana Romaniv OksanaRomaniv

Block or report user

Report or block OksanaRomaniv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@OksanaRomaniv
OksanaRomaniv / filter-front-page.php
Created Sep 27, 2018
Filter / Bypass front-page.php template to use custom template as static page (WordPress)
View filter-front-page.php
<?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
postcssSorting.config using SMACSS properties order. Object can be used in package.json, VS Code settings.json etc.
View settings.json
// 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",
You can’t perform that action at this time.