You will have to specify template directory in your inline background style too.
Use it like this.
<header class="entry-header" style="background: url('<?php bloginfo('stylesheet_directory'); ?>/images/bg_the-firm.jpg')no-repeat left top;">
If WordPress strip your inline styles, you can use body classes to add specific styles to each page.
Each page have some body classes, you can find those in page source in any browser. And define your header background like this in your style.css
.
body.page-id-6 header.entry-header{background: url('images/bg_the-firm.jpg') no-repeat left top;}
Make sure you define page specific styles at the end of style.css
to avoid overwriting it’s effect.
Related Posts:
- Vertically align text within a div
- Insert image after each list item
- How to add a color overlay to a background image?
- Change color of PNG image via CSS?
- In CSS what is the difference between “.” and “#” when declaring a set of styles? [duplicate]
- How to completely remove borders from HTML table
- How to fix a footer overlapping content?
- What is element.style and why is it overriding my css settings?
- What’s the HTML to have a horizontal space between two objects?
- Overflow Scroll css is not working in the div
- CSS Div width percentage and padding without breaking layout
- CSS div width not working
- How to place Text and an Image next to each other in HTML?
- What does the “~” (tilde/squiggle/twiddle) CSS selector mean?
- CSS background-image – What is the correct usage?
- Set bootstrap modal body height by percentage
- Click through div to underlying elements
- How can I fill a div with an image while keeping it proportional?
- Inbuilt style for jquery-ui-datepicker
- Why is style.css not being enqueued?
- Remove top admin bar
- How to add a class to ul tags created by the WordPress editor Tinymce?
- Using theme options to change link colours
- When enqueing a stylesheet, is it possible to remove the type attribute? [duplicate]
- Collapsible button inside a ul list does work in jsfiddle but not in WP
- How to make float element in tinymce
- How to add 10 different css class to posts
- Can “ and “ tags be used in the HTML editor?
- JavaScript added as link/stylesheet
- Is there a default style.css
- How to get a value for admin css color either gray or blue
- Change color of audio player depending on user role
- Adding external stylesheet after ALL other styles
- How can I use PurifyCSS to clean WordPress style.css?
- WordPress CSS doesn’t update
- Removing Title From Links to Site
- create bootstrap columns inside editor group block
- Website scroll not working on SAFARI
- Admin pages missing css
- Old Site displays on Mobile View, not New Site
- No responsive design is displayed
- Child theme CSS not applying to element
- How to Style Primary Menu with Active Class
- Set 3 iframes in a row
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- Make CSS Changes To Only Affect Mobile Browser [closed]
- Disable File Editing function
- wp_enqueue_scripts and CSS
- HTML email sent with wp_mail shows plain text
- Change Header Image on Blog Post for Mobile View
- Add second background-image on hover
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- Having a hard time linking my css and JS files on a Boostrap to WP conversion
- Reduce font size [closed]
- Using css class selectors on a specifc page [closed]
- How can I force the WordPress visual editor to preserve the line breaks after paragraphs?
- Common page width? [closed]
- WordPress Rest Api access the header and extract stylesheets URL
- Login validation on wordpress
- How to create CSS Counters for Comments (depth 5)?
- Override All CSS with Custom CSS on a Page by Page Basis
- Navbar bg to overflow to section below (updated)
- Add top parent page id to body class
- New Styles Not Rendering On Mobile Phone and Tablet
- How can customized CSS on WordPress highlight the blog title in white when it’s not intended?
- Are there any CSS classes for the wordpress colours?
- Set different css stylesheet for specific pages [duplicate]
- Desktop is class List and Mobile is class Grid
- Include ElementorPro css into WordPress custom page
- Customizing the CSS for the post/page editor?
- My Child Theme CSS Isn’t Working
- current menu item hover not working?
- how to load basic wordpress css
- Fonts are not applying
- header background color changed after drop & import database in phpmyadmin
- Add class when more page is visited
- How do I make a child theme’s style.css load after plugin css?
- Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site
- Floated element floats into post content in IE, Safari, and Chrome
- How to include backend buttons css on frontend?
- Managing large CSS files [closed]
- How would I use a media query to make my entire theme responsive or fluid? [closed]
- Clear white line off page [closed]
- Strange symbols on page [closed]
- css .active dropdown selects all links
- background changed after WordPress update
- How to make this splash page responsive
- Menu is not styled properly and footer as well [closed]
- Footer in middle of page in different browers [closed]
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- Why is the image in div not displayed in full-size?
- How do I add JS and CSS to WP (Flatsome)
- can i custom rendered content from API?
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- How to include Elementor CSS in custom php file [closed]
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts