My Custom CSS
How to reference image paths used with rest of theme? (2 posts)

  1. mcheck
    Posted 2 years ago #

    How does one use a css background image stored in the theme?
    Whenever url() is used, the base path results from the location of the plugin, rather than the location of the theme being used.

    { background: url('images/border-img.png') 0 0 repeat-x; }

    The result is:

    Would like it to use the images I have stored and use for the rest of the theme at:

    And if it could correctly manage child themes by finding the base directory using:
    <?php echo get_stylesheet_directory_uri() ?>


  2. Salvatore
    Plugin Author

    Posted 2 years ago #

    it use reference from plugin directory... i think is best to use absolute url or try to move in sup_dir from 2level with "../../images/border-img.png" ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • My Custom CSS
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic