• Hi there,

    ive got piano black installed, and im trying to make some changes to the page layout. Im making changes to the stylesheet.css but these changes are not showing on the pages..

    even with a forced refresh “ctrl f5”

    any ideas?

    I have figured out how to make spaces between paragraphs with <div>&nbsp;</div> but i need to make more changes to have page looking less “straight from the box” ! lol..

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter deliwasista

    (@deliwasista)

    I can see this in my header

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    Should I be replacing the “stylesheet_url” with the absolute url?

    Hey Deliwsita,

    The style sheet in Piano Black is called style.php, not stylesheet.php, so make sure you rename it to that and test.

    You have no need to replace anything in the header unless you really, really want the style sheet to be called something different. Thats when to use an absolute URL, but would not recommend it.
    <link rel="stylesheet" href="stylesheet.php" type="text/css" media="screen" />

    Thanks.

    Thread Starter deliwasista

    (@deliwasista)

    Hi duck_boy,

    thanks for the reply. Yes sorry you are right it is called style.. but its .css? should I be looking for php?

    Ive just tried
    <link rel="stylesheet" href="https://www.mysite.co.nz/wp-content/themes/piano-black/style.css" type="text/css" media="screen" />

    in the header .. and that didnt fix things sadly.

    Any other ideas? ??

    No, sorry, it is .css – brain fade!

    Change the header back to what it was originally and have a look at your rendered HTML for that section – it should say pretty much whould you have (Click ‘View –> Source’).

    Post it on here if you are unsure.

    I have just downloaded that theme though and made one amendment to the stylesheet and it worked fine. Also, this may be a silly question (and not sure of your experience?), but you have changed the theme so that Piano Black is activated? It’s an easy thing to forget, especially if you happen to be new to wordpress. To check click ‘Appearance’ in your admin section and check which is the current theme.

    Thread Starter deliwasista

    (@deliwasista)

    I have terminal brain fade ??

    and what a great idea re looking at rendered HTML.

    right its showing as

    <link rel="stylesheet" href="https://www.mysite.co.nz/wp-content/themes/piano-black/style.css" type="text/css" media="screen" />
    
    <link rel="stylesheet" href="https://www.mysite.co.nz/wp-content/themes/piano-black/comment-style.css" type="text/css" media="screen" />

    and ive made some obvious changes to the copy eg huge blue headers.. so that I can spot the difference when the .css finally works.. and no changes are showing.

    I am building a static site.. and entering copy into the pages via the userpanel. Im using the style.css file.. Should I be doing something to the comment-style.css instead? Ive tried messing with that too but that does nothing either (because im not using comment divs most probably)

    I have the piano-black installed… and i have successfully used the .css to move the menu down and stretch to fit. So the .css does work.. just doesnt effect my copy ?? im sure its something obvious..

    have you managed to get it to change your paragraphs.. and lists?

    Thread Starter deliwasista

    (@deliwasista)

    All fixed. I see that all of my copy is controlled by the “post” prefix eg

    .post h2 { margin:0 0 4px 0; padding:0; line-height:100%;  }
    .post h2 a, .post h2 a:visited, #single h2 { color:#ccc; font-size:16px; line-height:120%; font-weight:normal; }
    .post h2 a:hover { text-decoration:none; color:#83bac4; }

    and the <p> tag has been controlling the space between paragraphs with the 4px margin – which is why all my <br />tags have had no effect!

    Glad you got it fixed, and sorry I couldn’t get back to you before hand.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘.css not working? im making changes but they are not showing..’ is closed to new replies.