This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"defaults": { | |
"color": { | |
"palette": [ | |
{ | |
"slug": "transparent", | |
"color": "transparent", | |
"name" : "Transparent" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:cover {"url":"http://localhost/wp-content/uploads/2021/05/pexels-mohamed-almari-368893-scaled.jpg","id":4995,"minHeight":100,"minHeightUnit":"vh","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"2rem","right":"3rem","bottom":"2rem","left":"3rem"}}}} --> | |
<div class="wp-block-cover alignfull has-background-dim" style="padding-top:2rem;padding-right:3rem;padding-bottom:2rem;padding-left:3rem;min-height:100vh"><img class="wp-block-cover__image-background wp-image-4995" alt="" src="http://localhost/wp-content/uploads/2021/05/pexels-mohamed-almari-368893-scaled.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:columns {"verticalAlignment":"top"} --> | |
<div class="wp-block-columns are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"33.33%"} --> | |
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:33.33%"><!-- wp:image {"id":5033,"width":42,"height":42,"sizeSlug":"thumbnail","linkDestination":"n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Drop the below in theme functions.php. | |
add_action( 'after_setup_theme', function() { | |
remove_theme_support( 'block-templates' ); | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', function() { | |
remove_action( | |
is_multisite() ? 'network_admin_notices' : 'admin_notices', | |
[ 'DUP_PRO_UI_Alert', 'licenseAlertCheck' ] | |
); | |
}, 11 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The purpose of this code is to show how you can use theme mods that will fall back to | |
* the already-set mods of the parent theme. So, when a child theme is active, the code | |
* checks, in the following order: 1) child theme mod, 2) parent theme mod, 3) default. | |
*/ | |
function jt_get_theme_mod( $name, $default = false ) { | |
if ( is_child_theme() ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Font Awesome v. 4.6. | |
function jt_get_font_icons() { | |
return array( | |
'fa-glass' => 'f000', | |
'fa-music' => 'f001', | |
'fa-search' => 'f002', | |
'fa-envelope-o' => 'f003', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The purpose of this file is to show how a theme can have multiple textdomains | |
* and still work with a single translation file. Translation tools like the | |
* one used on WordPress.org and Poedit are going to simply scan the project for | |
* text strings, regardless of the textdomain (and for good reasons that are | |
* not relevant here). | |
* | |
* The code below works with that system. It assumes that we have a single MO | |
* file based on the theme's textdomain. So, how can two textdomains work? It |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Helper Functions | |
* | |
* @package EDDMembers\Functions | |
* @since 1.0.0 | |
*/ | |
// Exit if accessed directly | |
if( !defined( 'ABSPATH' ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Functions for handling font enqueueing, registration, etc. This works with the | |
* Google Fonts API. | |
* | |
* Extending an idea from Jose Castaneda. This is a small script for loading Google fonts | |
* with an easy method for adding/removing/editing the fonts loaded via child theme. | |
* | |
* @link http://blog.josemcastaneda.com/2016/02/29/adding-removing-fonts-from-a-theme/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package ThemeName | |
* @version 0.1.0 | |
* @author Your Name <[email protected]> | |
* @copyright Copyright (c) 2013, Your Name | |
* @link http://yoursite.com/themes/theme-slug | |
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
*/ |