Forum Replies Created
-
AuthorPosts
-
robgolbeckMember
I found a solution in this tutorial by Bill Erickson:
Add this to the top of your child theme's functions.php file:
add_action('genesis_setup','child_theme_setup', 15);
function child_theme_setup() {}
(As explained in the tutorial: "This setup function attaches all of the site-wide functions to the correct actions and filters. All the functions themselves are defined below this setup function.")
Then within the setup function, add this to remove the default footer:
remove_action( 'genesis_footer', 'genesis_do_footer' );
and this to add your custom footer:
add_action( 'genesis_footer', 'hc_footer' );
(Note, I've prefixed my footer function with "hc_", but you'll want to use whatever makes sense for your own custom footer).
Next, add your custom footer function below the setup function, like this:
function hc_footer() {
// your custom footer stuff
}So your functions.php file would now look something like this:
// Child Theme Setup
add_action('genesis_setup','child_theme_setup', 15);
function child_theme_setup() {
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'hc_footer' );
}// Custom Footer
function hc_footer() {
// Footer stuff goes here
}
The tutorial is worth checking out for a more detailed explanation on this solution (and other ways create customize Genesis) - artofblog.com/building-a-genesis-child-theme/. It really helped me wrap my head around Genesis a little better. 馃檪
March 9, 2013 at 12:57 pm in reply to: Customize "Return to Top" snippet produces server error #25205robgolbeckMemberrobgolbeckMemberrobgolbeckMemberI'm having the same problem. I've pasted the snippet into functions.php for customizing the entire footer from here聽http://my.studiopress.com/snippets/footer/聽but it's still showing the default footer. Also tried Susan's suggestion to remove聽add_action( ‘genesis_footer’, ‘custom_footer’ ); but that didn't work either.
All I want to do is remove the "return to top" link and have a simple copyright statement centered at the bottom of the page... I'll try the Simple Edits plugin if necessary, but that seems like overkill for a relatively small change. I'd rather just use functions.php.
Thanks!
robgolbeckMemberAwesome - thank you for the link Susan! The shared hosting explanation makes sense.
If anyone is looking to customize the widget, check out聽http://www.1stwebdesigner.com/css/customize-twitter-search-widgets/. I ended up adding quite of bit of my own custom styling, but that post was a good starting point.
robgolbeckMemberHi akmisha,
I was looking to do the same thing. Here's what I did:
In the home.php聽file, delete (or comment out) this:
remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'eleven40_grid_loop_helper' ); /** Add support for Genesis Grid Loop */ function eleven40_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 1, 'feature_image_size' => 0, 'feature_image_class' => 'alignleft post-image', 'feature_content_limit' => 0, 'grid_image_size' => 'grid-thumbnail', 'grid_image_class' => 'alignnone', 'grid_content_limit' => 250, 'more' => __( '[Continue reading]', 'genesis' ), ) ); } else { genesis_standard_loop(); } }
and replace it with this:
remove_action( 'genesis_loop', 'genesis_grid_loop' );
Not sure if this is the best way to go about it, as I'm fairly new to Genesis, so keep that in mind. Perhaps someone more knowledgeable could comment on whether or not there is a better solution. But it worked for me. 馃檪
-
AuthorPosts