Default selector in Ads-Mediabox allows you to catch images in almost 90% of WordPress themes.
Only some specific themes may require other selectors. Here’s the list of composite selectors for popular themes:
Astra
0 1 2 |
.ast-container a[href$=".jpg"], .ast-container a[href$=".png"], .ast-container a[href$=".jpeg"] |
Avada
0 1 2 |
.fusion-row a[href$=".jpg"], .fusion-row a[href$=".png"], .fusion-row a[href$=".jpeg"] |
or
0 1 2 |
.post-content a[href$=".jpg"], .post-content a[href$=".png"], .post-content a[href$=".jpeg"] |
BeTheme
0 1 2 |
.sections_group a[href$=".jpg"], .sections_group a[href$=".png"], .sections_group a[href$=".jpeg"] |
ColorMag
0 1 2 |
.clearfix a[href$=".jpg"], .clearfix a[href$=".png"], .clearfix a[href$=".jpeg"] |
Enfold
0 1 2 |
.container a[href$=".jpg"], .container a[href$=".png"], .container a[href$=".jpeg"] |
Hestia
0 1 2 |
.row a[href$=".jpg"], .row a[href$=".png"], .row a[href$=".jpeg"] |
Kadence
0 1 2 |
.entry-content-wrap a[href$=".jpg"], .entry-content-wrap a[href$=".png"], .entry-content-wrap a[href$=".jpeg"] |
Newsup
0 1 2 |
.row a[href$=".jpg"], .row a[href$=".png"], .row a[href$=".jpeg"] |
News Way
0 1 2 |
.container-fluid a[href$=".jpg"], .container-fluid a[href$=".png"], .container-fluid a[href$=".jpeg"] |
Spintech
0 1 2 |
.col a[href$=".jpg"], .col a[href$=".png"], .col a[href$=".jpeg"] |
The Newspaper
0 1 2 |
.middle_inner a[href$=".jpg"], .middle_inner a[href$=".png"], .middle_inner a[href$=".jpeg"] |
To disable built-in lightbox (iLightBox) – insert this code into functions.php child themes.
0 1 2 3 4 5 6 7 |
function remove_scripts(){ wp_dequeue_script('iLightBox' ); wp_deregister_script('iLightBox' ); } add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 ); |