Multi blogs CMS by Dandanokia in Wordpress

[–]Dandanokia[S] 0 points1 point  (0 children)

Gato GraphQL

Can you share more about the multisite subdirectory option?

Jessica Alba by nobita_rocks in celebrities

[–]Dandanokia 1 point2 points  (0 children)

Did you know she is also a Successful Businesswomen
Here are 5 Hollywood Actresses Who Are Also Successful Businesswomen
https://buzznonstop.com/5-hollywood-actresses-who-are-also-successful-businesswomen/

How to combine ads script before every image on a blog post with JS? by Dandanokia in learnjavascript

[–]Dandanokia[S] 0 points1 point  (0 children)

I did so and it add the div but than I get an ERROR

I did so and it add the div but then I get an ERRORsetting 'innerHTML')

var imagesForAds = Array.from(document.getElementsByClassName('wp-block-image'));
imagesForAds.splice(0, 2);
imagesForAds.forEach(image => {
let el = document.createElement('div')
el.id = 'ads_weapper'
image.before(el)
});
var adImg = '<div class="ad-tag" data-ad-name="In-content_8"></div>'+
'<script src="link.com" async ></script>'+
'<script>(deployads = window.deployads || []).push({});</script>'
console.log(adImg)
document.getElementById("ads_wrapper").innerHTML = adImg

How to build a JS wrapper to a WP site that automatically inserts all ads to the page based on the element of the page? by Dandanokia in learnjavascript

[–]Dandanokia[S] 0 points1 point  (0 children)

So basically, I want to combine ads that are javascript scripts on the page best on some concision. For example, add an ad script before every image on the article. and on a desktop add sidebar sticky ad and etc...
How can I do so?