Title: &#8220;thememod-background.php&#8221;: modify $background_image variable
Last modified: September 23, 2023

---

# “thememod-background.php”: modify $background_image variable

 *  [udoadm](https://wordpress.org/support/users/udoadm/)
 * (@udoadm)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/thememod-background-php-modify-background_image-variable/)
 * Hi, a friend asked for help with his site.
   He has one „http:“ string content,
   and for that Firefox labels the site as partitial unsecure.
 * The <head> html code contains the „http:“ string within this make css inline 
   style (**site-header-main**):
   _<!– Begin Make Inline CSS –><style type=“text/
   css„> button,.ttfmake-button,input[type=“button“],input[type=“reset“],input[type
   =“submit“],.site-main .gform\_wrapper .gform\_footer input.button{font-size…**
   site-header-main**{background-color:rgba(71, 86, 130, 1);background-image:url(**
   http:**//www.xxx.main-1.jpg);background-repeat:no-repeat;background-position:
   center;background-attachment:scroll;background-size:cover;}
 * So I wanted to change this to „https:“. Sounds easy 🙂
   It looks like, function“
   wp-content/themes/make/inc/style/definitions/thememod-background.php:” generates
   this URL at:
 *     ```wp-block-code
           $this->css()->add( array(
               'selectors'    => $selectors,
               'declarations' => array(
                   'background-image'      => 'url(' . addcslashes( $background_image, '"' ) . ')',
                   'background-repeat'     => $this->thememod()->get_value( $region . '-background-repeat', 'style' ),
                   'background-position'   => str_replace( '-', ' ', $this->thememod()->get_value( $region . '-background-position', 
       ```
   
 * I like to ask for some input, how this `**$background_image**` is build, and 
   how I can change the “http:” part to “https:”. 
   Is it defined as a “individual
   rule”? I can`t find one.
 * Thanks a lot
    -  This topic was modified 2 years, 8 months ago by [udoadm](https://wordpress.org/support/users/udoadm/).
    -  This topic was modified 2 years, 8 months ago by [udoadm](https://wordpress.org/support/users/udoadm/).

The topic ‘“thememod-background.php”: modify $background_image variable’ is closed
to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/make/1.10.9/screenshot.jpg)
 * Make
 * [Support Threads](https://wordpress.org/support/theme/make/)
 * [Active Topics](https://wordpress.org/support/theme/make/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/make/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/make/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [udoadm](https://wordpress.org/support/users/udoadm/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/thememod-background-php-modify-background_image-variable/)
 * Status: not resolved