Forum Replies Created
-
AuthorPosts
-
rosemead
MemberSo I've downloaded the Simple Hooks plugin and have put this in the genesis_after_header hook:
add_action( 'genesis_after_header', 'before_single_post_content' ); function before_single_post_content() { if ( is_singular( 'post') ) { $cf = get_post_meta( get_the_ID(), 'page-headers', true ); if( ! empty( $cf ) ) { echo '<div class="before-content">'. $cf .'</div>'; } } }
But I am guessing I've gone wrong somewhere already as the code appears on the homepage. How do I exclude the homepage?
rosemead
MemberGreat - Thanks!
rosemead
MemberNot using featured images so it could be that. Would appreciate a guide if you can! I'm very new to all this.
rosemead
MemberWould that be possible even if I need a different image at the start of each page?
rosemead
MemberSorry wrong link. It's the Infinity Team section found here - https://demo.studiopress.com/infinity/
The headshots show names when you hover over them on a desktop but is there a way to show names regardless on mobile?
rosemead
MemberAnyone have any ideas?
rosemead
MemberAn example can be found on this page - https://rosemead.wpengine.com/open-mornings/
The line that goes down between the main content and the sidebar. And the lines that go across between each widget. That's the line I want to change the colour of.
Thanks.
-
AuthorPosts