The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] stylesheet_directory conflicting Codexinfo (4 posts)

  1. efa
    Posted 5 years ago #

    I just noticed that there is a conflict in the info provided about "stylesheet_directory" at two locations in the Codex. As far as I can tell, stylesheet_directory used to point to the parent theme stylesheet directory, but now points to the child stylesheet directory (if a child theme is active)

    This page appears to be correct:

    And this one appears to be wrong:

    I don't think I know enough to edit these entries myself, so I'm hoping someone with more WP expertise will read this post and edit the Codex appropriately.

  2. Not seeing what's wrong here... The child theme IS the active theme.


    URL of the stylesheet directory of the active theme. (Was a local path in earlier WordPress versions.)


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

  3. esmi
    Forum Moderator
    Posted 5 years ago #

    Ditto. stylesheet_directory() has always pointed to the active theme's directory.

  4. efa
    Posted 5 years ago #

    Oops. Must have been a boneheaded reading on my part (probably looking at the example for template_directory).

Topic Closed

This topic has been closed to new replies.

About this Topic