Styles that don't get lost if I change Theme (2 posts)

  1. greyowl
    Posted 7 years ago #

    I want to create some styles of my own. I know I can add them to the style.css of my Theme. But when I change Theme, they've gone! Can I easily add a .css file fo my own that will be found whatever Theme I choose? How can I do that?

  2. Adam Brown
    Posted 7 years ago #

    You would need a plugin that uses the "wp_head" hook. You'll probably need to write it yourself. Check the codex for the plugins API.

    API: http://codex.wordpress.org/Plugin_API

    Action hooks (search for "wp_head"): http://codex.wordpress.org/Plugin_API/Action_Reference

Topic Closed

This topic has been closed to new replies.

About this Topic