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_filter( 'generateblocks_defaults', function( $defaults ) { | |
$defaults['container']['paddingTop'] = ''; | |
$defaults['container']['paddingRight'] = ''; | |
$defaults['container']['paddingBottom'] = ''; | |
$defaults['container']['paddingLeft'] = ''; | |
return $defaults; | |
} ); |
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
.article a { | |
box-shadow: inset 0 -10px 0 rgba(0,0,0,0.20); | |
} | |
need to speicify the link with a selector |
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
https://www.wpbeginner.com/wp-themes/how-to-add-custom-dashboard-widgets-in-wordpress/ | |
Add to functions.php | |
Don't forget to change email | |
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets'); | |
function my_custom_dashboard_widgets() { | |
global $wp_meta_boxes; |
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
/* Custom Color Palette Changes Colors in Customizer */ | |
add_filter( 'generate_default_color_palettes', 'mj_custom_color_palettes' ); | |
function mj_custom_color_palettes( $palettes ) { | |
$palettes = array( | |
'#ffffff', | |
'#fafafa', | |
'#e1e1e1', | |
'#191919', | |
'#000000', |
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
https://generatepress.com/forums/topic/generate-blocks-headline-icon-to-the-right/?fbclid=IwAR28o2nTJMjCFqAfFb6drDOqFOtGxh6BSHrTzgbJ68EhvwA0LQdUY_ro4j0#post-1300519 |
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
https://stackoverflow.com/questions/8127453/redirect-after-login-on-wordpress/8127629#8127629 | |
Put in functions.php change '/members-home-page' to the slug of the page you want them to go to | |
// Redirect Logged in Users to Members Only Homepage | |
function admin_default_page() { | |
return '/members-home-page'; | |
} | |
add_filter('login_redirect', 'admin_default_page'); |
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
body { | |
font-size: 22px; | |
} | |
@media (min-width: 320px) { | |
body { | |
font-size: calc(20px + (22 - 20) * ((100vw - 320px) / (1200 - 320))); | |
} | |
} |
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
* Updated 5/16/20 Based on 1200 wide | |
** Typography Generator: https://websemantics.uk/tools/responsive-font-calculator/ | |
/* --------------- Fluid Typography ------------------ | |
-----per css tricks article: https://css-tricks.com/snippets/css/fluid-typography/ --------------------------------- */ | |
/* Calculation -------------------------------------------------- | |
font-size: calc(min font size in px + (max font size DO NOT INCLUDE PX - min font size NO PX) * ((100vw - min viewport width px) / (max minus min viewport width no px))); |
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
/** | |
* Replace Howdy With Hello | |
*/ | |
function replace_howdy( $wp_admin_bar ) { | |
$my_account=$wp_admin_bar->get_node('my-account'); | |
$newtitle = str_replace( 'Howdy,', 'Hello,', $my_account->title ); | |
$wp_admin_bar->add_node( array( | |
'id' => 'my-account', | |
'title' => $newtitle, |