Forum Replies Created
-
AuthorPosts
-
donmclemanMember
Thank you for the replies, I think I found another way round the problem – but it's too long ago for me to remember 🙂
donmclemanMemberThank you, now I know what I'm doing 🙂
donmclemanMemberSo I would replace 'genesis_entry_footer' with 'genesis_after_entry'?
donmclemanMemberI added the following to functions.php:
//* Add category post navigation (requires HTML5 theme support) add_action('genesis_entry_footer', 'crosswebideas_nav_links', 25 ); function crosswebideas_nav_links() { if( !is_single() ) return; echo ('<h2 class="explore">Explore the next article</h2>'); previous_post_link('<span class="previous-post-link">%link', '%title', TRUE); echo ('<div id="hr_explore"></div>'); next_post_link('<span class="next-post-link">%link', '%title', TRUE); }
donmclemanMemberThird attempt to reply: http://staging.crosswebideas.com/look-for-a-need-find-a-business-idea.html
donmclemanMemberHi, I don't have that plugin installed, I'm trying to cut down on the number of plugins I use so I'd really prefer a code solution.
donmclemanMemberWell, it doesn't actually work... I can see that format working for other functions but it's not working with this one.
This posts both the footer meta and the header meta:
add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { if( !is_home() ) $post_info = '[post_date]'; return $post_info; } add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) { if( is_home() ) $post_meta = '[post_date]'; return $post_meta; }
Any explanation?
donmclemanMemberWell, I would never have worked that out... I must take some sort of intro course.
Thank you!
donmclemanMemberSorry, Brad, I didn't know what this means: 'Conditional tags should come immediately after the function.' You can't mean after the closing curly bracket?
donmclemanMemberThank you, Brad! This is the code I've used and it works:
//* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = '[post_date]'; if( !is_home() ) return $post_info; } //* Customize the entry meta in the entry footer (requires HTML5 theme support) add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) { $post_meta = '[post_date]'; if( is_home() ) return $post_meta; }
I'd also like to remove the footer mark-up on the post as I've given it a border. I thought the following code would work but it doesn't – my php skills are minimal so I can't see what's wrong:
//* Remove the entry footer markup (requires HTML5 theme support) add_filter( 'genesis_entry_footer', 'crosswebideas_footer_markup'); function crosswebideas_footer_markup() { if( !is_home() ) remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); }
Please do you have any suggestions for this part?
donmclemanMemberHey, I got there first 🙂
The reason the tags are displaying is that I copied your code from the email not this thread - in the email the tags are shown as alt codes rather than the symbols.
Lesson learned... thank you 🙂
donmclemanMemberHi, Brad, thanks for helping me out.
This is almost right - it displays the subheading in the right place but the p tags get printed as is. I'm trying to think of a way round that but you could probably get there a bit qicker than me...
donmclemanMemberHi, this is being addressed in the other thread... I'll mark this one as resolved.
donmclemanMemberHi, I want to use it on all posts, on the blog page of excerpts and on each single post. Not pages.
I should have made that clear...
donmclemanMemberI think I should have posted this in the General Discussion forum …it was my first post, so I didn't know 🙂
I'll copy it out and repost. Could a moderator delete this thread?
donmclemanMemberUPDATE: I've figured it out with css 🙂
I've given the image a margin-bottom negative amount, so allowing the button to be positioned according to the amount of the text.
Hey, thank you 🙂
-
AuthorPosts