“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:$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
- The topic ‘“thememod-background.php”: modify $background_image variable’ is closed to new replies.