WordPress.org

Ready to get started?Download WordPress

Forums

Simple Pull Quote
[resolved] plugins_url() to avoid hard-coded 'wp-content' path (2 posts)

  1. John LeBlanc
    Member
    Posted 2 years ago #

    Hi Toby!

    Just wanted to suggest an alternative to hard-coding 'wp-content' within your my_css() function, since the wp-content directory may be customized using constants:
    http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content

    See line 37 of simple-pull-quote.php. You might consider something more like this:
    plugins_url( 'css/simple-pull-quote.css', __FILE__ )

    Here's some more info:
    http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    Aloha!
    John

    http://wordpress.org/extend/plugins/simple-pull-quote/

  2. Toby Cryns (@themightymo)
    Member
    Plugin Author

    Posted 2 years ago #

    @John - Thanks for the suggestion! I will implement that in the next release.

    Toby

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.