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
p br span a del pre blockquote code b strong u i em ul ol li |
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 | |
// gleaned from https://wordpress.org/support/topic/remove-past-events-from-xml-sitemap/#post-11431056 | |
/* Modify the WP-SEO plugin's defaults */ | |
if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) ) { | |
/* add nofollow metatag to header of past events */ | |
add_filter("wpseo_robots", function($robots) { | |
if (! is_singular( 'exhibition' ) && tribe_is_past_event() == true) { | |
return "noindex,follow"; |
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 | |
/* | |
* RSS Cache | |
* Cache: 1 hour | |
* Cache fallback: no expiry (not infaillible) | |
*/ | |
// PROD | |
$newsURLall = 'https://news.example.com/'; |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# custom rules for loading server images or any other uploaded media files | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{HTTP_HOST} ^localhost$ | |
RewriteRule ^.*/uploads/(.*)$ https://example.com/wp-content/uploads/$1 [L,R=301,NC] |
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 | |
function wp_scripts() { | |
//Internal cache tracking | |
wp_enqueue_style( 'theme-style', get_stylesheet_directory_uri() . '/style.css', array(), filemtime( get_stylesheet_directory() .'/style.css' ), 'all' ); | |
//External cache tracking | |
wp_enqueue_style( 'global-styles', 'https://example-assets.com/css/global_styles.css', array(), strtotime( wp_remote_retrieve_header( wp_remote_get( 'https://example-assets.com/css/global_styles.css'), 'last-modified' ) ) ); | |
} | |
?> |
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
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- dbdata:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: wordpress |
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
175yQ2Mi94vnh3AWbsda37DfTp1Cxtc8cW https://explorer.blockstack.org/address/175yQ2Mi94vnh3AWbsda37DfTp1Cxtc8cW |
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 | |
/* | |
Plugin Name: Homepage Settings for BigBang | |
Plugin URI: http://www.inboundnow.com/ | |
Description: Adds additional functionality to the big bang theme. | |
Author: David Wells | |
Author URI: http://www.inboundnow.com | |
*/ | |
// Specify Hooks/Filters |
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
Getting node-sass to output a sourcemap took a bit of trial & error | |
Mostly because phpstorm does not allow for the same colon syntax that most sources reference, | |
specifically the Output paths to reference only took 1 argument | |
--- | |
Add File Watcher SCSS in settings | |
Watcher Settings | |
Program : | |
C:\Users\%username%\AppData\Roaming\npm\node-sass.cmd | |
Arguments : | |
--no-cache --update --source-map=$FileNameWithoutExtension$.css.map $FileName$ $FileNameWithoutExtension$.css |
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 | |
$view = views_get_page_view(); | |
if(isset($view) && $view->name == 'VIEWS_MACHINE_NAME') : ?><!-- Do Something --> | |
<?php endif; ?> |