Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi Nancy,

    thanks for reaching out.

    you set up placements that depend on a headline within the posts. It works for headlines of the 2nd, 3rd, and 4th degree (h2, h3, h4). The posts without ads don’t have any of these headline types, but instead, use a first level headline (h1). That one should only be used once and for the main headline, but not within post content for SEO reasons. This is why it is not covered by that condition.

    I fear that you would either need to change those headlines from h1 to h2 or h3 like in the posts where the ad injection works or use a different injection rule, e.g., ad after a specific paragraph.

    I hope this makes sense.

    Get well soon!

    Thomas

    Thread Starter Nancy Rector

    (@nanrector)

    First, I can’t thank you enough for responding so quickly. I now realized what happened. We changed themes and domains in January and my web designer resized the headline attributes.

    All my old posts before the change used h1 within the post as I didn’t know better at the time. Because sizes were changed by my designer I switched to H2 after the theme/domain change. I though I’d been using your ad program all this time but I may have switched from another. Brains a bit fuzzy.

    Is there no way for me to set a condition where it will place the adds before h1s? Only because 99 percent of my posts utilized that. I can change the ones this year easily.

    If not, I’ll just find another condition that works. I really want them before the headers but, again, my lack of knowledge on that sort of messed me up. ü

    • This reply was modified 6 years, 3 months ago by Nancy Rector.
    Plugin Author Thomas Maier

    (@webzunft)

    Hi Nancy,

    there could be a possibility if you feel comfortable adding some custom code to your site. I can provide the code, but you would need to add it on your own.

    Thomas

    Thread Starter Nancy Rector

    (@nanrector)

    I can do that Thomas.

    Plugin Author Thomas Maier

    (@webzunft)

    No problem.

    This is the code. You can add it to the functions.php file of your theme, but it will get lost if you update the theme. Your webmaster should find a better place when he is available.

    Almost forgot to mention what it does: it will add “h1” to the headline condition.

    
    add_filter( 'advanced-ads-headlines-for-ad-injection', 'advads_add_h1_to_content_injection' );
    function advads_add_h1_to_content_injection( $headlines ){
    array_unshift( $headlines, 'h1' );
    return $headlines;
    }
    

    I tested it locally, but would still advice to test carefully and, in the worse case, have FTP access to remove the code if it causes problems.

    Thomas

    Thread Starter Nancy Rector

    (@nanrector)

    You have been beyond kind Thomas. Thank you SO much.

    Plugin Author Thomas Maier

    (@webzunft)

    You are most welcome.

    If you have a minute, I would really appreciate a positive review here.

    Thanks,
    Thomas

    Thread Starter Nancy Rector

    (@nanrector)

    Absolutely!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Worked fine… now some pages no ads’ is closed to new replies.