header_image(); returns local environment header image url in remote environment
-
Hi. I’ve got a child theme front-page.php that includes the following:
<div class="header-image" style="background-image:url(<?php header_image(); ?>);">
The image loads fine in my local environment, but does not load in the remote dev server. Instead, the remote server returns the absolute path to the local image file, like so:
<div class="header-image" style="background-image:url(https://sheltermedicine-local.kbox.site/wp-content/uploads/2017/10/sheltermed-banner-v2.jpg);">
Everything else appears to be working fine. Why might this happen?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘header_image(); returns local environment header image url in remote environment’ is closed to new replies.