Community Forums › Forums › Archived Forums › Design Tips and Tricks › Post Titles Not Showing
- This topic has 4 replies, 2 voices, and was last updated 8 years, 8 months ago by kilerb.
-
AuthorPosts
-
August 7, 2015 at 7:04 pm #161767kilerbMember
Not sure why, but even when I switch out style.css with the original unaltered one they aren't showing under the blog (annoyed optimist) page. Any idea why that could be?
Also, I removed the 150x150 featured image because it was showing above the entire post leaving a lot of grey blank area. I'd like the featured image to show directly to the left of the post, like on the old version of Streamline. Is this easy to accomplish?
Thanks! 🙂
http://www.rodellegrazie.comAugust 8, 2015 at 5:46 am #161781upthinkParticipantYou seem to have removed the page titles througout your site - probably by unhooking the necessary function in your functions.php file. So I guess you need to make sure you do that by enclosing it in a check that it is only removed from pages and not from posts. It would help if you could show a copy of the functions.php file
August 8, 2015 at 1:29 pm #161794kilerbMemberAhhh, thanks... I normally use the "genesis title toggle" for that, but I might have tried something else prior to knowing about that and altered it a long time ago... Here's the functions.php file... Tried to find something I commented out regarding title, but wasn't sure. Thanks!!!
<?php //* Start the engine include_once( get_template_directory() . '/lib/init.php' ); //* Set Localization (do not remove) load_child_theme_textdomain( 'streamline', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'streamline' ) ); //* Child theme (do not remove) define( 'CHILD_THEME_NAME', __( 'Streamline Pro Theme', 'streamline' ) ); define( 'CHILD_THEME_URL', 'http://my.studiopress.com/streamline/' ); define( 'CHILD_THEME_VERSION', '3.0.1' ); //* Add HTML5 markup structure add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); //* Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* Enqueue PT Sans Google font add_action( 'wp_enqueue_scripts', 'streamline_google_fonts' ); function streamline_google_fonts() { wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=PT+Sans:400,700', array(), CHILD_THEME_VERSION ); } //* Enqueue Responsive Menu Script add_action( 'wp_enqueue_scripts', 'streamline_enqueue_responsive_script' ); function streamline_enqueue_responsive_script() { wp_enqueue_script( 'streamline-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); } //* Add support for additional color style options add_theme_support( 'genesis-style-selector', array( 'streamline-pro-blue' => __( 'Streamline Pro Blue', 'streamline' ), 'streamline-pro-green' => __( 'Streamline Pro Green', 'streamline' ), ) ); //* Add new image sizes add_image_size( 'post-image', 760, 360, TRUE ); add_image_size( 'widget-image', 295, 100, TRUE ); //* Unregister layout settings genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); //* Unregister secondary sidebar unregister_sidebar( 'sidebar-alt' ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for custom header /* add_theme_support( 'custom-header', array( 'header_image' => '', 'header-selector' => '.site-title a', 'header-text' => false, 'height' => 445, 'width' => 1140, ) ); */ //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 ); //* Reposition the breadcrumbs remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_breadcrumbs' ); //* Customize breadcrumbs display add_filter( 'genesis_breadcrumb_args', 'streamline_breadcrumb_args' ); function streamline_breadcrumb_args( $args ) { $args['home'] = __( 'Home', 'streamline' ); $args['sep'] = ' '; $args['list_sep'] = ', '; // Genesis 1.5 and later $args['prefix'] = '<div class="breadcrumb">'; $args['suffix'] = '</div>'; $args['labels']['prefix'] = '<span class="icon-home"></span>'; return $args; } //* Remove default post image remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); //* Add post image above post title /* add_action( 'genesis_entry_header', 'streamline_post_image', 1 ); function streamline_post_image() { if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) ) return; if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) { printf( '<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) ); } } */ //* Reposition the post info function remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); add_action( 'genesis_entry_header', 'genesis_post_info', 2 ); //* Customize the post info function add_filter( 'genesis_post_info', 'post_info_filter' ); function post_info_filter( $post_info ) { if ( !is_page() ) { $post_info = '[post_author_posts_link] [post_date] [post_comments] [post_edit]'; return $post_info; } } //* Add the after entry section add_action( 'genesis_entry_footer', 'streamline_after_entry', 10 ); function streamline_after_entry() { if ( ! is_singular( 'post' ) ) return; genesis_widget_area( 'after-entry', array( 'before' => '<div class="after-entry widget-area">', 'after' => '</div>', ) ); } //* Modify the size of the Gravatar in the author box add_filter( 'genesis_author_box_gravatar_size', 'streamline_author_box_gravatar_size' ); function streamline_author_box_gravatar_size( $size ) { return '80'; } //* Remove comment form allowed tags add_filter( 'comment_form_defaults', 'streamline_remove_comment_form_allowed_tags' ); function streamline_remove_comment_form_allowed_tags( $defaults ) { $defaults['comment_notes_after'] = ''; return $defaults; } // Register widget areas genesis_register_sidebar( array( 'id' => 'home-featured-1', 'name' => __( 'Home - Featured 1', 'streamline' ), 'description' => __( 'This is the first featured column on the homepage.', 'streamline' ), ) ); genesis_register_sidebar( array( 'id' => 'home-featured-2', 'name' => __( 'Home - Featured 2', 'streamline' ), 'description' => __( 'This is the second featured column on the homepage.', 'streamline' ), ) ); genesis_register_sidebar( array( 'id' => 'home-featured-3', 'name' => __( 'Home - Featured 3', 'streamline' ), 'description' => __( 'This is the third featured column on the homepage.', 'streamline' ), ) ); genesis_register_sidebar( array( 'id' => 'after-entry', 'name' => __( 'After Entry', 'streamline' ), 'description' => __( 'This is the after entry section.', 'streamline' ), ) );genesis_register_sidebar( array( 'id' => 'before-header', 'name' => __( 'Before Header', 'theme-name' ), 'description' => __( 'This is the before header widget area.', 'theme-name' ),) );add_action( 'genesis_before_header', 'bg_before_header_widget_area' );function bg_before_header_widget_area() { genesis_widget_area( 'before-header', array( 'before' => '<div class="before-header widget-area"><div class="wrap">', 'after' => '</div></div>', ) );} /** * Filter the genesis_seo_site_title function to use an image for the logo instead of a background image * * The genesis_seo_site_title function is located in genesis/lib/structure/header.php * @link http://blackhillswebworks.com/?p=4144 * */ add_filter( 'genesis_seo_title', 'bhww_filter_genesis_seo_site_title', 10, 2 ); function bhww_filter_genesis_seo_site_title( $title, $inside ){ $child_inside = sprintf( '<a href="%s" title="%s"><img src="'. get_stylesheet_directory_uri() .'/images/fullheader.jpg" title="%s" alt="%s"/></a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), esc_attr( get_bloginfo( 'name' ) ), esc_attr( get_bloginfo( 'name' ) ) ); $title = str_replace( $inside, $child_inside, $title ); return $title; }
August 9, 2015 at 11:37 pm #161889upthinkParticipantAfraid I do not see any offending code for the post titles in your functions file - so I guess it is the Genesis Title Toggle plugin which may have incorrect settings.
August 10, 2015 at 12:35 pm #161956kilerbMemberYep... I've been using that plugin a lot and had no idea it also toggled post titles. I thought it just removed page titles. That fixed it. Thanks so much! I don't suppose you might know how to make it so I can have a featured image show to the left of each post too, do you? Was my 2nd inquiry above... The old version of Streamline did this. For some reason this latest version put the 150x150 image above the post. Leaves a lot of grey area that doesn't make much sense. Would love to just get it to show to the left of the post. Thanks!!!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.