• stijn03

    (@stijn03)


    Hi,

    In no single php file i see a reference to CSS. How does it work? in a manuel i read that there should always be a reference to the CSS file in every .html or php?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    That’s correct. The relevant line will be in your theme’s header.php or functions.php and, as such, will be output in every web page.

    Thread Starter stijn03

    (@stijn03)

    thanks, but i don’t get it completely yet.

    I think this is the relevent line you are referring to?

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

    In the function manuel, it is explained like:

    stylesheet_url = http://example/home/wp/wp-content/themes/child-theme/style.css

    However, i don’t see how this line is included in the ‘right file’ and referring to the right CSS.

    Say for example that comments.php need some CSS. I think for the blog content there exist only one CSS, namely style.css? But then this line has to be added to all the php files?

    esmi

    (@esmi)

    bloginfo( 'stylesheet_url' ) references your current theme’s stylesheet.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS’ is closed to new replies.