Try something like this…
Add the image path in PHP using an inline style, instead of in your CSS.
<div
style="background-image: url(<?php echo $image['url']; ?>);"
id="home-cover"
class="bg-parallax animated fadeIn"
> // close div
Related Posts:
- Display all values of custom a field created with ACF on a page
- If Custom Field is empty don’t display div
- Conditional statement for parent, child and grandchild pages
- Unique key for each row in a repeater field
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Importing hard coded custom field into acf field
- ACF page while loop breaks footer while loop
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- How to use thumbnail size of image if I’m only using src to get image
- Advanced Custom Fields – display label and value only if value entered
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Including Custom fields within the_content
- Delete images from media library when user deletes an image from ACF Gallery
- Query on a repeater date (acf)
- ACF – Can’t get custom post type by taxonomy
- WooCommerce multiple custom fields code
- ACF Date fileds to Age Convert [closed]
- Advanced Custom Fields Show PHP in Text Areas
- ACF number less than comparison not working
- Cannot Access ACF Field Values via my Plugin
- How to create advanced custom fields for backend content
- Display posts in correct month order using single date custom field
- Using Advanced Custom Fields to create a per page slider
- how to remove metadata from the posts of my blog?
- How can I create a list of page titles from custom meta values?
- Load a page into a div with Ajax
- My form action url is being prepended with a directory that does not exists
- Passing the custom field values in the wp_get_current_user array function
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Converting HTML Template to WordPress Theme
- Sort posts by custom fields value using dropdown menu
- Display PHP within HTML values
- Multiple options not staying selected after saving
- Custom profile field with birthday. Troubles with
- Using the echo command adds unwanted br tags to source
- custom fields wordpress
- Why the JavaScript code is ignored from wp editor?
- WordPress – Display array data of a child
- Populate dropdown with Child Pages based on Parent Page chosen
- ACF: how do I get the fields and its values of a specific group?
- How to store data from multiple forms using ajax and php
- search and replace preword from author
- Embed html in php code
- wordpress allow user to edit user profile with custom fields
- Saving an array of dynamic repeater data as post_meta
- WP grandchild categories in nested ul li
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- Use DOMDocument with ob_start breaks my HTML code
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Need Help Fixing My Iframes [closed]
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Firing schema via code in functions.php doesn’t work
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Remove the first 5 characters of the_title and orderby that
- Adding number to date not working [closed]
- Unread Repeater field IMG alt not working
- Unable to write multiple values back to ACF user field – PHP
- How can I add extra word in permalink when someone click download button?
- Update grandchild repeater field with value per row
- Saving and Restoring a Canvas on A Individual User Basis
- selected option if current category is the value
- Seach custom post type posts only by meta fields?
- Slick + PHP + ACF + JQuery slide reveal not working
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- How to remove ?wp-mce-4103-20162941
- how to retrieve a value if a checkbox is checked
- Customize position of social icons in upme plugin [closed]
- Trouble checking if custom woocommerce checkout field is empty or not
- Why Won’t My Inputs in a form with a Get method work together?
- Two queries for a WP_User_Query search work perfectly apart, but not together
- parts of url disappear when using # inside href=”” [closed]
- Settings API callback function inserts html quotes from nowhere
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Dot is not added at the end of href
- WordPress Multiple Navigation bars
- Position banner to right of logo in header – messed up my header file
- auto-populating custom nav with all items from custom post type
- Commenting out unwated CSS/scripts in HTML with PHP
- Add / Update Custom Fields After Select Pictures in Media Window
- conditional logic for front-end custom field edits
- How to separate HTML and WordPress files
- Add .htm extention to a custom taxonomy
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Trying to retrieve post meta
- Displaying custom field according to date
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Sort by page information by Ascending Numbers
- Automatic Shortcode Creation with Custom Fields [closed]
- Custom field values to taxonomy terms
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Redirect to another page using contact form 7? [closed]
- Make PHP work with HTML tags
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Custom Field IF/ELSE PHP