Reposition Genesis header right widget
//Custom Header
function sample_genesis_do_header() {
global $wp_registered_sidebars;
if ( ( isset( $wp_registered_sidebars[‘header-right’] ) && is_active_sidebar( ‘header-right’ ) ) || has_action( ‘genesis_header_right’ ) ) {
genesis_markup( array(
‘html5’ => ‘
Similar Posts
Disable Cache while Chrome Developer Tools is open
Instead of needing to clear your cache everytime you can enable this option. In Chrome, open Developer Tools (Press F12 on Windows or Cmd + Opt + I on Mac, or simply go to Chrome Menu > More tools > Developer Tools and a panel will appear. Find the Network section and check the Disable cache (while DevTools is open) checkbox….
Modal Popup
Javascript modal popup on page load, and exit, etc., with Jquery and Bootstrap. Sources: JS Onload: JS Mouseleave: HTML: × Shopping, Dining, Entertainment or Beaches, Golf and Area Attractions! Sarasota has it all! Request your visitors brochure today! Backdrop Opacity .modal-backdrop { opacity:0.7 !important; }
WordPress Disable Password Change Nofitication
There are a few older functions that you would implement via your own custom plugin, but I found that none of them work. This one didn’t work: if ( !function_exists( ‘wp_password_change_notification’ ) ) { function wp_password_change_notification() {} } This one didn’t work: if ( !function_exists(‘wp_new_user_notification’) ) { function wp_new_user_notification( ) {} } This one didn’t…
non-www to WWW in htaccess
## Begin – Force www # # If you need to redirect some pages, or set a canonical non-www to # www redirect (or vice versa), place that code here. Ensure those # redirects use the correct RewriteRule syntax and the [R=301,L] flags. #Force www and https: RewriteEngine on RewriteCond %{HTTP_HOST} ^mydomain.com [NC] RewriteRule ^(.*)$…
Import CSV to PHPMyAdmin
Create the CSV file in spreadsheet software like Excel or Calc. Include the columns from your database that you want to import data to. Then save the spreadsheet to a CSV file. Open the CSV file and cut the column header row. Save the final CSV. Paste the cut header row names into a blank text document in your…
Genesis archive change H1 to H2
//*Changing Genesis H1 Post Titles to H2 add_filter( ‘genesis_post_title_output’, ‘ac_post_title_output’, 15 ); function ac_post_title_output( $title ) { if ( is_home() || is_archive() ) $title = sprintf( ‘ %s ‘, apply_filters( ‘genesis_post_title_text’,get_the_title() ) ); return $title; }