Adblocker blocked due to div class name
-
Adblock Plus blocks the insertAdAfterParagraph due to the div class name containing the term “ads”
This can be resolved by changing
if ( $paragraph_id == $index + 1 ) { $paragraphs[$index] .= '<div class="' . $this->plugin->name . '"' . ( isset( $this->settings['css'] ) ? '' : ' style="clear:both;float:left;width:100%;margin:0 0 20px 0;"' ) . '>' . $insertion . '</div>'; }
to
if ( $paragraph_id == $index + 1 ) { $paragraphs[$index] .= '<div class="insert-into-post"' . ( isset( $this->settings['css'] ) ? '' : ' style="clear:both;float:left;width:100%;margin:0 0 20px 0;"' ) . '>' . $insertion . '</div>'; }
I’m not sure how to contribute to plugins so apologies in advance if this is the wrong way.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adblocker blocked due to div class name’ is closed to new replies.