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
- start_lvl Ignored in Custom walker_nav_menu
- What exactly does “Posts page” do in WordPress?
- Adding a search form inside a div
- Load custom field value into div with AJAX
- Blank on static home page?
- How to use a frontend URL with a Plugin
- How to display blog images using wordpress in existing project
- How to display a value from a radio button in the options menu in wordpress
- Custom image upload
- How to display recent posts on home page with custom HTML
- WordPress automatically adds tags when pasting code, how to stop it?
- how to increase custom post value by one most efficiently?
- ACF: Only get first row of a Repeater Field
- Slide in Panel WordPress Post
- Upload Image in a WordPress page using PHP
- 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
- Display PHP within HTML values
- custom fields wordpress
- Why the JavaScript code is ignored from wp editor?
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Unable to write multiple values back to ACF user field – PHP
- Update grandchild repeater field with value per row
- Why Won’t My Inputs in a form with a Get method work together?
- How to get the value of input hidden html from text editor to custom page template?
- auto-populating custom nav with all items from custom post type
- Sort by page information by Ascending Numbers
- Automatic Shortcode Creation with Custom Fields [closed]
- How to convert select to HTML with PHP tags inside of it [closed]
- Download PDF after CF7 form submission
- How to check if a PHP string is different than meta field?
- php within html within php
- Hide Heading if ACF Field is empty
- php esc_html_e with an html link inside not working
- Using ob_start and ob_get_clean with wordpress shortcode
- Custom meta box values are not getting saved for my custom post type
- WP_Query: getting posts where custom field exists
- Accessing values from ACF sub field (flexible content area) in PHP
- WordPress loop by meta key that is an array? and how loop multiple arrays
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- WP All Import / Update stock quantity from multiple XML files
- Getting taxonomy category Image from ACF [closed]
- Concatenate Custom Field Value & HTML Value
- Hide a div when a custom field is empty
- Display background color or image with custom meta box?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Can ‘Custom Field’ data be inserted into this Short Code?
- Add class to all img if they have a certain ACF field
- Adding a custom meta field with default NULL value which is not selectable
- Search bar for wp menu
- Products listing check if meta checkbox is checked
- Executing php on button press
- Bootstrap 4 Carosuel with ACF Repeater field
- How to update custom fields when post is published?
- Inserting a class on before_widget if checkbox is checked
- If user has clicked link add class and store using PHP/WordPress
- What is the correct way to search 3 custom fields only in WordPress?
- wp_get_nav_menu_items() with ACF
- How do I get the value of a current user’s custom field?
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- get_template_part() not working with Advanced Custom Fields plugin
- List all ACF field values across every post on one page
- sessionStorage saves input value in browser but it is not loaded in the form field
- Use PHP to inject HTML into before page renders?
- WooCommerce Custom Tab with ACF Repeater Field
- How to make a parent page for author.php?
- html to posts, jpg to featured image, zip file contains jpg and html
- Custom fields changes the formatting of metabox input
- How to only fetch certain Tag ID’s
- Where to find the html for WordPress site? [closed]
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Pagination for div’s
- How Can I Center the Logo in the Navigation Menu? [closed]
- How can I put a custom field as the link of a button shortcode?
- I want Page titles and excerpts to show up on home.php in certain order
- Advanced custom fields Repeater conditional statement not working [closed]
- HTML in PHP problem [closed]
- Grabbing value of input field inside of array
- How can I get values from a custom post type depending on where I click on my SVG map?
- How can I change the location where the custom field is displayed in the Quick Edit tab in WordPress