Forum Replies Created
-
AuthorPosts
-
eskapeMember
Fixed it! When I registered the widget area I used
if ( ! is_home() )
return;I just deleted it and it shows up on every page. Rookie Mistake!
eskapeMemberThanks for your response but I'm looking for a way to do it without the use of a plugin. I know it can be coded I'm just not sure what I'm doing wrong.
eskapeMemberWow, I feel so stupid right now. I figured out how to fix the problem. Sometimes you get so caught up in coding, that you forget that there is built in options to do certain things. I fixed the problem by going to settings >> media and changing the thumbnail size. Then I used the regenerate thumbnail plugin.
eskapeMemberI forgot to add my website to the post so here is the link http://genesistest.cinevallarta.com/
eskapeMemberI fixed it!!!!! Mary you were right but I needed one extra line of code. I'll explain what I did so if anyone else has the same problem they can fix it.
in my child theme's functions.php file I registered the widget areas and created the add_action function using the code below so they would show up on certain hooks on the homepage.
//* Slider Widget Area
genesis_register_sidebar( array(
‘id’ => ‘slider-widget-area’,
‘name’ => ‘Slider Widget Area’,
‘description’ => ‘This is the homepage slider widget area.’,
) );add_action( ‘genesis_before_content’, ‘slider_widget_area_sidebar’ );
/** Loads a new sidebar after the content */
function slider_widget_area_sidebar() {
if ( ! is_home() )
return;
echo ‘<div class=”slider-widget-area”>’;
dynamic_sidebar( ‘slider-widget-area’ );
echo ‘</div>’;}
//* Featured Post Widget Area
genesis_register_sidebar( array(
‘id’ => ‘featured-post-widget-area’,
‘name’ => ‘Featured Post Widget Area’,
‘description’ => ‘This is the homepage featured post widget area.’,
) );add_action( ‘genesis_before_content’, ‘featured_post_widget_area_sidebar’ );
/** Loads a new sidebar after the content */
function featured_post_widget_area_sidebar() {
if ( ! is_home() )
return;
echo ‘<div class=”featured-post-widget-area”>’;
dynamic_sidebar( ‘featured-post-widget-area’ );
echo ‘</div>’;
}Next I created a home.php file in my child theme because my child theme didn't come with one. I took Mary's advice and added the remove_action code but I needed an extra line of code to bring the rest of the site back. This is the code I added to the home.php file.
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
genesis();
the code Mary left out was "genesis();"
Thanks Mary! I hope this can help someone else too.
eskapeMemberHi Mary thanks for your response. I never made any changes to the framework files. When I bought genesis it came with a simple child theme called "genesis-sample". It only had a functions.php file and style.css file. I added the code above to functions.php file in the childe theme.
My child theme didn't come with a home.php file so I created one and added the remove_action code but it didn't work. The only thing that happened was the homepage was completely white and no content. Yesterday I added that remove_action code to my functions.php file and it got rid of the recent posts at the bottom of the page but it also left the rest of my pages / posts blank.
Any ideas?
eskapeMemberI'm sorry maybe I didn't say it but I am using a child theme. I added that code to the functions.php file in the child theme. I think I might have to remove the loop or modify it. Do you have any suggestions on how I can remove the recent posts from th bottom of the home page?
-
AuthorPosts