Forum Replies Created
-
AuthorPosts
-
RitzyThemesMember
well you done nothing wrong, but how you are displaying you homepage?? because the above code is 100% correct and only display the widget area for homepage.
Get free and premium Genesis Child Themes
RitzyThemesMemberWell if you want keep sidebar at homepage and also want to embed the slider you can do it via hook and its an easy way.
Go to WP-Admin > Appearance > Editor and start editing functions.php file.
[note: before making any changes please do backup of your function.php file.]
add_action( 'genesis_after_header', 'child_after_header' ); function child_after_header() { if ( is_home() || is_page( 'home' ) ) { //* create a widget area only for homepage. genesis_widget_area( 'home-after-header', array( 'before' => '<div class="meta-slider-block"><div class="wrap">', 'after' => '</div></div>', ) ); } } //* register new widget area in admin area. genesis_register_sidebar( array( 'id' => 'home-after-header', 'name' => 'Home - After Header', 'description' => 'use text-widget to add slider shortcode', ) );
Now go to widget and there you will able to see new Widget block "Home - After Header"
Add Text Widget in it and save your meta slider shortcode.
So that's how you can create full width slider block before site-inner and use as you like,
Get free and premium Genesis Child Themes
RitzyThemesMemberHi Kate!
kindly describe how you are embedding this slider in your homepage? are you using hook or just adding shortcode in post to embed the slider?
Get free and premium Genesis Child Themes
RitzyThemesMemberVisit http://jetpack.me/ to get the complete list of features available.
Get free and premium Genesis Child Themes
RitzyThemesMemberwell you don't need to hard code anything, Genesis is already offering such services on it own behalf,
just go to Admin Area > Genesis > Content Archives and make changes as you like.
But if you want to display full content only for home_page.php. you can try following in your home_page.php
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); remove_action( 'genesis_post_content', 'genesis_do_post_content' ); add_action( 'genesis_entry_content', 'childtheme_do_post_content' ); add_action( 'genesis_post_content', 'childtheme_do_post_content' ); function childtheme_do_post_content() { the_content( __( '[Read more...]', 'genesis' ) ); }
Get free and premium Genesis Child Themes
January 16, 2015 at 9:55 pm in reply to: How To Increase The Header size in Generate Pro Theme #137735RitzyThemesMemberCaution: Always save backup before making any changes without developer.
You can change the dimension from functions.php file of your theme
find the following in your functions.php
//* Add support for custom header add_theme_support( 'custom-header', array( 'header_image' => '', 'header-selector' => '.site-title a', 'header-text' => false, 'height' => 60, 'width' => 300, ) );
just change the values of
'height' => 60, 'width' => 300,
and get the result after updating functions.php file.
Get free and premium Genesis Child Themes
RitzyThemesMemberif you are looking for a complete deal you can try Jetpack by WordPress.com. Its awesome plugin with alot of different features.
Get free and premium Genesis Child Themes
RitzyThemesMemberHi ptcjosh,
you can do that by simply,
add_action( 'genesis_before_entry', 'childtheme_before_entry' ); /** * childtheme_before_entry */ function childtheme_before_entry() { //* get the post format $post_format = get_post_format(); if ( $post_format == 'aside' ) { remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_post_title', 'genesis_do_post_title' ); } else { add_action( 'genesis_entry_header', 'genesis_do_post_title' ); add_action( 'genesis_post_title', 'genesis_do_post_title' ); } }
i hope, it will work for you.
Get free and premium Genesis Child Themes
-
AuthorPosts