I need to put a relative image path in "before_widget" within functions.php. The only possible workaround I can think of is using CSS to create a class or DIV and put a background-image property, changing the display to this property as block.
Another way would be to hard-code the image path, but I really don't want to be doing that. Imagine if the URL changes.
What I want is to use a relative URL path to the image. In the header I included blog_info in the script to get the relative image path. Now this doesn't work when trying to use it in before_widget. I use NetBeans, works wonderfully for validation.
If anybody knows how put a relative image path in the before_widget property, without the need for CSS background images it would be greatly appreciated.
I know I can solve the issue this way, the main cause of the post is to learn, and not so much to solve the issue.