WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
stylesheet_uri using plugin path instead of theme path? (2 posts)

  1. gekido
    Member
    Posted 2 years ago #

    I have a custom wpbook_theme folder setup in my theme's directory - it's working fine, I can (and have) customized the theme layout etc.

    EXCEPT - the stylesheet is still being pulled from the 'plugin' folder instead of the theme directory?

    Judging from the comments in the theme & other places I've seen, is this a known issue? Anyone with any ideas how to get wpbook to use the stylesheet from the /themes/wpbook_theme directory instead of plugins/wpbook/wpbook_theme directory?

    http://wordpress.org/extend/plugins/wpbook/

  2. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    @gekido Didn't realize this was happening - I don't use the custom theme folder myself.

    Looks like a bug - we're using the stylesheet filter (see line 998 in the current wpbook.php) but the function (wpbook_stylesheet, at lines 949 to 957.

    This looks to see if a custom theme named 'WPBook' is installed, and if it is returns default.

    Unfortunately I don't see good quick documentation on the stylesheet filter and what it *should* be doing, so I will need to look into it further

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags