Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
Josephine…Member
I got it. Here is the code, in case someone needs it:
<?php /** * This file adds the Single post template to the Bosque Theme. * * @author Flavia * @package Bosque * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later */ // Template Name: Single post // Template Post Type: post, page, portfolio // Content-Sidebar Layout add_filter( 'genesis_pre_get_option_site_layout', '__bosque_return_bosque_narrow_content' ); function __bosque_return_bosque_narrow_content() { return 'narrow-content'; } add_action( 'genesis_before_content' , 'featured_image_header'); remove_action( 'genesis_entry_content', 'featured_post_image' ); //* Add featured image if (has_post_thumbnail()){ remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_post_info', 12); add_action( 'genesis_before_content_sidebar_wrap', 'bq_page_header'); function bq_page_header(){ echo '<div class="single-header"><div class="single-title">'; genesis_do_post_title(); the_post(); // queue first post $author_id = get_the_author_meta('ID'); $curauth = get_user_by('id', $author_id); rewind_posts(); // rewind the loop genesis_post_info(); echo '</div><div class="single-image">'; the_post_thumbnail(); echo '</div></div>'; } } //* Customize the entry meta in the entry header add_filter( 'genesis_post_info', 'bq_post_info_filter' ); function bq_post_info_filter($post_info) { $post_info = '[post_date] Por [post_author_posts_link]'; return $post_info; } // This file handles single entries, but only exists for the sake of child theme forward compatibility. genesis();
Best wishes!
Josephine…MemberOk, I got it.
postid-557 .entry-content {
max-width: 960px;
}Thanks!
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)