This file contains hidden or 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
| @import "menu/menu"; | |
| // Site Header | |
| /************************************/ | |
| .site-header { | |
| font-family: $font-primary; | |
| // Mobile menu | |
| .site-header-navigation { | |
| display: flex; | |
| @media (min-width: $md) { |
This file contains hidden or 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 defined( 'ABSPATH' ) || exit; | |
| // ========================================================================= | |
| // ASYNC LOAD | |
| // ========================================================================= | |
| function my_async_scripts($url){ | |
| if ( strpos( $url, '#asyncload') === false ) | |
| return $url; | |
| else if ( is_admin() ) | |
| return str_replace( '#asyncload', '', $url ); |
This file contains hidden or 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 defined( 'ABSPATH' ) || exit; | |
| /* Automatically set the image Title, Alt-Text, Caption & Description upon upload | |
| --------------------------------------------------------------------------------------*/ | |
| function my_set_image_meta_upon_image_upload( $post_ID ) { | |
| // Check if uploaded file is an image, else do nothing | |
| if ( wp_attachment_is_image( $post_ID ) ) { |
This file contains hidden or 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
| const path = require('path'); | |
| const defaultConfig = require("./node_modules/@wordpress/scripts/config/webpack.config"); | |
| module.exports = { | |
| ...defaultConfig, | |
| entry: { | |
| index: path.resolve( __dirname, 'assets/js', 'index.js' ), | |
| }, | |
| output: { | |
| filename: '[name].js', |
This file contains hidden or 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
| { | |
| "name": "underscore-theme", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "build": "wp-scripts build", | |
| "start": "wp-scripts start", | |
| "dev": "wp-scripts start", | |
| "devFast": "wp-scripts start", |
This file contains hidden or 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 | |
| // ============================================================= | |
| // Remove accents from uploaded filenames | |
| // ============================================================= | |
| function wpflames_sanitize_file_name( $filename ) { | |
| // Remove chars with accents etc, also replaces € with E. | |
| $sanitized_filename = remove_accents( $filename ); |
This file contains hidden or 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
| // ============================================================= | |
| // Remove Genesis Admin Warnings | |
| // ============================================================= | |
| function remove_genesis_admin_warnings() { | |
| echo '<style> | |
| #genesis-page-builder-update, | |
| #genesis-custom-blocks-pro-update{ | |
| display: none; | |
| } | |
| </style>'; |
This file contains hidden or 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
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [OR] | |
| RewriteCond %{HTTP_HOST} ^www\.OLDDOMAIN\.com$ | |
| RewriteRule ^(.*) "https\:\/\/NEWDOMAIN\.com\/$1" [R=301,L] |
This file contains hidden or 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 | |
| $title = 'Past Events'; | |
| $compare_operator = '<'; | |
| include('event-query.php'); |
This file contains hidden or 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 | |
| $title = 'Upcoming Events'; | |
| $compare_operator = '>='; | |
| include('event-query.php'); |