WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. vaderag
    Member
    Posted 7 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?

    Thanks

  2. alakhnor
    Member
    Posted 7 years ago #

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

  3. vaderag
    Member
    Posted 7 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