Replies: 3 comments 1 reply
-
wp-content/themes/bootscore/inc/enqueue.php Line 32: wp_enqueue_style('main', get_template_directory_uri() . '/assets/css/main.css?ver=1.2', array(), $modificated_bootscoreCss); Styles from main.css or style.css are connected via add_editor_style. |
Beta Was this translation helpful? Give feedback.
-
Your path to the image is wrong. Use relative URL: background-image: url('../img/bgnew.jpg'); |
Beta Was this translation helpful? Give feedback.
-
WordPress 6.7.2, PHP 8.2. Advanced Editor Tools As a temporary solution, I added the following code to the functions.php of the child theme (After these actions, everything is working.): /**
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I found an issue. I am using the child theme "bootscore-child" and added a background image in the _bootscore-custom.scss file:
body {
background-image: url('/wp-content/themes/bootscore-child/assets/img/bgnew.jpg');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
These styles are not loading in the WordPress editor. Instead, the generated main.css is being loaded.
Beta Was this translation helpful? Give feedback.
All reactions