Skip to content

Instantly share code, notes, and snippets.

@yudiqing
yudiqing / tw_remove_menu_pages.php
Created February 22, 2016 07:11 — forked from michael-cannon/tw_remove_menu_pages.php
Remove custom post type submenu pages.
<?php
function tw_remove_menu_pages() {
// remove testimonials menu section
// remove_menu_page( 'edit.php?post_type=testimonials-widget' );
// remove categories
remove_submenu_page( 'edit.php?post_type=testimonials-widget', 'edit-tags.php?taxonomy=category&amp;post_type=testimonials-widget' );
// remove tags
@yudiqing
yudiqing / style.css
Created January 8, 2016 14:51 — forked from srikat/style.css
Sample CSS for styling Gravity Forms in Genesis. http://sridharkatakam.com/sample-css-styling-gravity-forms-genesis/
.entry .gform_wrapper {
max-width: 100%;
margin-bottom: 28px;
}
.gform_wrapper ul li.gfield {
margin-bottom: 20px;
}
.entry .gform_wrapper input[type=text],
<?php
add_action( 'wp_head', 'custom_genesis_page_builder_styles' );
/**
* Echo the necessary "Full Page Width" styles into the head of the page.
* Credit for the following CSS goes to the developer of the "Genesis Dambuster"
* Plugin as this CSS is an edited version of that Plugin's full-width.css file.
*/
function custom_genesis_page_builder_styles() {
echo '
<style type="text/css">