Conversation
supportI was wondering if there was a way I could inadvertently place a tag, or a space, hit a wrong option that would somehow cause all the leaderboard ads not to show. I woke up this morning to first only the front page, and now all the site pages are not showing the leaderboard ad, but they are being shown in other websites using the same code. https://passportmagazine.com/wp-content/uploads/2025/09/leaderboard-missing-scaled.jpg This topic was modified 8 months, 3 weeks ago by sachristan . This topic was modified 8 months, 3 weeks ago by sachristan . The page I need help with: [ log in to see the link]
Hello, please note that the plugin does not display anything. It only inserts ad codes (blocks). I can see all the blocks inserted as configured – no block is configured to be inserted on homepage: https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/
Thank you for replying. We’ve had that block with an ad for years, it just stop displaying this morning. The block is configured. Can you point me in the right direction to fix this? I tried to make a different block but it still didn’t’ display anything. This reply was modified 8 months, 3 weeks ago by sachristan . This reply was modified 8 months, 3 weeks ago by sachristan .
Block 1 is the sitewide leaderboard, and the rest are leaderboard banners that only appear on certain pages or categories. They have been working fine for years up to this morning. But that you say “it’s not configured” is a red flag. Is there a setting where I could have turned it off? We are using the HTML element tool finder to target the element to replace the element. Its worked great for years. Any advice would be appreciated. I have gone over every setting it seems, other blocks for conflicts but I don’t see any.
If you didn’t change plugin settings or page elements then the blocks will be inserted as configured. However, you have way to long and too complex element selector for block 1 (see screenshot above). Any slight change in page elements (e.g. theme update or new content) will prevent insertion. Use the shortest selector possible (that will work on all wanted pages): https://adinserter.pro/faq/how-to-insert-ads-at-specific-position But if I check current settings for block 1 I see invalid element selector ( penci_nav_col penci_nav_right penci_nav_flexrow penci_nav_alignright ). Configure insertion as instructed. BTW I see no easy way to insert anything there as there is no unique HTML element to target. I would suggest contacting theme support for possible options to insert ads there.
However, you have way to long and too complex element selector for block 1″ That is the HTML element line that is extracted using the HTML element tool in your plugin that’s what it comes up with. That’s what it came up with years ago and worked but we believe that it has changed and it doesn’t seem to be able to grab it the right target. The different variations are out attempts to find an ID by either placing an element with a certain ID to replace element, but nothing has worked so far. We believe in your plug-in so we are big fans of it. If you could point us in the right direction that would be greatly appreciated. rob This reply was modified 8 months, 2 weeks ago by sachristan .
What I wrote here, nothing much to add: https://wordpress.org/support/topic/leaderboard-ads-not-showing/#post-18635317
we have reached out to theme support, but it’s like pulling teeth trying to get any help from developers at times. So so how is the HTML element focus tool used in adinserter, if it doesn’t choose the right line? we’ve used the inspector tool to get specific HTML element to use but none have worked. Rob
The tool in the plugin tries to write down the selector (path) for the selected element so you can extract the essential part. However, it is the Javascript engine in the browser that inserts the code based on the configured selector. Therefore, the insertion is not done by Ad Inserter, but by the browser. There were no changes in this regard in the plugin for years.. In most cases you should not use this complete path – you need to use the shortest selector that selects the wanted element. Otherwise, any slightest change in the page layout (or even loading it on a different screen) will break the insertion. If it does not work, then the browser does not see that element on the loaded page (assuming the selector is valid). The best way to insert there is to have support form the theme – even if you will be able to insert some code there, the code may break the page layout so additional tweaks might be needed. Additional issue with your theme is that I see no easy way to create a universal working selector for insertion in the header next to the logo. There are only various classes that are used all over the page. In your case if the theme support does not provide the solution I would suggest creating a child theme based on your theme and adding a WP action hook in the header. Then you can configure Ad Inserter with this hook and use this insertion position: https://adinserter.pro/documentation/plugin-settings#custom-hooks
we received this reply from the developer of the theme: “I have a trick for you in this case. Please edit the Penci Header Builder → insert an HTML element, then add this code:<div style=”width:100%; max-width:728px; height:90px;”></div>This code contains a blank space <div> with defined sizing, allowing the Ads Inserter plugin to detect the area where the ad should be displayed.Regards, PenciDesign.” 🤞🏽 I will try this soon and hopefully this will do it. thank you for your support. rob
Thank you for your help. We used the code they sent and added an ID “leaderboard-ad” to narrow it down. The ads did return, but it the sitewide leaderboard ad will not show on the front page but will shows up in other predetermined areas. Is there something else we are missing? I will look into the hook method. And I sent your observations to the theme developer, they were exactly what we were telling them. No easy way to setup a leaderboard. Rob
It seems WP reports some tags for homepage. Configure another block for homepage without listing any categories or tags.
it seems that I created a tag “go providence” I wanted to show only Providence banners on these posts with this tag. I used this tag to exclude the lexus leaderboard ad sitewide to not show in Providence posts. then in the Providence leaderboard block, I included “go providence” to Show the Providence banner. Some how this stops the home page banner. So I had to use POST ID to exclude the Providence posts and it works. From Google Gemini: How a WordPress tag can interfere with a plugin like Ad Inserter. The plugin’s core function is to act on these very pieces of data (like tags, categories, and post IDs) to manage ad placement. When you create a new tag that happens to match a pre-existing rule, the plugin’s logic takes effect, leading to the behavior you observed. I had recreated a new block earlier too, but I still used the same tags. So this time I created one how you said. I placed one tag after another checking the homepage and when I placed the go providence, it stopped the home page ad. Rob
Hello, please note that the plugin does not display anything. It only inserts ad codes (blocks). I can see all the blocks inserted as configured – no block is configured to be inserted on homepage: https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/
Thank you for replying. We’ve had that block with an ad for years, it just stop displaying this morning. The block is configured. Can you point me in the right direction to fix this? I tried to make a different block but it still didn’t’ display anything. This reply was modified 8 months, 3 weeks ago by sachristan . This reply was modified 8 months, 3 weeks ago by sachristan .
Block 1 is the sitewide leaderboard, and the rest are leaderboard banners that only appear on certain pages or categories. They have been working fine for years up to this morning. But that you say “it’s not configured” is a red flag. Is there a setting where I could have turned it off? We are using the HTML element tool finder to target the element to replace the element. Its worked great for years. Any advice would be appreciated. I have gone over every setting it seems, other blocks for conflicts but I don’t see any.
If you didn’t change plugin settings or page elements then the blocks will be inserted as configured. However, you have way to long and too complex element selector for block 1 (see screenshot above). Any slight change in page elements (e.g. theme update or new content) will prevent insertion. Use the shortest selector possible (that will work on all wanted pages): https://adinserter.pro/faq/how-to-insert-ads-at-specific-position But if I check current settings for block 1 I see invalid element selector ( penci_nav_col penci_nav_right penci_nav_flexrow penci_nav_alignright ). Configure insertion as instructed. BTW I see no easy way to insert anything there as there is no unique HTML element to target. I would suggest contacting theme support for possible options to insert ads there.
However, you have way to long and too complex element selector for block 1″ That is the HTML element line that is extracted using the HTML element tool in your plugin that’s what it comes up with. That’s what it came up with years ago and worked but we believe that it has changed and it doesn’t seem to be able to grab it the right target. The different variations are out attempts to find an ID by either placing an element with a certain ID to replace element, but nothing has worked so far. We believe in your plug-in so we are big fans of it. If you could point us in the right direction that would be greatly appreciated. rob This reply was modified 8 months, 2 weeks ago by sachristan .
What I wrote here, nothing much to add: https://wordpress.org/support/topic/leaderboard-ads-not-showing/#post-18635317
we have reached out to theme support, but it’s like pulling teeth trying to get any help from developers at times. So so how is the HTML element focus tool used in adinserter, if it doesn’t choose the right line? we’ve used the inspector tool to get specific HTML element to use but none have worked. Rob
The tool in the plugin tries to write down the selector (path) for the selected element so you can extract the essential part. However, it is the Javascript engine in the browser that inserts the code based on the configured selector. Therefore, the insertion is not done by Ad Inserter, but by the browser. There were no changes in this regard in the plugin for years.. In most cases you should not use this complete path – you need to use the shortest selector that selects the wanted element. Otherwise, any slightest change in the page layout (or even loading it on a different screen) will break the insertion. If it does not work, then the browser does not see that element on the loaded page (assuming the selector is valid). The best way to insert there is to have support form the theme – even if you will be able to insert some code there, the code may break the page layout so additional tweaks might be needed. Additional issue with your theme is that I see no easy way to create a universal working selector for insertion in the header next to the logo. There are only various classes that are used all over the page. In your case if the theme support does not provide the solution I would suggest creating a child theme based on your theme and adding a WP action hook in the header. Then you can configure Ad Inserter with this hook and use this insertion position: https://adinserter.pro/documentation/plugin-settings#custom-hooks
we received this reply from the developer of the theme: “I have a trick for you in this case. Please edit the Penci Header Builder → insert an HTML element, then add this code:<div style=”width:100%; max-width:728px; height:90px;”></div>This code contains a blank space <div> with defined sizing, allowing the Ads Inserter plugin to detect the area where the ad should be displayed.Regards, PenciDesign.” 🤞🏽 I will try this soon and hopefully this will do it. thank you for your support. rob
Thank you for your help. We used the code they sent and added an ID “leaderboard-ad” to narrow it down. The ads did return, but it the sitewide leaderboard ad will not show on the front page but will shows up in other predetermined areas. Is there something else we are missing? I will look into the hook method. And I sent your observations to the theme developer, they were exactly what we were telling them. No easy way to setup a leaderboard. Rob
It seems WP reports some tags for homepage. Configure another block for homepage without listing any categories or tags.
it seems that I created a tag “go providence” I wanted to show only Providence banners on these posts with this tag. I used this tag to exclude the lexus leaderboard ad sitewide to not show in Providence posts. then in the Providence leaderboard block, I included “go providence” to Show the Providence banner. Some how this stops the home page banner. So I had to use POST ID to exclude the Providence posts and it works. From Google Gemini: How a WordPress tag can interfere with a plugin like Ad Inserter. The plugin’s core function is to act on these very pieces of data (like tags, categories, and post IDs) to manage ad placement. When you create a new tag that happens to match a pre-existing rule, the plugin’s logic takes effect, leading to the behavior you observed. I had recreated a new block earlier too, but I still used the same tags. So this time I created one how you said. I placed one tag after another checking the homepage and when I placed the go providence, it stopped the home page ad. Rob