Support » Plugin: Custom Background Extended » Change plugin to target another element

  • Hi

    I wanted to target a div instead of <body> with the background images. I changed line 329 in class-custom-backgrounds-filter.php from

    echo "\n" . '<style type="text/css" id="custom-background-css">body.custom-background{ ' . trim( $style ) . ' }</style>' . "\n";

    to

    echo "\n" . '<style type="text/css" id="custom-background-css">div#sitecontainer.custom-background{ ' . trim( $style ) . ' }</style>' . "\n";

    but the css is still being applied to the <body>

    Any thoughts on how to make it work?
    Thanks!

    https://wordpress.org/plugins/custom-background-extended/

  • The topic ‘Change plugin to target another element’ is closed to new replies.