Skip to content

Instantly share code, notes, and snippets.

William Beeler gofishwbeeler

Block or report user

Report or block gofishwbeeler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gofishwbeeler
gofishwbeeler / functions.php
Last active Apr 2, 2019
Loads all your Javascript files in Wordpress
View functions.php
function gfd_theme_scripts() {
wp_enqueue_script( 'all-my-scripts', get_template_directory_uri() . '/js/all.js', array(), '1.0.0', true );
}
add_action( 'wp_print_scripts', 'gfd_theme_scripts' );
@gofishwbeeler
gofishwbeeler / functions.php
Last active Apr 2, 2019
Loads a specific stylesheet for your Wordpress theme
View functions.php
function gfd_stylesheets()
{
wp_enqueue_style('my-theme-css', get_template_directory_uri() . '/styles.css', array(), '1.0.0', 'all');
}
add_action('wp_print_styles', 'gfd_stylesheets', PHP_INT_MAX);
@gofishwbeeler
gofishwbeeler / functions.php
Created Apr 2, 2019
De-register all Styles from Wordpress
View functions.php
function gfd_remove_all_styles() {
global $wp_styles;
$wp_styles->queue = array();
}
add_action('wp_print_styles', 'gfd_remove_all_styles', 100);
@gofishwbeeler
gofishwbeeler / functions.php
Created Apr 2, 2019
De-registers all scripts in Wordpress
View functions.php
function gfd_remove_all_scripts() {
global $wp_scripts;
$wp_scripts->queue = array();
}
add_action('wp_print_scripts', 'gfd_remove_all_scripts', 100);
@gofishwbeeler
gofishwbeeler / wp-footer
Created Apr 2, 2019
Wp footer hook example
View wp-footer
@gofishwbeeler
gofishwbeeler / wp-head
Last active Apr 2, 2019
Wphead hook example
View wp-head
<?php wp_head(); ?>
@gofishwbeeler
gofishwbeeler / license-badges.md
Created Aug 14, 2018 — forked from lukas-h/license-badges.md
License Badges for your Project
View license-badges.md

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
  • Github has a new autodetection of the LICENSE file, which shows up the license at the repo overview
@gofishwbeeler
gofishwbeeler / .htaccess
Created Mar 31, 2017
CI: Simple .htaccess using mod_rewrite for CodeIgniter
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
You can’t perform that action at this time.