• I just updated to 4.7.2 and am being told that my theme is Broken – the the style sheet is missing. I checked and the stylesheet is actually there.

    It has been some time since I updated the theme. So I am wondering has the way of referencing stylesheets changed in the last year?

    The way I reference the style sheet is the following:

    link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/-/css/styles.min.css">

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi danleeuk-cpicom,

    A couple of questions to run past you:

    (1) Can you please share a link to your site? Looking directly at the code can make the trouble shooting process much more efficient.

    (2) Have you checked with the theme developers to see if this is a known issue with the theme?

    Thread Starter dan.lee@uk-cpi.com

    (@danleeuk-cpicom)

    Hi Liam.

    1) Here is the link: http://tesla.uk-cpi.com/
    2) I am the theme developer, haha!

    • This reply was modified 7 years, 2 months ago by Jan Dembowski.

    Hi danleeuk-cpicom,

    Ha-ha! So, yeah, I’ve been there too. It happens. C’est la via.

    That link – http://tesla.uk-cpi.com/ – isn’t loading for me at all. Can you confirm that it’s the right one?

    Thread Starter dan.lee@uk-cpi.com

    (@danleeuk-cpicom)

    Its the correct link. This is the result of the template not working.

    Now I see the white screen of death. Before that, I was seeing the Google Chrome message indicating that the site was not available.

    I am betting it’s something in Line 12 of your header.php file as that’s where the page load stops.

    In your code above, you’re missing the opening <. Is it that way in your file or just a errant copy/paste into this forum?

    Thread Starter dan.lee@uk-cpi.com

    (@danleeuk-cpicom)

    That is a copy and paste error.

    I have marked line 12 in the code for my header below. It seems to be tripping over the PHP for managing the title.

    <!doctype html>
    <html lang="en">
    
    <head>
    	<meta charset="utf-8"/>
    
    <!-- TITLE -->
    
    	<title>
    	<?php global $page, $paged;
    
    	wp_title( '|', true, 'right' ); <!-- Line 12 -->
    
    	// Site name.
    	bloginfo( 'name' );
    
    	// Site description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); ?>
    	</title>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Broken Theme when updating to 4.7.2’ is closed to new replies.