Solved

Why is WordPress post only showing title of the first post?

Posted on 2014-10-15
15
209 Views
Last Modified: 2014-10-16
I am working on a WordPress site that was created by another developer.  They had a WordPress site for the main website and also a separate WordPress site for blog posts.  I have moved the blog posts over to the main website so we can combine the two sites into one.

The previous developer created a child theme and seems to have broke the ability to display posts on the main site.  The client does not have access to this developer anymore. The only thing that appears from the posts is the title (on the list page it is the newest post title) for both the list page and the details page. I added a new post thinking that maybe it was a problem with the data, but a new post does the same thing. Here is the link to the blog posts:

http://www.tmicoatings.com/blog/

I have isolated the files that are involved and identified where in the code is breaking (see below above code).  The child theme was based on the twentythirteen theme.  I have compared the files from the twentythirteen theme in other WordPress installations and cannot find any differences.  I can't determine if this is a code issue or if it as an issue with the database

The files that list the posts are (I am probably stating the obvious here):
index.php
content.php

The files that show the details of the post are:
single.php
content.php

The code seems to be breaking when the index.php and single.php calls the content.php.

index.php code:
<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme and one of the
 * two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * For example, it puts together the home page when no home.php file exists.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */

get_header(); ?>

	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">
		<?php if ( have_posts() ) : ?>

			<?php /* The loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content', get_post_format() ); ?>
			<?php endwhile; ?>

			<?php twentythirteen_paging_nav(); ?>

		<?php else : ?>
			<?php get_template_part( 'content', 'none' ); ?>
		<?php endif; ?>

		</div><!-- #content -->
	</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Open in new window


single.php code:
<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */

get_header(); ?>

	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

			<?php /* The loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>

				<?php get_template_part( 'content', get_post_format() ); ?>
				<?php //twentythirteen_post_nav(); ?>
				<?php //comments_template(); ?>

			<?php endwhile; ?>

		</div><!-- #content -->
	</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Open in new window


content.php code:
<?php
/**
 * The default template for displaying content. Used for both single and index/archive/search.
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
		<div class="entry-thumbnail">
			<?php the_post_thumbnail(); ?>
		</div>
		<?php endif; ?>

		<?php if ( is_single() ) : ?>
		<h1 class="entry-title"><?php the_title(); ?></h1>
		<?php else : ?>
		<h1 class="entry-title">
			<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
		</h1>
		<?php endif; // is_single() ?>

		<div class="entry-meta">
			<?php twentythirteen_entry_meta(); ?>
			<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<?php if ( is_search() ) : // Only display Excerpts for Search ?>
	<div class="entry-summary">
		<?php the_excerpt(); ?>
	</div><!-- .entry-summary -->
	<?php else : ?>
	<div class="entry-content">
		<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
		<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
	</div><!-- .entry-content -->
	<?php endif; ?>

	<footer class="entry-meta">
		<?php if ( comments_open() && ! is_single() ) : ?>
			<div class="comments-link">
				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
			</div><!-- .comments-link -->
		<?php endif; // comments_open() ?>

		<?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
			<?php get_template_part( 'author-bio' ); ?>
		<?php endif; ?>
	</footer><!-- .entry-meta -->
</article><!-- #post -->

Open in new window


Any ideas to fix this would be greatly appreciated.

Thanks
Lonny
0
Comment
Question by:lonnyo
  • 8
  • 7
15 Comments
 
LVL 14

Expert Comment

by:Dzynit
ID: 40383032
The entry meta function is where it's breaking. Since you said a child theme was created, is the parent 2013 theme also still there in the themes directory? If it's not, that could be why things are failing.
0
 

Author Comment

by:lonnyo
ID: 40383136
Yes the parent theme is still there.  They did however add a functions.php to the child theme.  Here is the code for that:

<?php

function theme_name_scripts() {

	//wp_enqueue_style( 'main-styles', get_stylesheet_uri() );

	wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), false, true );

	//wp_enqueue_script( 'jquery-scrollto', get_template_directory_uri() . '/js/jquery.scrollTo-1.4.3.1-min.js', array('jquery'), false, true );

	//wp_enqueue_script( 'app', get_template_directory_uri() . '/js/app.js', array('jquery'), false, true );

	//wp_enqueue_style( 'google-lato', 'http://fonts.googleapis.com/css?family=Lato:100italic,100,300italic,300,400italic,400,700italic,700,900italic,900' );

	//wp_enqueue_style( 'google-arvo', 'http://fonts.googleapis.com/css?family=Arvo' );

	//wp_enqueue_style( 'google-pacifico', 'http://fonts.googleapis.com/css?family=Pacifico' );

}

add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );

function register_my_menus() {

	register_nav_menus(

	array(

	'header-menu' => __( 'Header Menu' ),

	'home-right-menu' => __( 'Homepage Right Menu' ),

	'sidebar-menu' => __( 'Left Sidebar Menu' )

	)

	);

}

add_action( 'init', 'register_my_menus' );

function mobile_redirect(){

	session_start();

	//session_destroy();

	//unset($_SESSION['noMobile']);

	if(isset($_GET['noMobile'])){

		$noMobile = $_GET['noMobile'];

		$_SESSION['noMobile'] = $noMobile;

	} else if(!isset($_SESSION['noMobile'])){

		$_SESSION['noMobile'] = 'false';

	}

	if(wp_is_mobile() && $_SESSION['noMobile'] == 'false' && strpos($_SERVER['REQUEST_URI'], 'mobile') === False && 

          strpos($_SERVER['REQUEST_URI'], 'industrial-painting') === False){

		wp_redirect(esc_url( home_url( '/' ))."mobile");

		exit();

	}

}

add_action('init', 'mobile_redirect');

Open in new window


Any ideas?
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 40383152
For some reason the child doesn't seem to be falling back and getting the other info from the parent. What I would try is grab the code from the parent functions.php (try to remove the functions in it that are the same as the couple in the child) then paste all those missing functions in the child's functions.php.

Be sure to watch your open and close <?php tags. if it seems to goof up, I have a copy of the 2013 here I'll combine together with the code that's in your child for you to try testing.
0
 

Author Comment

by:lonnyo
ID: 40383240
I placed an underscore in front of functions.php in the child theme and the posts page still did not work.  Do you still think it is the functions.php.  If so, wouldn't that mean it is functions.php in the twentythirteen theme?
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 40383271
yes, I think it's the functions.php file - but I think it's acting like it's not recognizing that file from the parent theme to get the functions of the theme it needs.

Rename your functions file back to the correct name and copy/paste this over all the current content of the child's functions.php file and let me know if that makes a difference:

<?php
/**
 * Twenty Thirteen functions and definitions
 *
 * Sets up the theme and provides some helper functions, which are used in the
 * theme as custom template tags. Others are attached to action and filter
 * hooks in WordPress to change core functionality.
 *
 * When using a child theme (see http://codex.wordpress.org/Theme_Development
 * and http://codex.wordpress.org/Child_Themes), you can override certain
 * functions (those wrapped in a function_exists() call) by defining them first
 * in your child theme's functions.php file. The child theme's functions.php
 * file is included before the parent theme's file, so the child theme
 * functions would be used.
 *
 * Functions that are not pluggable (not wrapped in function_exists()) are
 * instead attached to a filter or action hook.
 *
 * For more information on hooks, actions, and filters, @link http://codex.wordpress.org/Plugin_API
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */

/*
 * Set up the content width value based on the theme's design.
 *
 * @see twentythirteen_content_width() for template-specific adjustments.
 */
if ( ! isset( $content_width ) )
	$content_width = 604;

/**
 * Add support for a custom header image.
 */
require get_template_directory() . '/inc/custom-header.php';

/**
 * Twenty Thirteen only works in WordPress 3.6 or later.
 */
if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) )
	require get_template_directory() . '/inc/back-compat.php';

/**
 * Twenty Thirteen setup.
 *
 * Sets up theme defaults and registers the various WordPress features that
 * Twenty Thirteen supports.
 *
 * @uses load_theme_textdomain() For translation/localization support.
 * @uses add_editor_style() To add Visual Editor stylesheets.
 * @uses add_theme_support() To add support for automatic feed links, post
 * formats, and post thumbnails.
 * @uses register_nav_menu() To add support for a navigation menu.
 * @uses set_post_thumbnail_size() To set a custom post thumbnail size.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_setup() {
	/*
	 * Makes Twenty Thirteen available for translation.
	 *
	 * Translations can be added to the /languages/ directory.
	 * If you're building a theme based on Twenty Thirteen, use a find and
	 * replace to change 'twentythirteen' to the name of your theme in all
	 * template files.
	 */
	load_theme_textdomain( 'twentythirteen', get_template_directory() . '/languages' );

	/*
	 * This theme styles the visual editor to resemble the theme style,
	 * specifically font, colors, icons, and column width.
	 */
	add_editor_style( array( 'css/editor-style.css', 'fonts/genericons.css', twentythirteen_fonts_url() ) );

	// Adds RSS feed links to <head> for posts and comments.
	add_theme_support( 'automatic-feed-links' );

	/*
	 * Switches default core markup for search form, comment form,
	 * and comments to output valid HTML5.
	 */
	add_theme_support( 'html5', array(
		'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
	) );

	/*
	 * This theme supports all available post formats by default.
	 * See http://codex.wordpress.org/Post_Formats
	 */
	add_theme_support( 'post-formats', array(
		'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video'
	) );

	// This theme uses wp_nav_menu() in one location.
	register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) );

	/*
	 * This theme uses a custom image size for featured images, displayed on
	 * "standard" posts and pages.
	 */
	add_theme_support( 'post-thumbnails' );
	set_post_thumbnail_size( 604, 270, true );

	// This theme uses its own gallery styles.
	add_filter( 'use_default_gallery_style', '__return_false' );
}
add_action( 'after_setup_theme', 'twentythirteen_setup' );

/**
 * Return the Google font stylesheet URL, if available.
 *
 * The use of Source Sans Pro and Bitter by default is localized. For languages
 * that use characters not supported by the font, the font can be disabled.
 *
 * @since Twenty Thirteen 1.0
 *
 * @return string Font stylesheet or empty string if disabled.
 */
function twentythirteen_fonts_url() {
	$fonts_url = '';

	/* Translators: If there are characters in your language that are not
	 * supported by Source Sans Pro, translate this to 'off'. Do not translate
	 * into your own language.
	 */
	$source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' );

	/* Translators: If there are characters in your language that are not
	 * supported by Bitter, translate this to 'off'. Do not translate into your
	 * own language.
	 */
	$bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' );

	if ( 'off' !== $source_sans_pro || 'off' !== $bitter ) {
		$font_families = array();

		if ( 'off' !== $source_sans_pro )
			$font_families[] = 'Source Sans Pro:300,400,700,300italic,400italic,700italic';

		if ( 'off' !== $bitter )
			$font_families[] = 'Bitter:400,700';

		$query_args = array(
			'family' => urlencode( implode( '|', $font_families ) ),
			'subset' => urlencode( 'latin,latin-ext' ),
		);
		$fonts_url = add_query_arg( $query_args, "//fonts.googleapis.com/css" );
	}

	return $fonts_url;
}

/**
 * Enqueue scripts and styles for the front end.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_scripts_styles() {
	/*
	 * Adds JavaScript to pages with the comment form to support
	 * sites with threaded comments (when in use).
	 */
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );

	// Adds Masonry to handle vertical alignment of footer widgets.
	if ( is_active_sidebar( 'sidebar-1' ) )
		wp_enqueue_script( 'jquery-masonry' );

	// Loads JavaScript file with functionality specific to Twenty Thirteen.
	wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2014-03-18', true );

	// Add Source Sans Pro and Bitter fonts, used in the main stylesheet.
	wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );

	// Add Genericons font, used in the main stylesheet.
	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' );

	// Loads our main stylesheet.
	wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );

	// Loads the Internet Explorer specific stylesheet.
	wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' );
	wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
}
add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' );

/**
 * Filter the page title.
 *
 * Creates a nicely formatted and more specific title element text for output
 * in head of document, based on current view.
 *
 * @since Twenty Thirteen 1.0
 *
 * @param string $title Default title text for current view.
 * @param string $sep   Optional separator.
 * @return string The filtered title.
 */
function twentythirteen_wp_title( $title, $sep ) {
	global $paged, $page;

	if ( is_feed() )
		return $title;

	// Add the site name.
	$title .= get_bloginfo( 'name', 'display' );

	// Add the site description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		$title = "$title $sep $site_description";

	// Add a page number if necessary.
	if ( $paged >= 2 || $page >= 2 )
		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );

	return $title;
}
add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 );

/**
 * Register two widget areas.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_widgets_init() {
	register_sidebar( array(
		'name'          => __( 'Main Widget Area', 'twentythirteen' ),
		'id'            => 'sidebar-1',
		'description'   => __( 'Appears in the footer section of the site.', 'twentythirteen' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h3 class="widget-title">',
		'after_title'   => '</h3>',
	) );

	register_sidebar( array(
		'name'          => __( 'Secondary Widget Area', 'twentythirteen' ),
		'id'            => 'sidebar-2',
		'description'   => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h3 class="widget-title">',
		'after_title'   => '</h3>',
	) );
}
add_action( 'widgets_init', 'twentythirteen_widgets_init' );

if ( ! function_exists( 'twentythirteen_paging_nav' ) ) :
/**
 * Display navigation to next/previous set of posts when applicable.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_paging_nav() {
	global $wp_query;

	// Don't print empty markup if there's only one page.
	if ( $wp_query->max_num_pages < 2 )
		return;
	?>
	<nav class="navigation paging-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
		<div class="nav-links">

			<?php if ( get_next_posts_link() ) : ?>
			<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentythirteen' ) ); ?></div>
			<?php endif; ?>

			<?php if ( get_previous_posts_link() ) : ?>
			<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?></div>
			<?php endif; ?>

		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php
}
endif;

if ( ! function_exists( 'twentythirteen_post_nav' ) ) :
/**
 * Display navigation to next/previous post when applicable.
*
* @since Twenty Thirteen 1.0
*/
function twentythirteen_post_nav() {
	global $post;

	// Don't print empty markup if there's nowhere to navigate.
	$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );
	$next     = get_adjacent_post( false, '', false );

	if ( ! $next && ! $previous )
		return;
	?>
	<nav class="navigation post-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>
		<div class="nav-links">

			<?php previous_post_link( '%link', _x( '<span class="meta-nav">&larr;</span> %title', 'Previous post link', 'twentythirteen' ) ); ?>
			<?php next_post_link( '%link', _x( '%title <span class="meta-nav">&rarr;</span>', 'Next post link', 'twentythirteen' ) ); ?>

		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php
}
endif;

if ( ! function_exists( 'twentythirteen_entry_meta' ) ) :
/**
 * Print HTML with meta information for current post: categories, tags, permalink, author, and date.
 *
 * Create your own twentythirteen_entry_meta() to override in a child theme.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_entry_meta() {
	if ( is_sticky() && is_home() && ! is_paged() )
		echo '<span class="featured-post">' . __( 'Sticky', 'twentythirteen' ) . '</span>';

	if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )
		twentythirteen_entry_date();

	// Translators: used between list items, there is a space after the comma.
	$categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) );
	if ( $categories_list ) {
		echo '<span class="categories-links">' . $categories_list . '</span>';
	}

	// Translators: used between list items, there is a space after the comma.
	$tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );
	if ( $tag_list ) {
		echo '<span class="tags-links">' . $tag_list . '</span>';
	}

	// Post author
	if ( 'post' == get_post_type() ) {
		printf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
			esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
			get_the_author()
		);
	}
}
endif;

if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
/**
 * Print HTML with date information for current post.
 *
 * Create your own twentythirteen_entry_date() to override in a child theme.
 *
 * @since Twenty Thirteen 1.0
 *
 * @param boolean $echo (optional) Whether to echo the date. Default true.
 * @return string The HTML-formatted post date.
 */
function twentythirteen_entry_date( $echo = true ) {
	if ( has_post_format( array( 'chat', 'status' ) ) )
		$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
	else
		$format_prefix = '%2$s';

	$date = sprintf( '<span class="date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span>',
		esc_url( get_permalink() ),
		esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
		esc_attr( get_the_date( 'c' ) ),
		esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )
	);

	if ( $echo )
		echo $date;

	return $date;
}
endif;

if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) :
/**
 * Print the attached image with a link to the next attached image.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_the_attached_image() {
	/**
	 * Filter the image attachment size to use.
	 *
	 * @since Twenty thirteen 1.0
	 *
	 * @param array $size {
	 *     @type int The attachment height in pixels.
	 *     @type int The attachment width in pixels.
	 * }
	 */
	$attachment_size     = apply_filters( 'twentythirteen_attachment_size', array( 724, 724 ) );
	$next_attachment_url = wp_get_attachment_url();
	$post                = get_post();

	/*
	 * Grab the IDs of all the image attachments in a gallery so we can get the URL
	 * of the next adjacent image in a gallery, or the first image (if we're
	 * looking at the last image in a gallery), or, in a gallery of one, just the
	 * link to that image file.
	 */
	$attachment_ids = get_posts( array(
		'post_parent'    => $post->post_parent,
		'fields'         => 'ids',
		'numberposts'    => -1,
		'post_status'    => 'inherit',
		'post_type'      => 'attachment',
		'post_mime_type' => 'image',
		'order'          => 'ASC',
		'orderby'        => 'menu_order ID'
	) );

	// If there is more than 1 attachment in a gallery...
	if ( count( $attachment_ids ) > 1 ) {
		foreach ( $attachment_ids as $attachment_id ) {
			if ( $attachment_id == $post->ID ) {
				$next_id = current( $attachment_ids );
				break;
			}
		}

		// get the URL of the next image attachment...
		if ( $next_id )
			$next_attachment_url = get_attachment_link( $next_id );

		// or get the URL of the first image attachment.
		else
			$next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );
	}

	printf( '<a href="%1$s" title="%2$s" rel="attachment">%3$s</a>',
		esc_url( $next_attachment_url ),
		the_title_attribute( array( 'echo' => false ) ),
		wp_get_attachment_image( $post->ID, $attachment_size )
	);
}
endif;

/**
 * Return the post URL.
 *
 * @uses get_url_in_content() to get the URL in the post meta (if it exists) or
 * the first link found in the post content.
 *
 * Falls back to the post permalink if no URL is found in the post.
 *
 * @since Twenty Thirteen 1.0
 *
 * @return string The Link format URL.
 */
function twentythirteen_get_link_url() {
	$content = get_the_content();
	$has_url = get_url_in_content( $content );

	return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
}

/**
 * Extend the default WordPress body classes.
 *
 * Adds body classes to denote:
 * 1. Single or multiple authors.
 * 2. Active widgets in the sidebar to change the layout and spacing.
 * 3. When avatars are disabled in discussion settings.
 *
 * @since Twenty Thirteen 1.0
 *
 * @param array $classes A list of existing body class values.
 * @return array The filtered body class list.
 */
function twentythirteen_body_class( $classes ) {
	if ( ! is_multi_author() )
		$classes[] = 'single-author';

	if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_404() )
		$classes[] = 'sidebar';

	if ( ! get_option( 'show_avatars' ) )
		$classes[] = 'no-avatars';

	return $classes;
}
add_filter( 'body_class', 'twentythirteen_body_class' );

/**
 * Adjust content_width value for video post formats and attachment templates.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_content_width() {
	global $content_width;

	if ( is_attachment() )
		$content_width = 724;
	elseif ( has_post_format( 'audio' ) )
		$content_width = 484;
}
add_action( 'template_redirect', 'twentythirteen_content_width' );

/**
 * Add postMessage support for site title and description for the Customizer.
 *
 * @since Twenty Thirteen 1.0
 *
 * @param WP_Customize_Manager $wp_customize Customizer object.
 */
function twentythirteen_customize_register( $wp_customize ) {
	$wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
}
add_action( 'customize_register', 'twentythirteen_customize_register' );

/**
 * Enqueue Javascript postMessage handlers for the Customizer.
 *
 * Binds JavaScript handlers to make the Customizer preview
 * reload changes asynchronously.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_customize_preview_js() {
	wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130226', true );
}
add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' );

function theme_name_scripts() {

	//wp_enqueue_style( 'main-styles', get_stylesheet_uri() );

	wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), false, true );

	//wp_enqueue_script( 'jquery-scrollto', get_template_directory_uri() . '/js/jquery.scrollTo-1.4.3.1-min.js', array('jquery'), false, true );

	//wp_enqueue_script( 'app', get_template_directory_uri() . '/js/app.js', array('jquery'), false, true );

	//wp_enqueue_style( 'google-lato', 'http://fonts.googleapis.com/css?family=Lato:100italic,100,300italic,300,400italic,400,700italic,700,900italic,900' );

	//wp_enqueue_style( 'google-arvo', 'http://fonts.googleapis.com/css?family=Arvo' );

	//wp_enqueue_style( 'google-pacifico', 'http://fonts.googleapis.com/css?family=Pacifico' );

}

add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );

function register_my_menus() {

	register_nav_menus(

	array(

	'header-menu' => __( 'Header Menu' ),

	'home-right-menu' => __( 'Homepage Right Menu' ),

	'sidebar-menu' => __( 'Left Sidebar Menu' )

	)

	);

}

add_action( 'init', 'register_my_menus' );

function mobile_redirect(){

	session_start();

	//session_destroy();

	//unset($_SESSION['noMobile']);

	if(isset($_GET['noMobile'])){

		$noMobile = $_GET['noMobile'];

		$_SESSION['noMobile'] = $noMobile;

	} else if(!isset($_SESSION['noMobile'])){

		$_SESSION['noMobile'] = 'false';

	}

	if(wp_is_mobile() && $_SESSION['noMobile'] == 'false' && strpos($_SERVER['REQUEST_URI'], 'mobile') === False && 

          strpos($_SERVER['REQUEST_URI'], 'industrial-painting') === False){

		wp_redirect(esc_url( home_url( '/' ))."mobile");

		exit();

	}

}

add_action('init', 'mobile_redirect');

?>

Open in new window

0
 

Author Comment

by:lonnyo
ID: 40384156
That gave me the white screen of death.  I put back the original functions.php in the child theme so the main part of the site will work again.

I looked over the code you provided, but I must apologize,  I am just starting to learn php (I am a coldfusion developer).  Any other thoughts?  I really appreciate the help.
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 40384366
What happens when you switch to the parent 2013 theme? Does the blog page work correctly with it?
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:lonnyo
ID: 40384809
It does appear to work.  Rather than actually activating the twentythirteen theme, I did a Live Preview and clicked on the blog link.  The full post was showing.
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 40384848
There's definitely a problem with the child theme and it fails when it gets to the entry meta right after the post title.

Here's something else to check: in the child theme do you see this line in the top section of the style.css file?

Template:  twentythirteen
0
 

Author Comment

by:lonnyo
ID: 40385013
That was one of the first things I checked.  They did not have that in the style sheet but I did add it and it didn't make a difference.  Maybe something else in that top section is causing a problem.  I just reloaded it to make sure and then cleared the cache in my browser - still no luck. Here is the full style sheet.

/*

Theme Name: TMI Coatings

Theme URI: http://actsmedia.com/themes/tmicoatings

Author: Acts Medi Inc.

Author URI: http://actsmedia.com/

Description: Default theme for TMI

Version: 1.0

Text Domain: tmicoatings

Template:  twentythirteen 

*/



body{

	margin:0px;

	padding:0px;

	font-family:Verdana, Arial, Helvetica, sans-serif;

	font-size:12px;

	color:#303334;

	background-color:#CCCCCC;

	}



#page {

	width:1000px;

	margin:0 auto;

	background:#fff;

	padding:1em 0.2em 0 0.2em;

	overflow:auto;

}



header {

	margin:0;

}

.header-text {float:left;}

.home-logo {
	float:left;
}
.home-text {
	float:left;
	font-size:18px;
	font-weight:normal;
	line-height:20px;
	margin-top:20px;

}

.home-text a {
	color:#000;
	font-family:Arial, Helvetica, sans-serif;
	text-decoration:none;
}

.get-quote {
	width:385px;
	height:62px;
	background-image:url(img/callus-background.jpg);
	background-repeat:no-repeat;
	padding-bottom:10px;
}


.quote-text-1 {
	font-family:Arial, Helvetica, sans-serif;
	font-size:20px;
	color:#858585;
	margin:0;
	padding:10px 0 0 15px;
}

.orange-text {
	color:#E57100;
}

.quote-text-2 {
	font-family:Arial, Helvetica, sans-serif;
	font-size:13px;
	color:#858585;
	margin:0;
	padding:2px 0 0 15px;
}



.social a {

	text-decoration:none;

}

#navbar {

	clear:both;

	width: 999px;

	height: 39px;

	background: transparent url(img/topnav-back.gif) repeat-x top left;

}

#menu-top-menu {

	margin:0;

	padding:0;

	list-style-type:none;

}

#menu-top-menu li {

	display:block;

	float:left;

	margin:0;

}

#menu-top-menu li a {

	display: block;

	float: left;

	color: #5a646b;

	text-decoration: none;

	padding: 10px 32px 0px;

	height: 27px;

	background: transparent url(img/nav-devider2.gif) no-repeat top right;

}

#menu-top-menu li a:hover {

	background: transparent url(img/rollover1.gif) no-repeat top right;

	color: #FFFFFF;

}

#primary {

	width:764px;

	float:right;

}

#sidebar {

	width:230px;

	float:left;

}

#sidebar nav h3 {

	background-image: url(img/category-bk.gif);

	background-repeat: no-repeat;

	height: 25px;

	color: #FFFFFF;

	line-height: 25px;

	vertical-align: middle;

	font-weight: bold;

	text-align:center;

	margin:0;

	padding:0;

}

#menu-left-side-menu {

	background-image: url(img/categoryList-bk.gif);

	background-repeat: repeat-y;

	margin:0 0 8px 0;

	padding:1em 0 1em 2em;

	list-style-type:none;
	
	width: 200px !important;

}

#menu-left-side-menu li {

	display:block;
	width: 180px !important;

	

}

#menu-left-side-menu li a {

	display:block;

	padding:1em 0.2em 1em 2em;

	background:url(img/category-bulet.gif) no-repeat 0 1em;

}

.menu-right-side-menu-container {

	float:right;

	width:325px;

	background:#f0f0f0;

}

.menu-right-side-menu-container ul {

	margin:0;

	padding:0;

}

.menu-right-side-menu-container ul li {

	display:block;

}

.menu-right-side-menu-container ul li#menu-title {

	height:2em;

	background:#e57100;

	text-align:center;

	color:#fff;

	padding:0.2em 0 0 0;

	font-weight:bold;

}

.menu-right-side-menu-container ul li a {

	padding:1em 0 1em 4em;

	display:block;

	background:url(img/spcl-bulet.gif) 2em 1em no-repeat;;

}

.menu-right-side-menu-container ul li a:link,

.menu-right-side-menu-container ul li a:visited {

	text-decoration:none;

	color:#000;

}

.menu-right-side-menu-container ul li a:active,

.menu-right-side-menu-container ul li a:hover {

	text-decoration:underline;

	color:#e57100;

}

.site-footer {

	clear:both;

	background-color: #6b7881;

	margin: 8px 0 8px 0;

	height: 30px;

	line-height: 30px;

	vertical-align: middle;

}

article {

	width:756px;

	background:#f3f2ee;

}

article p {

	padding:10px;

	font-size:11px;

	line-height:20px;

}



label.error {

	display:block;

	color:#ff0000;

}

input.error {

	border:1px solid #ff0000;

}

.next-btn {

	

}

.clear { /* generic container (i.e. div) for floating buttons */

    overflow: hidden;

    width: 100%;

}



a.button {

    background: transparent url('img/bg_button_a.gif') no-repeat scroll top right;

    color: #444;

    display: block;

    float: left;

    font: normal 12px arial, sans-serif;

    height: 24px;

    margin-right: 6px;

    padding-right: 18px; /* sliding doors padding */

    text-decoration: none;

}



a.button span {

    background: transparent url('img/bg_button_span.gif') no-repeat;

    display: block;

    line-height: 14px;

    padding: 5px 0 5px 18px;

}

a.button:active {

    background-position: bottom right;

    color: #000;

    outline: none; /* hide dotted outline in Firefox */

}



a.button:active span {

    background-position: bottom left;

    padding: 6px 0 4px 18px; /* push text down 1px */

}



p{

	margin:0px;

	padding:0px;

	}





form{

	padding:0px;

	margin:0px;

	}



.image-block ul { 

	list-style:none;

	

}

.image-block ul li {

	float:left;

	width:250px;

	margin:1em;

}

.image-block {

	width:590px;

}



.bigHd{



	font-size:20px;

	font-weight:bold;

	color:#0464ba;

	font-style:italic;







	text-transform:uppercase;







	/*padding:10px 0 10px 10px;*/







	display:block;







	}







.hd{







	font-size:20px;







	font-weight:bold;







	color:#3d454a;







	text-transform:lowercase;







	}

	

	

	.slideshow {

    height: 191px;

    background: url(../images/professional.jpg) no-repeat;

    margin: 5px 0;

    z-index: 1;

}

.slideshow img {

    display: none;

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

}







.specialhd{







	font-size:18px;







	font-weight:bold;







	color:#3d454a;







	text-transform:uppercase;







	}







.clbt{







	clear:both;







	}







.lnht8{







	line-height:8px;







	}







.lnht15{







	line-height:30px;







	}







.lnht30{







	line-height:40px;







	}







.topNav{







	font-size:10px;







	text-decoration:none;







	color:#5f6a72 







	}







a.topNav:link {







	font-size:10px;







	text-decoration:none !important;







	color:#5f6a72 !important;







	}







a.topNav:hover{







	font-size:10px;







	text-decoration:underline !important;







	color:#0464ba !important;







	}







.topNavSelected{







	color:#0464ba;







	font-size:10px;







	}







/* ^^^^^^^^ BELOW IS THE CODE FOR THE MENU ^^^^^^^^^^ */















.navContainer{







	 background-image:url(images/topnav-back.gif);







	width:980px; 







	height:39px; 







	background-repeat:repeat-x;







	margin:0px;







	}







.topNavTxt{







	float:left; 







	padding:15px 22px 0 22px;







	}







.topNavTxtLnk{







	font-size:12px;







	text-decoration:none;







	color:#5a646b;







	}	







.topNavTxtLnk:hover{	







	font-size:12px;







	color:#e47100;







	text-decoration:underline;







	}







.topNavDevider{







	float:left; 







	/*padding:5px 5px 0 5px;*/







	padding:5px 3px 0 3px;







	}







.topNavTxtLnkSelect{	







	font-size:12px;







	color:#FFFFFF;







	padding:5px 12px 5px 12px;







	/*display:block;







	color:#e47100;







	text-decoration:underline;*/







	background-color:#f58204;







	}















/* ----------------------------------------------------*/















.leftCategory{







	background-image:url(images/category-bk.gif); 







	background-repeat:no-repeat; 







	height:25px; 







	color:#FFFFFF;







	line-height:25px;







	vertical-align:middle; 







	font-weight:bold;







	}







.categoryContainer{







	background-image:url(images/categoryList-bk.gif); 







	background-repeat:repeat-y;







	margin-bottom:8px;







	}







.categoryLnk{







	color:#303334;







	text-decoration:none;







	}























a.categoryLnk:link {







	color:#303334 !important;







	text-decoration:none !important;







	}















.categoryLnk:hover{







	color:#0464ba;







	text-decoration:underline;







	}







.categorySelect{







	color:#0464ba;







	text-decoration:underline;







	}















.specialLnk{







	color:#303334;







	text-decoration:none;







	}







.specialLnk:hover{







	color:#e47100;







	text-decoration:underline;







	}







.padTop{







	padding-top:10px;







	}







.bdyMdl{







	margin:8px 0px 0px 8px; 







	/*height:170px; */







	width:756px;







	padding:0px;







	}







.welcomeContainer{







	float:left; 







	width:425px; 







	background-color:#dbdad6; 







	height:170px;







	text-align:left;







	}







.welcomeContainer p{







	padding:10px 10px 5px 10px;







	line-height:25px;







	}







.tmicoating{







	float:right; 







	margin-left:5px; 	







	}







.tmiHd{







	width:325px; 







	height:25px; 







	background-color:#e57100; 







	line-height:25px; 







	vertical-align:middle; 







	color:#FFFFFF; 







	font-weight:bold;







	}







.tmitxtContainer{







	width:325px;







	background-color:#f0f0f0;







	color:#3d4449;







	}







.padtipLnht{







	padding-top:10px;







	line-height:25px;







	}







.padtop10{







	padding-top:16px;







	}







.padTop5{







	padding-top:5px;







	}







.sspc{







	float:left; margin-top:7px;







	background-image:url(img/sspc.gif);







	background-repeat:no-repeat;







	width:425px;







	height:265px;







	/*line-height:159px;







	vertical-align:bottom;







	padding-top:189px;







	padding-bottom:9px;*/







	}







.sspcTxtLnk{







	font-size:12px;







	color:#000000;







	text-decoration:underline;







	font-weight:bold;







	}







.sspcTxtLnk:hover{







	font-size:12px;







	color:#000000;







	text-decoration:none;







	font-weight:bold;







	}







.goldTxt{







	float:right; 







	width:104px; 







	padding:6px 4px 5px 0; 







	color:#FFFFFF; 







	font-weight:bold;







	}







.goldTxtLnk{







	/*float:right; 







	width:104px; 







	padding:6px 4px 5px 0; */







	color:#FFFFFF; 







	font-weight:bold;







	text-decoration:underline;







	}







.goldTxtLnk:hover{







	text-decoration:none;







	}







.realProjectContainer{







	height:402px; 







	background-color:#f3f2ee; 







	border:1px solid #dddcd8; 







	margin:8px 0 0 0;







	}







.realProjectContainer p{







	padding:10px 0 10px 0;







	}







.orangeTxt{







	font-weight:bold;







	font-size:14px;







	color:#e47100;







	text-transform:uppercase;







	}







.orangeTxtOther{







	font-weight:bold;







	font-size:12px;







	color:#e47100;







	}







.blueTxt{







	font-weight:bold;







	font-size:14px;







	color:#0464ba;







	text-transform:uppercase;







	}







.blackTxt{







font-weight:bold;







font-size:14px;







color:#000000;







text-transform:uppercase;







}







.blackTxtvi{







font-weight:bold;







font-size:14px;







color:#000000;







}







.blueTxtother{







	font-weight:bold;







	font-size:12px;







	color:#0464ba;







	}







.imgbrdr{







	border:1px solid #feca39;







	}







.overviewcontainer{

	clear:both;

	margin:8px 0px 0px 0px;	

	width:756px;	

}















.overviewcontainer p{







	padding:10px 5px 10px 5px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:17px;







	}







.aboutcontainer{







	margin:0px;	







	width:756px;







	background-color:#f3f2ee;	



overflow:auto;



	}







	.aboutcontainera{







	margin:0px;	







	width:756px;







	background-color:#f3f2ee;







	height:650px	







	}







	.aboutcontainera p{







	padding:10px 10px 10px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	}







.aboutcontainer p{







	padding:10px 10px 10px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	}







.aboutTxt{







	padding:5px 10px 0px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	}







.aboutcontainerlistBk{







	background-color:#f3f2ee; 







	margin:0px; 







	padding:0px;







	padding-left:10px;







	}







.listImg{







	float:left; 







	padding:4px 10px 10px 10px;







	}







.lstTxt{







	background-image:url(images/li-bulet2.gif);







	background-repeat:no-repeat;







	padding:3px 10px 5px 20px;







	margin:0 10px 0 10px;







	font-size:11px;







	line-height:14px;







	/*width:590px;







	float:left;*/







	}







.lstTxt1{







	background-image:url(images/li-bulet1.gif);







	background-repeat:no-repeat;







	padding:0 0 5px 20px;







	margin:0 10px 0 10px;







	font-size:11px;







	color:#303334;







	text-decoration:underline;







	/*width:590px;







	float:left;*/







	}







.lstTxt1:hover{







	background-image:url(images/li-bulet1.gif);







	background-repeat:no-repeat;







	padding:0 0 5px 20px;







	margin:0 10px 0 10px;







	font-size:11px;







	color:#0464ba;







	text-decoration:none;







	/*width:590px;







	float:left;*/







	}







.lstTxt2{







	background-image:url(images/li-bulet1.gif);







	background-repeat:no-repeat;







	padding:0 0 5px 10px;







	margin:0 10px 0 30px;







	font-size:11px;







	/*width:590px;







	float:left;*/







	}







.lstTxt2:hover{







	background-image:url(images/li-bulet1.gif);







	background-repeat:no-repeat;







	padding:0 0 5px 10px;







	margin:0 10px 0 30px;







	font-size:11px;







	/*width:590px;







	float:left;*/







	}







.lstLnk{







	color:#303334;







	text-decoration:underline;







	}







.lstLnk:hover{







	color:#0464ba;







	text-decoration:none;







	}







.genTxt{







	padding:10px 10px 10px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	margin:0px;







	}







.genTxt p{







	padding:10px 10px 10px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	line-height:22px;







	}







.otherTxt{







	padding:5px 10px 5px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	margin:0px;







	}







.otherTxt p{







	padding:5px 10px 5px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	line-height:22px;







	}















.otherTxt2{







	padding:5px 10px 5px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	margin:0px;







	}







.otherTxt2 p{







	padding:5px 10px 5px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	line-height:22px;







	}







.overviewHd{







	background-color:#454545;







	height:25px;







	line-height:25px;







	vertical-align:middle;







	color:#FFFFFF;







	font-weight:bold;







	margin:0px;







	padding:0px;







	}







.footerTxtLnk{







	font-size:10px;







	color:#FFFFFF;







	text-decoration:none;







	}







.footerTxtLnk:hover{







	font-size:10px;







	color:#FFFFFF;







	text-decoration:underline;







	}







.watertankImgContainer{







	margin:0px auto; 







	width:695px; 







	border:1px solid #9daab3; 







	height:160px; 







	padding:0 0 2px 3px;







	}







.liningImgContainer{







	margin:0px auto; 







	width:515px; 







	border:1px solid #9daab3; 







	height:195px; 







	padding:0 0 2px 3px;







	}







.vacublastContainer{







	margin:0px auto; 







	width:460px; 







	border:1px solid #9daab3;







	background-color:#f3f2ee;







	}







.imgBlk{







	float:left; 







	padding:6px 4px 0px 3px;







	}







.innerContainer{

	padding:5px 10px 0px 10px;

	background-color:#f3f2ee;

	font-size:11px;

	line-height:20px; 

	margin:8px 0 0 0px;

}





.innerContainerN{

	padding:5px 10px 0px 10px;

	background-color:#f3f2ee;

	font-size:11px;

	line-height:20px; 

	margin:8px 0 0 0px;

	width:736px;

	}

	

	

.innerContainerFood{

 padding:5px 0px 10px 10px;

 background-color:#f3f2ee;

 font-size:11px;

 line-height:20px; 

 margin:10px 10px 10px 0px;

 width:736px;

 overflow:auto;

}







.sandBlastImgContainer{

	margin:0px auto; 

	width:695px; 

	border:1px solid #9daab3; 

	height:140px; 

	padding:8px 8px 2px 8px;

	}







.sandblastImgBlk{

	float:left; 

	padding:6px 10px 0px 8px;

}





.sspcLogoContainer{

	width:670px; 

	margin:5px 0 5px 30px;

	background-color:#E47100;

	border:1px solid #e2cf8a;

	}







.sspcLogoContainer p{

	background-color:#E47100;

	color:#fff;

	}





.sspcimg{

	float:left; 

	width:100px;

	padding:5px 0 5px 5px;

	}





.sspcLogoTxt{







	width:560px; 







	float:left; 







	line-height:72px; 







	vertical-align:middle;







	font-size:12px;







	font-weight:bold;







	text-transform:uppercase;







	}







.sspcImgContainer{







	width:670px; 







	margin:5px 0 5px 30px;







	background-color:#ffffff;







	border:1px solid #e2cf8a;







	}







.sspcImgContainer p{







	background-color:#f3ecd2;







	}







.sspcImgContainerImg{







	float:left; 







	width:170px;







	padding:5px 0 5px 5px;







	}







.sspcImgContainerTxt{







	width:480px; 







	float:left; 







	line-height:72px; 







	vertical-align:middle;







	font-size:12px;







	font-weight:bold;







	text-transform:uppercase;







	margin-left:10px;







	}







.sspcstandardsContainer{







	width:730px; 







	margin:0px auto;







	}







.sspcstandardsLft{







	float:left; width:360px;







	}







.sspcstandardsRgt{







	float:left; width:360px;







	}







.gobackBtnContainer{







	float:right; width:200px; padding:250px 0 0 0;







	}







.jpclTxt{







	padding:10px 10px 10px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	margin:0px;







	}







.jpclTxt p{







	padding:10px 10px 5px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	/*line-height:20px;







	line-height:22px;*/







	}	







.testimonyTxt{







	padding:5px 10px 5px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	margin:0px;







	}







.testimonyTxt p{







	padding:5px 10px 0px 10px;







	background-color:#f3f2ee;







	font-size:11px;







	line-height:20px;







	line-height:22px;







	}	







/* -------------  New Tab Menu -------------  */







.navContainer{







	width:980px;







	height:39px;







	background:transparent url("images/topnav-back.gif") repeat-x top left;







	}







ul#saturday{







	margin:0;







	padding:0;







	list-style-type:none;







	width:auto;







	color:#874B46l







	}







ul#saturday li{







	display:block;







	float:left;







	margin:0;







	pading:0;







	}







ul#saturday li a{







	display:block;







	float:left;







	color:#5a646b;







	text-decoration:none;







	padding:10px 30px 0px 30px;







	height:27px;







	background:transparent url("images/nav-devider2.gif") no-repeat top right;







	}







ul#saturday li a:hover{







	background:transparent url("images/rollover1.gif") no-repeat top right;







	color:#FFFFFF;







	}







ul#saturday li a.current,ul#saturday li a.current:hover{







	color:#fff;







	background:transparent url("images/rollover1.gif") no-repeat top right;







	}















ul#saturday1{







	margin:0;







	padding:0;







	list-style-type:none;







	width:auto; 







	color:#874B46l







	}







ul#saturday1 li{







	display:block;







	float:left;







	margin:0;







	pading:0;







	}







ul#saturday1 li a{







	display:block;







	float:left;







	color:#5a646b;







	text-decoration:none;







	padding:12px 30px 0 30px;







	height:27px;







	/*background:transparent url("images/nav-devider2.gif") no-repeat top right;*/







	}







ul#saturday1 li a:hover{







	background:transparent url("images/rollover1.gif") no-repeat top right;







	color:#FFFFFF;







	}







ul#saturday1 li a.current,ul#saturday1 li a.current:hover{







	color:#fff;







	background:transparent url("images/rollover1.gif") no-repeat top right;







	}







/* ------------------------  */















/* NM Style Start ---------*/







.pagestyle{







	 color: #002898;







 	font-weight: bold;







 }







.bdyMdlN{







	margin:8px 0px 0px 8px; 







	/*height:170px; */







	width:726px;







	padding:0px;







	}







.welcomeContainerN1{







	float:left; 







	width:385px; 







	background-color:#dbdad6; 







	height:170px;







	text-align:left;







	}







/*.welcomeContainerN1 p{







	padding:10px 10px 5px 10px;







	line-height:25px;







	}*/







.sspcN{







	float:left; margin-top:7px;







	background-image:url(images/sspc-bgN.jpg);







	background-repeat:no-repeat;







	width:385px;







	height:229px;







	/*line-height:159px;







	vertical-align:bottom;







	padding-top:189px;







	padding-bottom:9px;*/







	}







.sspcTxtLnkN{







	font-size:12px;







	color:#000000;







	text-decoration:underline;







	font-weight:bold;







	letter-spacing:-.05em







	}







.sspcTxtLnkN:hover{







	font-size:12px;







	color:#000000;







	text-decoration:none;







	font-weight:bold;







	}







.lstLnk4{







	color:#e47100;







	text-decoration:underline;







	}







.lstLnk4:hover{







	color:#e47100;







	text-decoration:none;







	}







	.gray_text_11px_normal {







	font-family: arial;







	font-size: 11px;







	font-weight: normal;







	color: #777777;







}







.pink_link_11px_normal {







	font-family: arial;







	font-size: 11px;







	font-weight: normal;







	color: #0464BA;







	text-decoration: underline;







}







.pink_link_11px_normal:hover {







	text-decoration: none;







}



/*################################################added on 05/10/10



*/



.scollDvContainer{







 width:320px; 







 overflow:auto;







 height:360px;







 padding:10px 0;







 border: 1px solid #ccc;







 margin:50px 5px 5px 10px;







 







 }







.scollDvContainer h2{







 font-size:14px;







 







 margin:0px;







 padding-left:10px;







 }







.scollDvContainerLft{







 width:100px;







 margin:0px auto; 







 float:left;







 margin-left:10px;







 margin-top:5px;







 }







.scollDvContainerLft img{







 padding:2px;







 border:1px solid #666;







 }







.scollDvContainerRgt{







 float:left;







 width:180px;







 padding:0 0 5px 0;







 margin-left:5px;







 margin-top:0px;







 }







.scollDvContainerRgt h4{







 font-size:12px;







 font-weight:bold;







 padding:0 0 0px 0;







 text-decoration:none;







 color:#e57100;







 margin:0px;







 }







.scollDvContainerRgt a{ 







 text-decoration:none;







 color:#e57100;







 }







.scollDvContainerRgt a:hover{







 text-decoration:underline;







 }







.scollDvContainerRgt p{







 padding:0 0 5px 0;







 margin:0px;







 







 }







.dashed_divider {border-bottom:1px dashed #CCCCCC;







margin-top:13px;







*margin-top:20px;







padding-bottom:13px;







*padding-bottom:15px;







}



/* added on 05/10/10 */



/*.whatsNewContainer{



 margin:0px; 



 width:756px;



 background:#f3f2ee;



 padding:10px 0; 



 }*/

.whatsNewContainer{

 margin:0px; 

 width:736px;

 background:#f3f2ee;

 padding:10px; 

 }





.whatsNewContainer div.overviewHd_a{



 background:#333333;



 line-height:25px;



 vertical-align:middle;



 font-weight:bold;



 margin:10px auto;



 width:700px;



 padding:10px;



 }



.overviewHd_a p{



 line-height:25px;



 vertical-align:middle;



 color:#FFFFFF;



 font-weight:bold;



 }



.overviewHd_b{



 line-height:25px;



 vertical-align:middle;



 color:#666;



 font-weight:bold;



 margin:0px auto;



 width:700px;



 }



.overviewHd_b p{



 line-height:25px;



 vertical-align:middle;



 color:#666;



 font-weight:bold;



 }



.overviewHd_c{



 line-height:25px;



 vertical-align:middle;



 color:#666;



 margin:0px auto;



 width:700px;



 }



.overviewHd_c p{



 line-height:25px;



 vertical-align:middle;



 color:#666;



 }
 
 .recent-projects {
	 clear:left;
	 padding-top:20px;
	 text-align:center;
 }
 
  .recent-projects a {
	  text-decoration:none;
	  color:#333;
  }


   .recent-projects a:hover {
	  text-decoration:none;
	  color:#e57100;
  }

Open in new window

0
 
LVL 14

Accepted Solution

by:
Dzynit earned 500 total points
ID: 40385056
Try commenting out line 28 of the content.php in the child theme
<?php //twentythirteen_entry_meta(); ?>

Open in new window


And let's see how far the page loads after that.
0
 

Author Closing Comment

by:lonnyo
ID: 40385088
That did it!  Hopefully that doesn't break anything else on the site.  Thank you so much!
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 40385116
That won't break anything else, but you'll want to click around the site to see if any other functions from the parent aren't taking effect in the theme and causing the same type of issue.

Hopefully not, but you'll know what to look for now if you run across anything.
0
 

Author Comment

by:lonnyo
ID: 40385144
Apparently it is not 100% fixed.  The footer and sidebar are not showing up.  Do I start another question?
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 40385184
It's up to you. Looks like the next missing function is in the footer.php. Would have been much better if we could have just replaced all the missing functions into the child, but that caused the white screen and I've reviewed the functions.php code I pasted and can't find where it would be causing the white screen problem.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This how-to not only gives you some answers on what to do when Blogger.com discontinues FTP support, but offers up some solutions for bloggers on a Blogspot subdomain looking to move to their own domain.   According to an email I received the othe…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now