Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
studiouser11Member
Hi braddalton,
I changed the code. Now current code here ;
<?php /** // This file handles single entries, but only exists for the sake of child theme forward compatibility. remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 12 ); remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); add_action( 'genesis_entry_header', 'genesis_post_info', 3 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_entry_header', 'jan_featured_img', 1 ); function jan_featured_img() { if ( has_post_thumbnail() ) { // checks post has thumbnail // gets URL for that image $background = wp_get_attachment_image_src( get_post_thumbnail_id( $page->ID ), 'featured-image' ); if (is_array($background)) { // echo the output echo '<div class="entry-header-wrap"><div class="entry-header-bg" style="background: url(' ; echo $background[0]; echo ') ">'; echo '</div></div>'; }} else { // if no featured image, adds class to use default image echo '<div class="entry-header-wrap"><div class="entry-header-bg">'; genesis_widget_area( 'ontop', array( 'before' => '<div class="features-widgetarea">', 'after' => '</div>', ) ); echo '</div></div>'; }} add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = '[post_date] / [post_categories] '; return $post_info; } genesis();
And this is current screenshot ;
i want to to move entyr-meta and entry-header to entry-header-wrap div, and this display;
I searched the internet every website, but i cant find to how can i do this.
Who can help me with this little issue ?
Thanks.
studiouser11MemberHi braddalton,
Thanks for your reply. i am creating custom template. ı re designed index.php.
Now i am re designing single.php, for this reason i have to use this custom loop.Only problem here ;
printf( '<div %s>', genesis_attr( 'entry-content' ) ); do_action( 'genesis_entry_content' ); echo '</div>';
But entry content does not come.
How can i get the entry content ?
Thanks.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)