• Hello
    I’m working on my first WordPress site. I’ve just converted a static html page to PHP and created my first theme. everything seems to work fine (theme looks/functions ok) until I click on a post. When I do that, the CSS drops back to I’m guessing what is the default theme or something. I’m guessing I missed a connection strand somewhere or something. Anybody have any ideas?
    Thank you
    Justin

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you using another template for the post?

    Thread Starter justinrusso

    (@justinrusso)

    I might be. what I did was duplicate a theme (twentyeleven) and changed the index.php and style.css to show my static html page. I don’t think I used any other type of template.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    How are you calling the stylesheet in the page that works?

    Thread Starter justinrusso

    (@justinrusso)

    I inserted this code into the index.php and put the stylesheet in my modified theme folder.

    <link href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” rel=”stylesheet” type=”text/css” >

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In the header.php file, what do you have that calls the stylesheet?

    Thread Starter justinrusso

    (@justinrusso)

    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />
    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Clicking on a post drops the CSS’ is closed to new replies.