Getting started:
Related tutorials:
//load font awesome if not loaded with the theme files | |
function check_font_awesome() { | |
global $wp_styles; | |
$srcs = array_map('basename', (array) wp_list_pluck($wp_styles->registered, 'src') ); | |
if ( in_array('font-awesome.css', $srcs) || in_array('font-awesome.min.css', $srcs) ) { | |
/* echo 'font-awesome.css registered'; */ | |
} else { | |
wp_enqueue_style( 'local-business-schema-fonts', PLUGIN_FOLDER . '/assets/fonts/font-awesome/css/font-awesome.min.css', array(), '', 'screen' ); | |
} | |
} |
Getting started:
Related tutorials:
<!-- text size menu--> | |
<div class="container"> | |
<div class="row"> | |
<ul class="pagination"> | |
<li> | |
<a href="#" aria-label="bigger" id="bigger"> | |
<i class="fa fa-expand" aria-hidden="true"></i> | |
<span>א</span> | |
</a> | |
</li> |
add_filter( 'manage_media_columns', 'sk_media_columns_filesize' ); | |
/** | |
* Filter the Media list table columns to add a File Size column. | |
* | |
* @param array $posts_columns Existing array of columns displayed in the Media list table. | |
* @return array Amended array of columns to be displayed in the Media list table. | |
*/ | |
function sk_media_columns_filesize( $posts_columns ) { | |
$posts_columns['filesize'] = __( 'File Size', 'my-theme-text-domain' ); |
:root{ | |
//social colors | |
--facebook :#3b5998; | |
--twitter :#55acee; | |
--youtube :#bb0000; | |
--linkedin :#007bb5; | |
--instagram-y :#FCCC63; | |
--instagram-p :#8a3ab9; | |
--whatsapp :#4dc247; |
@include keyframe(fadeout) { | |
0% { | |
opacity: 1; | |
} | |
100% { | |
opacity: 0; | |
} | |
} |
class Custom_Post_Type{ | |
function __construct() { | |
add_action( 'init', array( &$this, 'init' ) ); | |
} | |
function init() { | |
$this->custom_post_type(); |
//Smooth Scroll | |
// Select all links with hashes | |
$('a[href*="#"]') | |
// Remove links that don't actually link to anything | |
.not('[href="#"]') | |
.not('[href="#0"]') | |
.click(function(event) { | |
// On-page links | |
if ( | |
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |