That’s because php code inside a CSS file is not parsed unless you configure your server to. Just use it as a relative path to the image (as per the CSS file).
background: url("images/bg.jpg");
Related Posts:
- Featured images are cropped on index and post page
- Customizing a WordPress theme without changing it?
- how to add version of style.css in wordpress
- How can I version the main CSS file?
- How to set two different themes on one WordPress? (Desktop vs. Mobile)
- add image size still doesn’t work even after regenerating thumbnails
- How to use scss in wordpress theme?
- How to automatically highlight syntax of code in a post?
- The style.css stylesheet doesn’t contain a valid theme header
- Change Default Image HTML
- Exclude stylesheet from admin
- hfeed CSS class in Twentyeleven Theme
- Alternate header image
- Change logo on each page of University Hub theme [closed]
- Theme information in style.css being corrupted
- How do you create a custom WPTouch theme?
- How to start learning CSS and theme development?
- How do I apply my CSS to a theme page?
- how to remove padding from left and right side? [closed]
- 404 Error while accessing the font files
- Child Style.css not overriding parent theme style located in assets/css/main.css
- How does a Child Theme works?
- Creating new templates in child themes breaks layout
- none of my css is working in my child theme
- X-Axis of Site is Messed Up Because it is in Hebrew
- Style the archives/category sidebar widget via theme
- How to find out if page_for_posts is showing (in order to style menu item)
- Custom CSS doesn’t work in edit mode
- Remove transparancy in Sydney theme’s headerimage
- How can I add class to every quote element?
- Twenty fifteen theme – change responsive menu condition
- CSS Start Fresh option on; main.css still being loaded [closed]
- Port existing Bootstrap site to WordPress?
- Different logo on homepage
- Finding and disabling ‘rogue’ stylesheet from header: Source Sans Pro
- Need to edit themes HTML code
- Child theme’s stylesheet cannot load [closed]
- Is it good practice moving the main stylesheets after the plugin styles?
- What Generated Classes and IDs That Is Always Used On All Themes?
- Passing dynamic options from backend to frontend
- Re-skinning Site
- Calling external Libraries in WordPress
- How to upload and style svg logo?
- What’s the default order used by WordPress to load CSS files?
- Newbie wordpress question re banner height
- How would you add sequentially numbered labels to images in posts?
- On a Https site, Css and Js Url are back to http after redirect the site
- Why submenu item’s background color is not changing by css?
- Cannot figure out what element header color is in wordpress theme [closed]
- How to access theme fonts using custom CSS style? [closed]
- Increase content area width in TwentyFourteen [closed]
- Using Grunt and keeping theme comments
- Background image appears on localhost site but not online
- Event Organiser breaks the theme [closed]
- how would I change background color of a theme using a plugin?
- Date based CSS/theme
- WordPress doesn’t recognise created theme
- Menu items do not “open” when mouse hover over them?
- My blog suddenly can’t find my stylesheet?
- WP Nanoplex 1.0.3 malfunction
- how to stop a gallery slideshow
- Is there any way to modify images from a theme using the web interface?
- Broken theme, stylesheet is missing after uploading the right theme via FTP
- removing side space between para and container on generatepress?
- Remove the breadcrums on a theme W
- Enqueue All Stylesheets Found In a Theme Folder
- WordPress margin issues
- How Can I Disable WordPress Theme Self-Update?
- Remove style id inline CSS in WordPress
- Adding custom html/css/images to Theme
- how make wp include urls as https?
- style.css of my custom theme is not being applied at all
- CSS in child theme isn’t working properly
- WordPress loads old style.css, then loads current one
- Strange Theme Error – parent style occasionally showing though child theme
- How to get dynamic template-function generated CSS into HEAD?
- TwentyFourteen Theme : Changing grid layout
- 1px black line appearing down right side of thumbnails (theme snaps) [closed]
- Phone numbers showing same color as header [closed]
- EM in CSS different size on wordpress then elsewhere [closed]
- Orion theme (from theme forest) [closed]
- How do I block a subdirectory from WordPress theming?
- Theme files and imagesnot loading on a mobile device
- Customising a theme
- Blog shows up without Theme/CSS styles
- Boldy theme – Regarding the images above the boxes
- Child theme after CSS modification
- How to Hide Blog Post Author?
- How can i limit wordpress post title characters in sidebar?
- How can I either move the nav bar down or create more space for the header? Theme – Ajaira
- Commenting in CSS (//) equals “none”? [closed]
- How to insert a column (part of theme) in the middle of the content body?
- Help with responsive theme styling issue
- How to change the standard width of a page
- Theme install failed
- How can i remove footer credit text
- I am having trouble displaying an image at the top of a widget area [closed]
- Custom Theme Additonal CSS “” are transformed to “>” and “<”
- Using Featured Image as Hero Background in Word Press
- How to remove pop up on website (css changes not visible)?