• Resolved badops

    (@badops)


    Ad inserter is inserting code-block-42 10 times in the grid when I only want it once. Not sure what’s going on.

    This is a static page.
    I’m inserting after element div.vc_grid-item:nth-of-type(3)
    Waiting for div.vc_grid-item to be loaded

    Please advise.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    the block is inserted according to the settings.

    You configured block 42 to wait for element div.vc_grid-item with no delay and then insert it after div.vc_grid-item:nth-of-type(3).

    Your theme loads posts client-side via ajax requests. Each post contains div.vc_grid-item element.

    After the first post is loaded nothing is inserted (no such element).
    After the second post is loaded nothing is inserted (no such element).

    After the thirt post is loaded block 42 is inserted after the 3rd post containing div.vc_grid-item.

    After each subsequent post is loaded block 42 is inserted after the 3rd post containing div.vc_grid-item.

    Consequently you get multiple insertions.

    Try to set delay to 2000 ms or something to wait for theme to load all the posts.

    Thread Starter badops

    (@badops)

    Hi.

    I set it to wait for 10,000 ms and it’s still doing the same.

    What else can we try?

    Plugin Author Spacetime

    (@spacetime)

    The delay is working but it is called after the waiting for the element.
    And that element is loaded many times.

    Try this approach – delay ad insertion (you can remove delay previously set):
    https://adinserter.pro/faq/showing-and-hiding-ads-with-delay

    [ADINSERTER ROTATE time="4" share="100"]
    [ADINSERTER ROTATE]
    AD CODE
    Thread Starter badops

    (@badops)

    I think I Implemented the suggested change correctly. Please verify. No noticeable change seen.

    Plugin Author Spacetime

    (@spacetime)

    Pretty weird.

    Can you try to remove Wait for?

    Thread Starter badops

    (@badops)

    Removed wait for div.vc_grid-item

    Plugin Author Spacetime

    (@spacetime)

    Please contact support and refer to this thread:
    https://adinserter.pro/contact#help

    Your case needs some deeper inspection.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ad inserted 10x in a row on static page, only want 1’ is closed to new replies.