Forums

Utterly obvious question- but I'm having a seriously off day (2 posts)

  1. rawwebdesign
    Member
    Posted 5 years ago #

    Hi,

    I'm trying to figure out how to automatically link to my stylesheet via PHP. It looks like this now,

    <!-- Stylesheet Info -->
    <link title="Usability House Style" rel="stylesheet" href="http://www.modernshaman.org/wp-content/themes/ultimate-diva-sandbox/style.css"
    type="text/css">

    But when I got to install this theme on another site, this will be all wacky.

    Any ideas?

    Thanks! Brad

  2. JonathanDrain
    Member
    Posted 5 years ago #

    Use bloginfo('stylesheet_url'). Here's how the Pool theme does it.

    <style type="text/css" media="screen">
        @import url(<?php bloginfo('stylesheet_url'); ?>);
    </style>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags