Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add content to blog page template BELOW posts
- This topic has 9 replies, 3 voices, and was last updated 9 years, 11 months ago by Genesis Developer.
-
AuthorPosts
-
February 19, 2015 at 10:42 am #141318gregpMember
Everything I have found, explains how to add content above blog posts.
I want to have a form appear at the bottom of every blog post. I use the stretch theme.
I have tried adding it to page_blog.php:
<?php //* Template Name: Blog //* Show page content above posts add_action( 'genesis_loop', 'genesis_standard_loop', 5 ); genesis(); ?> added content here
But the problem with that is that it shows up below the footer. I have the simple hooks plugin, but do not see something specifically for blog pages that would occur right below the post.
Perhaps above the comment box and below the related posts.... Or even below the comment box. Just so that it is not below the footer and comes after the post.
Can anyone provide some help with this?
http://www.felixandfingers.com/harley-davidson-museum-milwaukee/February 19, 2015 at 11:03 am #141319Genesis DeveloperMemberJust enable the after entry widget area for single blog post. Add this in your functions.php file
add_theme_support( 'genesis-after-entry-widget-area' );
February 19, 2015 at 11:27 am #141321gregpMemberThank you. I enabled that widget area, and then added two widgets to it.
One was a gravity form widget. The other was just a text widget.
Neither of them appear though on the blog pages. I cleared all the caches, as well.
Is it possible that the stretch theme doesn't support genesis-after-entry-widget-area? Do you have any other ideas on how I can correct the current problem or take another approach?
Thank you for your time and help.
February 19, 2015 at 11:30 am #141323Brad DaltonParticipantFebruary 19, 2015 at 11:46 am #141326gregpMemberBrad,
I don't mind paying for the help, but are you confident that would work, after seeing what I have already tried above?
February 19, 2015 at 11:48 am #141327Genesis DeveloperMemberadd this in your functions.php file
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
EDITED:
Your theme is not supporting HTML5 markup. So use this hook
add_action( 'genesis_after_post', 'genesis_after_entry_widget_area' );
February 19, 2015 at 11:52 am #141329gregpMemberThank you, again.
At the bottom of the function.php page (in the child theme) I have added:
add_theme_support( 'genesis-after-entry-widget-area' );
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );But it is still not appearing on the blog pages.
February 19, 2015 at 11:56 am #141331Genesis DeveloperMemberplease replace this
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
by
add_action( 'genesis_after_post', 'genesis_after_entry_widget_area' );
February 19, 2015 at 12:15 pm #141337gregpMemberGreat! Works perfectly! Thank you!
February 19, 2015 at 12:16 pm #141339Genesis DeveloperMemberYou are welcome. Please mark it as RESOLVED.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.