How to get stylesheet url from root as opposed to http (3 posts)

  1. vaderag
    Posted 9 years ago #

    I'm sure i've done this in a previous version of WP but cant seem to find the function to do it now...
    I want to use the stylesheet location in some php, but it needs to be from root, not http, so get_bloginfo('get_stylesheeturl') doesnt work.
    Can anybody tell me the function for this?


  2. alakhnor
    Posted 9 years ago #

    ABSPATH gives the path to wp root.
    bloginfo('stylesheet_directory'); gives the path to theme.

  3. vaderag
    Posted 9 years ago #

    bloginfo('stylesheet_directory') gives it as http://etc tho doesnt it?

Topic Closed

This topic has been closed to new replies.

About this Topic