Move Genesis Single Page/Single Post Title

Try this: add_action( ‘template_redirect’, ‘wpse_124609_remove_titles’ ); /** * Move or remove some post titles. */ function wpse_124609_remove_titles() { if ( is_front_page() ) { remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ ); } else if ( is_page() || is_single() ) { remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ ); add_action( ‘genesis_after_header’, ‘title_slider’ ); } } /** * Add Title Slider to some post titles. … Read more

Modify Genesis Custom Header CSS

Hook onto the same action as the genesis header function and kick out your overriding CSS: function wpse_218701_genesis_header() { ?> <style> body.custom-header #header { background-color: white !important; } </style> <?php } add_action( ‘genesis_header’, ‘wpse_218701_genesis_header’ );

Turn off “This is the Primary Sidebar Widget Area” message

This code handles the sidebar: add_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ ); /** * Echo primary sidebar default content. * * Only shows if sidebar is empty, and current user has the ability to edit theme options (manage widgets). * * @since 1.2.0 */ function genesis_do_sidebar() { if ( ! dynamic_sidebar( ‘sidebar’ ) && current_user_can( ‘edit_theme_options’ ) ) … Read more

if statement for wordpress default featured image on single post

So we have this: if ( is_home() ) { echo ‘<div id=”featured-image-home”><img src=”‘. get_stylesheet_directory_uri() . ‘/images/sample.jpg” /></div>’; } elseif ( is_singular( array( ‘post’ ) ) ! has_post_thumbnail() ){ echo ‘<div id=”featured-image-home”><img src=”‘. get_stylesheet_directory_uri() . ‘/images/blog-banner.jpg” /></div>’; } else ( is_singular( array( ‘post’, ‘page’ ) ) && has_post_thumbnail() ){ echo ‘<div id=”featured-image”>’; echo get_the_post_thumbnail($thumbnail->ID, ‘header’); echo … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)