• I’m trying to create a new page template.

    I have the new page named and functioning and used a PHP include to use my own custom sidebar.

    When I created websites in the past my css was linked on each page. Where is the css linked in the themes and how do I tell my new page to use the themes stylesheet?(somehow it’s linked already) I figure I can just link the stlysheet on the page, BUT I want to know how it’s done in the theme. I’m assuming it has to AGAIN do with PHP which is why I cant figure it out and why I cant find the:<LINK href=”mystyle.css” rel=”stylesheet” type=”text/css”>

    Thanks
    iso

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your stylesheet link will be within your theme’s header.php or functions.php file. Ideally you just need to add your new styling to the existing stylesheet.

    Your page template should call <?php get_header(); ?>, which is used to include the header.php template file. This will allow all page templates to use the same header information, including scripts and stylesheets.

    If you have a custom stylesheet, I would suggest hooking it in via the wp_print_styles hook, in functions.php.

    Thread Starter isonychia

    (@isonychia)

    Guys thank you.

    The more I do this the more I realize I need to learn php to understand things fully.

    I’m just not that enthused to delve into it.

    I have not found a system that teaches it in a way that shows what it can do through examples of real world needs.

    iso.

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