I am globally removing the site header from entire site. I’m not using the Astra Pro version. So I am not sure that this option is available or not. I used following tips which I am sharing at below: Open your functions.php file of your Astra child theme and drop this simple PHP code there.… Continue Reading
site header
Moving the front page 1 widget area above the site header on Home Page of Altitude Pro Theme
Step 1: Removing the code of front page 1 widget areas from altitude_front_page_widgets() function. This function is locating in front-page.php file.
1 2 3 4 5 6 7 |
genesis_widget_area( 'front-page-1', array( 'before' => '<div id="front-page-1" class="front-page-1"> <div class="image-section"> <div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-1' ) . '"> <div class="wrap">', 'after' => '</div></div></div></div>', ) ); |
Step 2: Creating an new function and putting the above code in this function. Here is the complete code of that function. You will add this function above the genesis() function of front-page.php… Continue Reading
Creating Header Middle Widget Area between Site Title and Header Right Widget Area
In this article I am using one of my super cool plugin “Genesis Widget Areas Generator“. See the all steps below: Creating The Header Middle Widget Area Adding Content in Header Middle Widget Area Navigate to Appearance -> Widgets You will get new widget area “Header Middle” Drag&Drop the required widget in this area Now… Continue Reading
Add Avatar or Logo Before Site Title
Here is the snippet about this small things. Adding My Avatar Before The Site Title
1 2 3 4 5 6 7 8 |
add_action( 'genesis_site_title', 'gd_add_my_avatar', 9 ); function gd_add_my_avatar() { printf( '<div %s>', genesis_attr( 'my-avatar' ) ); echo get_avatar( 'ENTER YOUR EMAIL ID HERE', 64 ); echo '</div>'; } |
Here 64 is the avatar size. You will adjust the avatar size by editing this value. Adding Site Logo Before The Site Title
1 2 3 4 5 6 7 8 9 10 11 12 |
add_action( 'genesis_site_title', 'gd_add_site_logo', 9 ); function gd_add_site_logo() { $logo = 'ENTER YOUR LOGO PATH HERE'; printf( '<div %s>', genesis_attr( 'site-logo' ) ); printf( '<a href="%s" title="%s"><img src="%s" alt="%s"/></a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), $logo, esc_attr( get_bloginfo( 'name' ) ) ); echo '</div>'; } |
Note: You will add some custom CSS in your style.css file for better placement.