Google DFP Ads disappear

This topic contains 13 replies, has 3 voices, and was last updated by  Kiran 6 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #409192

    stargeoteam
    Full Member
    Post count: 33

    Hi Stiofan,

    I’ve got an issue 5-6 months ago that has not been resolved yet.
    https://wpgeodirectory.com/support/topic/google-dfp-ads-disappear/

    1. So basically the DFP ads I have setup shows up for at least a second and disappears.
    2. I tried to disable all plugins. Activate Supreme Directory and the DFP ad works and does not appear.
    3. I found out that if I turn on GEODIRECTORY plugin, that is where the bug occurs.

    SAMPLE:
    http://sngdev.org/2014/09/30/traders-drive-for-members/

    4. The AD is located at the right sidebar: below the text “mrec” and above the text “MREC ABOVE”

    (See uploaded attachments )

    5. When Geodirectory plugin is turned on the DFP MREC AD disappears. When GEodirectory plugin is deactivated, DFP MREC AD Appears.

    I can provide credentials needed. Let me know.

    Wordpress 4.9.1
    Geodirectory 1.6.25

    #409242

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Just to clarify, you said”

    2. I tried to disable all plugins. Activate Supreme Directory and the DFP ad works and does not appear.

    Did you mean to say “does not disappear”?

    Please make a private reply with your site login URL and WP Admin credentials so we can take a look.

    #409297

    stargeoteam
    Full Member
    Post count: 33
    This reply has been marked as private.
    #409378

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    You can use the Code Snippets plugin to add a common snippet that will dequeue GeoDirectory Javascript on non-GD pages.

    https://wpgeodirectory.com/docs/common-code-snippets/#remove-gd-scripts
    https://wpgeodirectory.com/docs/useful-plugins/#snippets

    #409456

    stargeoteam
    Full Member
    Post count: 33

    Hi Alex,

    I’m not sure what you mean. I assume you are telling me to DEQUEUE Geodirectory Javascript?

    1. Does it mean if I de-queue GD Javascript it will fix the issue?
    2. FYI the DFP ads also need to show up on GD Pages. The sidebar is universal means it will need to appear across the site.

    However I will try to do and apply the links you provided. I assume if I apply them on my GD Listings, the GD listings will break.

    3. So basically I need to make the DFP work across the site. DFP works but breaks when I activate GEODIRECTORY.

    Thanks,
    Marco

    #409542

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #409852

    stargeoteam
    Full Member
    Post count: 33

    Hi Kiran,

    Thanks for all the help 🙂

    Just want to ask if there are any updates on this? Any leads?

    Thanks,
    Marco

    #409889

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #409918

    Kiran
    Moderator
    Post count: 7069

    Hi Marco,

    The ads becomes invisible when jQuery Autocomplete JavaScript file is loaded. jQuery Autocomplete JavaScript file is loaded via GeoDirectory plugin and that file is in WordPress includes/jquery directory.

    To fix this conflict i have added few lines of code (check function gd_fix_geodir_fix_script_conflict() ) in your child theme functions.php

    Now ads seems working fine.

    Please check and confirm from your side.

    Thanks,
    Kiran

    #409982

    stargeoteam
    Full Member
    Post count: 33

    Hi Kiran,

    I initially checked and YES it is working on my side.

    However, I need to check if this fix applies to my other sites and other pages. Will let you know if the fix is working.

    Thanks,
    Marco

    #409988

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #411865

    stargeoteam
    Full Member
    Post count: 33

    UPDATE:

    I am still working on this and check if fix applies on my other sites.

    Thanks

    #411879

    stargeoteam
    Full Member
    Post count: 33
    This reply has been marked as private.
    #411888

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 14 posts - 1 through 14 (of 14 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket