• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Page titles gone

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Page titles gone

This topic is: not resolved

Tagged: page titles, title toggle

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 5 months ago by SimplyAA.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 30, 2014 at 3:26 pm #133277
    SimplyAA
    Member

    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

    http://www.mysimpleuniverse.com/
    December 1, 2014 at 5:51 am #133313
    Genesis Developer
    Member

    Are 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' );


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    December 1, 2014 at 5:47 pm #133377
    SimplyAA
    Member

    I 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 &copy; ';
    echo date('Y');
    echo ' &middot; <a href="http://www.mysimpleuniverse.com">My Simple Universe</a> &middot; Free Spirit LLC';
    echo '</p></div>';
    echo '<div class="creds-2"><p>';
    echo ' <a href="http://www.mysimpleuniverse.com">Home</a>';
    echo ' &middot; <a href="http://www.mysimpleuniverse.com/privacy-policy/">Privacy Policy</a>';
    echo ' &middot; <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 #133393
    Genesis Developer
    Member

    I checked the code. There have no any issue. I think that problem is in other section. I am not sure where it is.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    December 20, 2014 at 12:33 pm #134966
    SimplyAA
    Member

    Anyone has a possible solution?


    Angela

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble