Community Forums › Forums › Archived Forums › General Discussion › Feature Posts Slider
Tagged: featured posts, slider
- This topic has 9 replies, 2 voices, and was last updated 7 years, 9 months ago by NYCBee.
-
AuthorPosts
-
January 5, 2017 at 4:57 pm #198828NYCBeeMember
Is there a way to display a featured posts slider near the top of my website? I would not want it full width but rather the same width as the content+sidebars.
January 6, 2017 at 2:20 am #198841Brad DaltonParticipantWhat theme are you using? Please link to your site.
You can use the Genesis Responsive slider widget as it pulls in the featured image from each post.
January 6, 2017 at 10:23 am #198869NYCBeeMemberThanks Brad.
It's http://www.financewithstickfigures.com and I am using straight Genesis framework.
January 6, 2017 at 5:37 pm #198893NYCBeeMemberI downloaded the plug-in. It says I place it in any widget area but I want it in the center of the page taking up the same width as the content and the sidebar. Right now the only options for widget areas I see are Header Right, Sidebar, and Footer. Is there a way to create a widget area just below the header? Thanks
January 6, 2017 at 5:56 pm #198898NYCBeeMemberI found The Genesis - Simple Hooks Plugin as well as this set of instructions on how to create a new widget area. http://my.studiopress.com/tutorials/register-widget-area/
I took this code from the link above and tried to paste it in the plug in section for 'Genesis_Before_Content'. It just spit it out as text directly on the website rather than creating a widget area. I also wasn't sure whether to check execute php or execute shortcode but I tried all combinations.
Any idea what I'm doing wrong?
//* Register center homepage widget area
genesis_register_sidebar( array(
'id' => 'center-homepage',
'name' => __( 'Center Homepage', 'Genesis' ),
'description' => __( 'This is a widget area that can be placed in center of homepage', 'Genesis' ),
) );Is this part supposed to go into home.php rather than the plug in? I can't find home.php. And if I did, what do I enter into the plug-in? The sample seems like it's for after a post and I want it on the home page. Sorry I'm so confused!
January 7, 2017 at 1:41 am #198918Brad DaltonParticipantJanuary 7, 2017 at 12:01 pm #198957NYCBeeMemberThanks Brad. Does it matter where I put it in functions.php? Also, I adapted the code from something that was supposed to be a sidebar and am not sure it's correct (it still says genesis_register_sidebar( array( but I don't know what to change it to). How will it know that I want it right under the header unless I put it in a specific place in functions.php?
January 7, 2017 at 12:11 pm #198959Brad DaltonParticipantChange the hook
add_action( 'genesis_after_header', 'sp_after_post_widget' ); function sp_after_post_widget() { genesis_widget_area( 'center-homepage', array( 'before' => '<div class="after-post widget-area">', 'after' => '</div>', ) ); }
January 7, 2017 at 12:55 pm #198964NYCBeeMemberI see it now! Do you know how to change its size? I want the gray box around it and the slider carousel itself to be the same width as the content and sidebar combined. Right now it's looking a little wonky as you can see on the site. But it's on there now!
Thanks.
January 7, 2017 at 12:58 pm #198965NYCBeeMemberTo clarify, I see in Slider Settings an option to change the size but it's more the size of the gray box around it also shrinking and the alignment so that it's centered on top of the content and the sidebar.
And is there a way to add ... at the end of the excerpt in the slider? It just ends abruptly right now and I don't see anything in Genesis->Slider Settings to change this.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.