This file contains hidden or 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
/* Hide arrow next to menu item with sub-menu items in Astra theme - BasicWP.com */ | |
.main-header-bar .menu-item-has-children>a:after, | |
.main-header-bar .page_item_has_children>a:after { | |
content: none; | |
} |
This file contains hidden or 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
//* Customize post info in Genesis | |
add_filter( 'genesis_post_info', 'bw_post_info_filter' ); | |
function bw_post_info_filter($post_info) { | |
if ( !is_page() ) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; | |
return $post_info; | |
}} |
This file contains hidden or 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
//* Remove categories from post meta - shared on basicwp.com | |
function the_category_filter($thelist,$separator=' ') { | |
if(!defined('WP_ADMIN')) { | |
//list the category names to exclude | |
$exclude = array('Featured', 'Category #1'); | |
$cats = explode($separator,$thelist); | |
$newlist = array(); | |
foreach($cats as $cat) { | |
$catname = trim(strip_tags($cat)); | |
if(!in_array($catname,$exclude)) |
This file contains hidden or 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
//* Exclude Categories from Category Widget - http://www.basicwp.com/exclude-categories-from-category-widgets-in-wordpress/ | |
function custom_category_widget($args) { | |
$exclude = "3,4"; // Category IDs to be excluded | |
$args["exclude"] = $exclude; | |
return $args; | |
} | |
add_filter("widget_categories_dropdown_args","custom_category_widget"); |
This file contains hidden or 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
//* Exclude Categories from Category Widget - basicWP.com | |
function custom_category_widget($args) { | |
$exclude = "3,4"; // Category IDs to be excluded | |
$args["exclude"] = $exclude; | |
return $args; | |
} | |
add_filter("widget_categories_args","custom_category_widget"); |
This file contains hidden or 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 multiple Google Fonts in Genesis - http://www.basicwp.com/?p=2054 | |
add_action( 'wp_enqueue_scripts', 'genesis_ig_multiple_google_fonts' ); | |
function genesis_ig_multiple_google_fonts() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato|Open+Sans|Oswald:400,300,700', array(), CHILD_THEME_VERSION ); | |
} |
This file contains hidden or 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 Google Font in Genesis - http://www.basicwp.com/?p=2054 | |
add_action( 'wp_enqueue_scripts', 'genesis_ig_google_fonts' ); | |
function genesis_ig_google_fonts() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato', array(), CHILD_THEME_VERSION ); | |
} |
This file contains hidden or 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
//* Customize Entry Meta Filed Under and Tagged Under - http://www.basicwp.com/?p=268 | |
add_filter( 'genesis_post_meta', 'ig_entry_meta_footer' ); | |
function ig_entry_meta_footer( $post_meta ) { | |
$post_meta = '[post_categories before=""] [post_tags before=""]'; | |
return $post_meta; | |
} |
This file contains hidden or 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
//* Customize Entry Meta Filed Under and Tagged Under - http://www.basicwp.com/?p=268 | |
add_filter( 'genesis_post_meta', 'ig_entry_meta_footer' ); | |
function ig_entry_meta_footer( $post_meta ) { | |
$post_meta = '[post_categories before="Categories: "] [post_tags before="Tags: "]'; | |
return $post_meta; | |
} |
NewerOlder