Background image style attribute?

The X-Theme Background is conflicting with something I am trying to do. I am not sure what element/style I am looking for. I’ll copy the info from their FAQ page for more info.

It is a common issue that the theme is configured in a way that it either covers or overrides the background ads or prevents them from being clicked. In all cases, you or your theme developer should still be able to see that the body element has a background-image style attribute.

You or your theme developer can either find the element in the theme and adjust it so that it doesn’t cover the background anymore, or you can move the background to another element using the code below in the functions.php file of your theme.

 add_filter( 'advanced-ads-pro-background-selector', 'my_custom_background_selector' );
 function my_custom_background_selector(){
     return '.main-container';

Hey Eric,

I’m sorry but that doesn’t give us enough context for us to say if our background feature is the cause. With that said, would you mind detailing how your script or plugin works? Please also first test the plugin in the default WordPress theme to see if it works. Also give us the URL of the page having this issue, your WordPress Login URL, Username and Password.

Thanks.

I’ll add all the info in a secure note in a minute.

Hi Eric,

Which page it is working? I don’t see it on my end Try this selector: x-root. That is on top of the body.

add_filter( 'advanced-ads-pro-background-selector', 'my_custom_background_selector' );
function my_custom_background_selector(){
    return '.x-root';
}

Though the implementation of this plugin is outside the scope of our support, based on the structure, that selectoe should work as intended and it should be clickable.

That worked, thanks!

You’re welcome, Eric.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.