Skip to content

Instantly share code, notes, and snippets.

@fovoc
fovoc / my-fitvids.js
Created May 10, 2015 09:30
my-fitvids.js
(function($) {
// Inside of this function, $() will work as an alias for jQuery()
// and other libraries also using $ will not be accessible under this shortcut
// Target your .container, .wrapper, .post, etc.
$("body").fitVids();
})(jQuery);

Star Wars: The Force Awakens in CSS

CSS animated title from the recent trailer. So excited!

Learn how to create this and much more with my email course:

https://cssanimation.rocks/courses/animation-101/

<3 Use code "codepen" to save 20% off the usual course price <3

Marvel Logo animation | pure CSS

watching the new daredevil series on netflix led me to doing this ;)

webkit only (requires -webkit-background-clip)

A Pen by Gregor Adams on CodePen.

License.

@fovoc
fovoc / full-width-shop-page.php
Created April 18, 2015 11:50
Shoestrap 3 Woo child - full width shop page
<?php
/**
* Full width layout for main shop page
*
* How to use:
* Save this file as `wp-contents/mu-plugins/full-width-shop-page.php`
*/
function full_width_shop_page() {
if ( is_shop() ) {
global $ss_layout;
@fovoc
fovoc / remove-woocommerce-breadcrumbs.php
Created April 18, 2015 10:55
Shoestrap 3 Woo child - remove breadcrumbs
<?php
/**
* Remove default WooCommerce breadcrumbs from Shoestrap Woo child theme
*
* How to use:
* Save this file as `wp-contents/mu-plugins/remove-woocommerce-breadcrumbs.php`
*/
function remove_woocommerce_breadcrumb() {
remove_action( 'shoestrap_pre_wrap', 'woocommerce_breadcrumb', 99 );
}
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=PATH_TO_WORDPRESS # <-- wordpress root directory
@fovoc
fovoc / functions.php
Created March 18, 2015 16:11
Shoestrap 3 - use a container in pre_footer
<?php
function remove_pre_footer_markup() {
$action = 'shoestrap_pre_footer';
remove_action( $action, 'shoestrap_ewa_'.$action, 99 );
}
add_action( 'wp', 'remove_pre_footer_markup' );
function add_pre_footer_markup() {
global $ss_framework;
@fovoc
fovoc / functions.php
Created March 8, 2015 15:40
Shoestrap 3 - replace default meta-data function with your own
<?php
function remove_default_meta() {
global $ss_blog;
if ( ! class_exists( 'BuddyPress' ) || ( class_exists( 'BuddyPress' ) && ! shoestrap_is_bp() ) ) {
remove_action( 'shoestrap_entry_meta', array( $ss_blog, 'meta_custom_render' ) );
}
}
add_action( 'init', 'remove_default_meta' );
@fovoc
fovoc / functions.php
Created March 8, 2015 15:21
Shoestrap 3 - wrapper for Extra Header, Jumbotron, Secondary NavBar and Breadcrumbs
<?php
add_action( 'shoestrap_pre_wrap', 'opening_tag', 1 );
add_action( 'shoestrap_pre_wrap', 'closing_tag', 99 );
function opening_tag() {
echo '<div id="my_header">';
}
function closing_tag() {