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
<title><?php if ( is_category() ) { | |
echo 'Category Archive for "'; single_cat_title(); echo '" | '; bloginfo( 'name' ); | |
} elseif ( is_tag() ) { | |
echo 'Tag Archive for "'; single_tag_title(); echo '" | '; bloginfo( 'name' ); | |
} elseif ( is_archive() ) { | |
wp_title(''); echo ' Archive | '; bloginfo( 'name' ); | |
} elseif ( is_search() ) { | |
echo 'Search for "'.wp_specialchars($s).'" | '; bloginfo( 'name' ); | |
} elseif ( is_home() || is_front_page() ) { | |
bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
// primary gulp build | |
gulp.task('sass', function () { |
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 bootstrap_card( $atts, $content = null ) { | |
extract( shortcode_atts( array( | |
'width' => '300px', | |
'img' => '', | |
'title' => '', | |
'alt' => '' | |
), $atts ) | |
); |
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 | |
/** | |
* Gravity Forms Bootstrap Styles | |
* | |
* Applies bootstrap classes to various common field types. | |
* Requires Bootstrap to be in use by the theme. | |
* | |
* Using this function allows use of Gravity Forms default CSS | |
* in conjuction with Bootstrap (benefit for fields types such as Address). | |
* |
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
function numbered_pagination($pages = '', $range = 2) { | |
$showitems = ($range * 2)+1; | |
global $paged; | |
if(empty($paged)) $paged = 1; | |
if($pages == '') | |
{ | |
global $wp_query; | |
$pages = $wp_query->max_num_pages; |
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 | |
// Setup favicon call | |
function add_favicon() { | |
$favicon_url = get_stylesheet_directory_uri() . '/library/images/favicon.png'; | |
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />'; | |
} | |
// Adds favicon to WP Frontend and WP Dashboard |
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 and optimize Google Fonts | |
// | |
// Add Google Fonts | |
// Enqueue google api webfont | |
function mod_fonts_enqueue() { |
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:heading {"level":1} --> | |
<h1>This is a heading (H1)</h1> | |
<!-- /wp:heading --> | |
<!-- wp:heading --> | |
<h2>This is a heading (H2)</h2> | |
<!-- /wp:heading --> | |
<!-- wp:heading {"level":3} --> | |
<h3>This is a heading (H3)</h3> |
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
// Add the action | |
add_action('init','sample_remove_product_meta'); | |
// Declare the function | |
function sample_remove_product_meta() { | |
remove_action('woocommerce_single_product_summary','woocommerce_template_single_meta',40); | |
} | |
// First item in remove_action is the hook | |
// Second item in remove_action is what was hooked |
OlderNewer