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
- Allow HTML in custom taxonomy description, and show it on front end
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- Where should I install a PHP library into WordPress so that code in a webpage can activate it?
- How to make an meta_query optional?
- Multiple pages on one with different HTML
- How can update custom meta for all posts
- Add custom HTML to posts page
- Minify HTML, CSS, JS with PHPWee?
- How to only show page id as body class?
- Looking for most performant way to execute several similar WP queries within shortcodes
- Shortcode content output but not in correct place
- Trouble With Conditional Logic in PHP
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- Input data from email form not going to JSON file
- Different post styles depending on category
- Displaying custom field according to date
- Which PHP page is the Default Posts Page
- Non-Closing PHP Query in WordPress Loop
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- How to show/hide php table rows based on the content of custom fields
- Add data-id attribute to child page links
- how to get serialized post meta
- Prevent redirect to wp-login.php
- Get ACF options field in PHP acting as CSS
- How can I count ACF sub_field with a certain value
- How to add post meta in while loop?
- Adding function to child theme’s function.php
- Calling function in loop causes repeat data
- Output custom text field as unordered list
- Advanced Custom Fields [closed]
- Link to page with posts of specific type
- Order a WP_Query by meta value where the value is an array
- Add a custom class to the body tag using custom fields
- Get All In One SEO Pack to use custom field instead of Content
- Displaying images outside the content
- Updating Metadata with Shortcode
- WordPress User Meta value variable into Google Gauge Chart
- Problems updating nested ACF field groups
- PHP function for horizontal Woocommerce thumbnails and badges
- Setting up a cron job to auto update a custom field
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- couldnt show short code atts in category
- separate list of programs in html/javascript coming from php
- Drop down question
- Advanced Custom Forms PHP formatting for do_shortcode
- ACF Gallery field images donwload
- ACF under category name in shop page [closed]
- Trying to retrieve meta values from three different meta keys and display in rows
- WP post meta – for loop inside for loop
- ACF background-color per post in a WordPress loop
- Store custom field’s multiple values in one user meta key
- How to override html codes in wordpress?
- Target a specific container to style on WordPress storefront theme
- Create html tree sitemap
- WP_query meta_query slow with OR and DATES
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- Pass form attributes to another php template in wordpress
- meta field for numerous links
- Custom HTML form using PHP – help with ajax/username validation
- How to create a php page to collect information from a html page
- Can’t make product images clickable
- I need help implement a Javascript code into the PHP file
- WooCommerce – Print Processing orders [closed]
- Get month and day from a Date Picker custom field
- Category – “No content found”
- divide custom field values in div every two values
- Showing custom field contents without listing description
- How to exclude post from being queried based on custom meta value
- WordPress – Image href for home menu nav not working
- Search result page – display values from the result’s metaboxes
- Order woo products, but first products must be with acf fields
- Parse error: syntax error, unexpected ‘}’ in
- Custom HTML/CSS Theme into WordPress – SEO considerations
- How to enqueue structured data as file – jsonld file seems not to work
- Creating posts with php-script + csv
- Slick slider not working on wordpress
- Shortcode Displays 2 times
- How to get ACF field to show up on all posts on front end?