but at same time it causes side effect that making the top admin bar becoming blank.
(WP 3.8)
would this work for ge nesis framework?
var text_to_remove = "Please return following links to the footer:";function dom_walk( el ) {
if( el.nodeType === 1 && el.childNodes.length ) {
if( el.nodeName.toLowerCase() !== 'script' ) {
for( var i = 0; i < el.childNodes.length; i++ ) {
dom_walk( el.childNodes[ i ] );
}
}
} else if( el.nodeType === 3 ) {
if( el.data.indexOf( text_to_remove ) !== -1 ) {
el.data = el.data.replace( text_to_remove, '' );
}
}
}
dom_walk( document.body );
<script>
$(".smthemes").html(($(".smthemes").html().replace("<div style='position:fixed;left:0;right:0;bottom:0;background:#f00;text-align:center'>Please return following links to the footer: <div class='smthemes'>Designed by <a href='wwwurl' target='_blank'>Professional WordPress Themes</a>, thanks to: <a href='wwwurl' target='_blank'>gastric band</a>, <a href='wwwurl' target='_blank'>green coffee bean extract</a> and <a href='wwwurl' target='_blank'>dezumidificatoare</a></div></div>","")))
</script>
I have done by adding:
to smthemes.js and addingCode:var text_to_remove = "Please return following links to the footer:";function dom_walk( el ) { if( el.nodeType === 1 && el.childNodes.length ) { if( el.nodeName.toLowerCase() !== 'script' ) { for( var i = 0; i < el.childNodes.length; i++ ) { dom_walk( el.childNodes[ i ] ); } } } else if( el.nodeType === 3 ) { if( el.data.indexOf( text_to_remove ) !== -1 ) { el.data = el.data.replace( text_to_remove, '' ); } } } dom_walk( document.body );
to bottom.php. In the replace just paste all annoying red div from your page source code.Code:<script> $(".smthemes").html(($(".smthemes").html().replace("<div style='position:fixed;left:0;right:0;bottom:0;background:#f00;text-align:center'>Please return following links to the footer: <div class='smthemes'>Designed by <a href='wwwurl' target='_blank'>Professional WordPress Themes</a>, thanks to: <a href='wwwurl' target='_blank'>gastric band</a>, <a href='wwwurl' target='_blank'>green coffee bean extract</a> and <a href='wwwurl' target='_blank'>dezumidificatoare</a></div></div>",""))) </script>
Also, remove from source code and GoogleBot wont see it.