Skip to content

Instantly share code, notes, and snippets.

@neilgee
neilgee / footermenu.php
Last active Oct 21, 2019
Add Footer or Tertiary Menu to Genesis Child Theme
View footermenu.php
<?php
//do not add in opening php tag
/**
* Add in Footer or Tertiary Menu
*
* @package Genesis Tertiary Menu
* @author Neil Gee
* @link http://wpbeaches.com/add-footer-menu-genesis-child-theme/
* @copyright (c)2014, Neil Gee
@neilgee
neilgee / allie.html
Last active Aug 29, 2015
All IE Child Theme
View allie.html
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/css/all-ie.css" />
<![endif]-->
@neilgee
neilgee / allie.html
Last active Aug 29, 2015
All IE Parent Theme
View allie.html
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/all-ie.css" />
<![endif]-->
@neilgee
neilgee / ie8.html
Last active Aug 29, 2015
IE 8 WordPress Child
View ie8.html
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie-8.css" />
<![endif]-->
@neilgee
neilgee / ie8andlower.html
Last active Aug 29, 2015
IE 8 and Lower
View ie8andlower.html
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie-8andlower.css" />
<![endif]-->
@neilgee
neilgee / ie7lower.html
Last active Aug 29, 2015
IE 7 and lower
View ie7lower.html
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie-7andlower.css" />
<![endif]-->
@neilgee
neilgee / ie9higher.html
Last active Aug 29, 2015
IE 9 and Higher
View ie9higher.html
<!--[if gte IE 9]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie-9andhigher.css" />
<![endif]-->
@neilgee
neilgee / ie9.html
Last active Aug 29, 2015
IE 9 and Higher
View ie9.html
<!--[if gt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/css/ie-9andhigher.css" />
<![endif]-->
@neilgee
neilgee / a-cpt.php
Last active Aug 8, 2020
CPT (Custom Post Type) - WordPress Plugin - there are 2 snippets here - the one name - cpt-hide.php hides the single and archive views, the other one is normal
View a-cpt.php
<?php
/*
Plugin Name: Testimonials Custom Post Type
Plugin URI: http://wpbeaches.com/create-custom-post-types-in-genesis-child-theme-in-wordpress/
Description: Testimonials Custom Post Types
Author: Neil Gowran
Version:1.0.0
Author URI:http://wpbeaches.com
*/
@neilgee
neilgee / front-page.php
Last active Aug 29, 2016
Genesis Remove Home Page Content
View front-page.php
<?php //<~ Add me in
add_action( 'genesis_before_content', 'ng_home_page_widgets' );
/*
* Add the home widgets in place
*/
function ng_home_page_widgets() {
genesis_widget_area ('content-1', array(