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
.entry .gform_wrapper { | |
max-width: 100%; | |
margin-bottom: 28px; | |
} | |
.gform_wrapper ul li.gfield { | |
margin-bottom: 20px; | |
} | |
.entry .gform_wrapper input[type=text], |
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
<?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"> |
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 new tab called "mytab | |
/*Original author is Ultimate Member*/ | |
add_filter('um_account_page_default_tabs_hook', 'my_custom_tab_in_um', 100 ); | |
function my_custom_tab_in_um( $tabs ) { | |
$tabs[800]['mytab']['icon'] = 'um-faicon-pencil'; | |
$tabs[800]['mytab']['title'] = 'My Custom Tab'; | |
$tabs[800]['mytab']['custom'] = true; | |
return $tabs; | |
} |
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
//if you want to set up a admin page for a particular administrator or user, use this snippets below. | |
add_action('admin_menu', 'remove_admin_menu_links'); | |
function remove_admin_menu_links(){ | |
$user = wp_get_current_user(); | |
if( $user && isset($user->user_email) && $user->user_email === '[email protected]' ) { | |
//replace [email protected] with the email address for whom you want to retain the pages. | |
remove_menu_page('tools.php'); | |
remove_menu_page('themes.php'); | |
remove_menu_page('options-general.php'); |
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_action('admin_menu', 'remove_admin_menu_links'); | |
function remove_admin_menu_links(){ | |
$user = wp_get_current_user(); | |
if( $user && isset($user->user_email) && $user->user_email !== '[email protected]' ) { | |
//replace [email protected] with the email address for whom you want to retain the pages. | |
remove_menu_page('tools.php'); | |
remove_menu_page('themes.php'); | |
remove_menu_page('options-general.php'); | |
remove_menu_page('plugins.php'); | |
remove_menu_page('users.php'); |