This is a small guide as a self-reminder :)
Install NodeJs
<?php | |
// Force removal of styles | |
add_filter('print_styles_array', 'custom_print_styles_array'); | |
/** | |
* Force removal of styles that are not enqued properly | |
*/ | |
function custom_print_styles_array($styles){ | |
$styles_to_remove = array( | |
'mailpoet_public', // plugins/mailpoet | |
'mailpoet_custom_fonts_css' // plugins/mailpoet |
$accents: ( | |
primary: --color-big-sky-500, | |
spotlight: --color-aruba-500, | |
warning: --color-yellow-500, | |
danger: --color-cardinal-500, | |
info: --color-scarlet-500 | |
); | |
.card-accent { |
.vv-wizard-stepper { | |
display: flex; | |
justify-content: center; | |
margin: 20px 0; | |
} | |
.vv-wizard-stepper ul { | |
display: flex; | |
margin: 0; | |
padding: 0; | |
} |
.vv-wizard-stepper { | |
display: flex; | |
justify-content: center; | |
margin: 20px 0; | |
} | |
.vv-wizard-stepper ul { | |
display: flex; | |
margin: 0; | |
padding: 0; | |
} |
This is a small guide as a self-reminder :)
Install NodeJs
var el = document.querySelector('.button'); | |
function setAttributes(el, attrs) { | |
Object.keys(attrs).forEach(key => el.setAttribute(key, attrs[key])); | |
} | |
setAttributes(el, { | |
class: 'button button--lg button--inverted', | |
'data-src': 'https://player.vimeo.com/video/28629415?autoplay=false', | |
'data-padding-bottom': '56.25%', |
prompt_context() { | |
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then | |
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER" | |
fi | |
} |
<?php
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'press_article',
'showposts' => '1',
'paged' => $paged,
);
function wp_head_cleanup () {
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_shortlink_wp_head');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10);
// Enable shortcodes in widgets
add_filter('widget_text', 'do_shortcode');