Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ads]

Ads are media displayed on a site to alert visitors of products or services that may be of interest to them.

0
votes
0answers
15 views

Display custom preroll and postroll ads on video

Situation: The WP site will have illustrations that will play embedded videos on-click. Challenge: I need to run clickable preroll and postroll ads (images) to the videos. These ads should run ...
0
votes
0answers
14 views

How to lock a page wordpress with ads?

i would like to know if there is a method to lock a wordpress page with ads. I explain better, i would like to lock some content but at the same time to let my users read my content only after they ...
0
votes
0answers
159 views

Avoid enormous network payloads

Running a WP site, so asking here. Google speed test shows "Avoid enormous network payloads - Total size was 8,265 KB" (static.doubleclick.net) - 514.2 KB (static.doubleclick.net) - 514.2 KB And ...
0
votes
0answers
15 views

How to add vertical ad banner into Twenty Fifteen theme's right and left float?

Tried to put left or right float banner into twenty fifteen theme but this code didn't work: It only shows at left corner and broken the desktop and mobile version of site. @media only screen and (...
0
votes
1answer
28 views

Advertisement in Loop Posts wordpress

I'm new here I want some help from you in terms of coding in wordpress. The point is that I want to make advertising between items as shown below: <div class="row top-articles"> ...
0
votes
0answers
14 views

Insert Ad Code Before Headings

I want to insert Ad code right above the headings in every post via functions.php. I found several articles on placing ads after paragraph but nothing found for Heading tags. Can anyone tell me how ...
0
votes
1answer
52 views

Insert ads below the title

I'm creating a plugin for insert ads. I want to insert ad below the title. I'm using the theme MH Magazine Lite Im doing my plugin like this: function diww_pre_content($content) { $pre_content =...
0
votes
0answers
86 views

Unwanted code in my function.php

From few days I am seeing ads running on my website without my permission, after a deep investigation I found that there are some unwanted codes existing on the top, in the function.php page. I ...
-3
votes
1answer
69 views

How to hide a script ( an ad) from a specific post? [closed]

I would like to hide a script, an ad actually from a specific post. The script is placed on header. I am a rookie here so please help!
4
votes
2answers
135 views

Calling shortcode in wp_localize_script strips result

I am working on adding some functionality on a Wordpress plugin which after a certain click needs to call on some shortcode through ajax. What I first attempted was to call the shortcode inside of ...
1
vote
1answer
45 views

Add Adsense to a website but the server responds with error 510 [closed]

I'm trying to add Ads to my website. The website is made with Wordpress. I'm going to Options < Adsense < Ad Manager Then I click manage Ads. After that, google starts to analyze my page. ...
1
vote
1answer
139 views

Self-serve ad system like Reddit's for Wordpress? [closed]

I'm currently building a Wordpress site and I want to implement a sort of "self-serve" ad system into my site similar to the system Reddit is using. Is there any sort of "self-serve" ad system or ...
1
vote
1answer
425 views

Need help targeting a custom post type with conditional tags

I found some code online to create content blocks on my WordPress blog. I use a content block at the bottom of the sidebar of my page for a shopping widget. Here's the relevant code from functions.php:...
0
votes
0answers
62 views

Ads below footer

A client of mine has ads on his website, which are managed by a CPT. The ads can be pulled in via a widget, hardcoded query and a shortcode. I have an issue that isn't consistent that I'm trying to ...
-1
votes
1answer
451 views

Showing ads after posts in home page

I am using this code for showing ads after one post in the home page. It's working fine. But I want to show an ad after one post and another one ads after 5 post. What will the loop be. Any ...
0
votes
1answer
12 views

How can I modify a post depending on the source of the traffic?

I have a wordpress site. If I include some javascript on a post, I show ads on the post. I want to only show that javascript when people come to my site from google search (as opposed to from twitter ...
1
vote
2answers
1k views

How do I show google ads between post content?

I want to show ads by Google between text content, like show 3 ads one after 1st para second after 3rd para and one at end of last para. I know i have to modify in single.php but being novice in php ...
0
votes
1answer
105 views

Assign specific ads to specific categories/posts

I've been playing around with solution to be able to show a different header banner on different categories, and hopefully later on, be able to extend that query to the post level. I've found a few ...
0
votes
1answer
272 views

Can I use widgets & shortcode if I need to return an array?

I'm trying to achieve the following functionality. I have several widget 'areas' that I can place widgets into. I programmed these widget areas into the theme of my site and I can turn them on and ...
0
votes
1answer
139 views

Temporary download page or restrict static download page based on how the user got to the page?

I basically want to know it if is possible to create a system where either when a user wants to download something it creates a temporary download page (not a download link, this I want static - I ...
0
votes
2answers
516 views

Insert Ads “into” comments section in Genesis Themework

I am trying to insert two 125x125 ads into the comment section of a Genesis Child Theme - The screen above shows where I would want it but I am at a total loss on where to insert this overall. I ...
3
votes
1answer
2k views

Track advertisement earnings per blog post and page in wordpress?

I have this unique situation (though i doubt it no one has ever asked this before!). I want to track advertisement earnings from a service like Adsense per blog post and per page or per author . Why ...
0
votes
1answer
117 views

Want to include ad code after related post

I want to include ads HTML code after related post plugin. My site my single.php code below: <?php if ( get_option('...
1
vote
1answer
60 views

Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes

I remember to have read about this, but I can't find it anymore. Basically we are not allowed to advertise without the users consent inside plugin, its a good rule I think. I just want to see the ...
1
vote
1answer
326 views

Plugin for users to create their own ads like Google Adsence

Does any one know of a plugin to allow users to create ads on a format like Google Adsense (title, some text and a link). ? Something that may require some customization may do the job. Thanks in ...
1
vote
1answer
110 views

Is there any way I can put google ads on wordpress.com? [closed]

I know they do not allow plugins on wordpress.com and hence no ads. I know I can put adds on own wordpress site hosted on my own domain. But I really like wordpress.com and the ease you can create ...
0
votes
2answers
1k views

Scrolling Ads? Live scrolling widget, not random on refresh

I have a current job where my client has requested to have their "sponsors" rotate in the sidebar widget. Right now I have a random ad widget which rotates them randomly... I was wanting to know if ...
1
vote
1answer
200 views

Any recommendation on how to manage ads?

I am in the process of creating a network of >40 sites with wordpress, and I am trying to put together the base that each site will use, for example all the sites will use google analytics so I will ...
3
votes
2answers
100 views

Is there a simple way to only show ads on a WordPress page once it becomes popular?

I am looking for a simple way to minimize ads on a website I'm developing in WordPress by only showing ads (Google Adsense, to be precise) on the site upon a large influx of traffic. A large influx ...
1
vote
2answers
257 views

Inserting ads into wordpress default rss feeds

i'm hoping i'd find some help in regards to inserting ads into wordpress default rss feeds (i do not use feedburner) <?php function insertAds($content) { $content = $content.'<hr /><a ...
0
votes
2answers
100 views

Highlight Ads for few seconds

I got a list of ads in my WordPress website on a sidebar. Is it possible to highlight an ad, that is, make it bigger in size for few seconds? I want to make each ad highlighted one after the other. ...
0
votes
1answer
493 views

Problem with WP_Query loop and search term

I have a custom query to display random posts in my sidebar like this: $newQuery = array( 'post__in' => get_option('sticky_posts'), 'post_type' => 'ad_listing', 'posts_per_page' ...
2
votes
3answers
1k views

Specific and Different Ads for each Post?

I am working with a magazine client who sells adversiting offline in their magazine and now has a WordPress online magazine. Each of their stories is broken into different posts, and they are using ...
2
votes
3answers
3k views

Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?

Is anyone aware of some functionality to share the revenue among the users of a Multisite? A multisite lets other people create and mainatain their own blogs. The Multisite owner should able to ...
2
votes
2answers
136 views

Offering Ads Dependent on Visitor Type?

I wish to be able to give different ads to visitors of different "types". For example: People from country X will get one ad, while people from country Y will get no ads. First time visitors will ...