Community Forums › Forums › Archived Forums › General Discussion › Page titles gone
Tagged: page titles, title toggle
- This topic has 4 replies, 2 voices, and was last updated 9 years, 11 months ago by SimplyAA.
-
AuthorPosts
-
November 30, 2014 at 3:26 pm #133277SimplyAAMember
I'm not sure what happened but all of a sudden my page titles are gone. I was making some changes and trying out custom post types but I removed anything I added to my functions. php.
I also tried taking off the Genesis Title Toggle plug in (uninstalled) , then reinstalled.
No matter what I do I cannot get my page titles to show up for pages. I am working around this by entering them in the description but really want to figure out what happened.
Thanks for any suggestions.
Angela
December 1, 2014 at 5:51 am #133313Genesis DeveloperMemberAre you added the page title in title field? Please double check it.
Also are you removing the page title by remove_action function? Check once the functions.php file and find this kind of code
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
December 1, 2014 at 5:47 pm #133377SimplyAAMemberI just checked. I do have page titles in all pages.
I looked in my functions.php and this is all that I've added:
<?php /* Do not remove this line. Add your functions below. */ add_action( 'wp_enqueue_scripts', 'prefix_enqueue_scripts' ); function prefix_enqueue_scripts() { wp_enqueue_script( 'prefix-typekit', '//use.typekit.net/skx1cir.js', array(), '1.0.0' ); } add_action( 'wp_head', 'prefix_typekit_inline' ); function prefix_typekit_inline() { if ( wp_script_is( 'prefix-typekit', 'enqueued' ) ) { echo '<script type="text/javascript">try{Typekit.load();}catch(e){}</script>'; } } //* Customize the credits remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'sp_custom_footer' ); function sp_custom_footer() { echo '<div class="creds"><p>'; echo 'Copyright © '; echo date('Y'); echo ' · <a href="http://www.mysimpleuniverse.com">My Simple Universe</a> · Free Spirit LLC'; echo '</p></div>'; echo '<div class="creds-2"><p>'; echo ' <a href="http://www.mysimpleuniverse.com">Home</a>'; echo ' · <a href="http://www.mysimpleuniverse.com/privacy-policy/">Privacy Policy</a>'; echo ' · <a href="http://www.mysimpleuniverse.com/terms-conditions/">Terms of Use</a>'; echo '</p></div>'; } //* To Display Image before post title add_action( 'genesis_entry_header', 'single_post_featured_image', 15 ); function single_post_featured_image() { if ( ! is_singular( 'post' ) ) return; $img = genesis_get_image( array( 'format' => 'html', 'size' => genesis_get_option( 'image_size' ), 'attr' => array( 'class' => 'alignright' ) ) ); printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img ); } //* Remove the header right widget area unregister_sidebar( 'header-right' ); //* Remove the default header remove_action( 'genesis_header', 'genesis_do_header' ); //* Add custom header add_action( 'genesis_header', 'sk_do_header' ); function sk_do_header() { echo '<a href="http://www.mysimpleuniverse.com/"><img src="http://www.mysimpleuniverse.com/images/MSU-header.png" /></a>'; } //* Display a custom favicon add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' ); function sp_favicon_filter( $favicon_url ) { return 'http://www.mysimpleuniverse.com/favicon.ico'; } //* for Related Posts info without using Plugin add_image_size( 'related', 90, 70, true ); //for XHTML themes add_action( 'genesis_after_post_content', 'child_related_posts' ); //for HTML5 themes add_action( 'genesis_after_entry_content', 'child_related_posts' ); function child_related_posts() { if ( is_single ( ) ) { global $post; $count = 0; $postIDs = array( $post->ID ); $related = ''; $tags = wp_get_post_tags( $post->ID ); $cats = wp_get_post_categories( $post->ID ); if ( $tags ) { foreach ( $tags as $tag ) { $tagID[] = $tag->term_id; } $args = array( 'tag__in' => $tagID, 'post__not_in' => $postIDs, 'showposts' => 4, 'ignore_sticky_posts' => 1, 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-link', 'post-format-status', 'post-format-aside', 'post-format-quote' ), 'operator' => 'NOT IN' ) ) ); $tag_query = new WP_Query( $args ); if ( $tag_query->have_posts() ) { while ( $tag_query->have_posts() ) { $tag_query->the_post(); $img = genesis_get_image() ? genesis_get_image( array( 'size' => 'related' ) ) : '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/related.png" alt="' . get_the_title() . '" />'; $related .= '<li><a href="' . get_permalink() . '" rel="bookmark" title="Permanent Link to' . get_the_title() . '">' . $img . get_the_title() . '</a></li>'; $postIDs[] = $post->ID; $count++; } } } if ( $count <= 4 ) { $catIDs = array( ); foreach ( $cats as $cat ) { if ( 3 == $cat ) continue; $catIDs[] = $cat; } $showposts = 4 - $count; $args = array( 'category__in' => $catIDs, 'post__not_in' => $postIDs, 'showposts' => $showposts, 'ignore_sticky_posts' => 1, 'orderby' => 'rand', 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-link', 'post-format-status', 'post-format-aside', 'post-format-quote' ), 'operator' => 'NOT IN' ) ) ); $cat_query = new WP_Query( $args ); if ( $cat_query->have_posts() ) { while ( $cat_query->have_posts() ) { $cat_query->the_post(); $img = genesis_get_image() ? genesis_get_image( array( 'size' => 'related' ) ) : '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/related.png" alt="' . get_the_title() . '" />'; $related .= '<li><a href="' . get_permalink() . '" rel="bookmark" title="Permanent Link to' . get_the_title() . '">' . $img . get_the_title() . '</a></li>'; } } } if ( $related ) { printf( '<div class="related-posts"><h3 class="related-title">Related Posts</h3><ul class="related-list">%s</ul></div>', $related ); } wp_reset_query(); } } //* Remove post date and author add_filter( 'genesis_post_info', 'remove_post_info_exclude_news_category' ); function remove_post_info_exclude_news_category($post_info) { if ( is_category('web-design') ) { $post_info = '[post_comments] [post_edit]'; return $post_info; } } remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
Angela
December 1, 2014 at 9:54 pm #133393Genesis DeveloperMemberI checked the code. There have no any issue. I think that problem is in other section. I am not sure where it is.
December 20, 2014 at 12:33 pm #134966SimplyAAMemberAnyone has a possible solution?
Angela
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.