Ads is running above header while using Rankmatt

#70648
  • Resolved Sanjay Bishnoi
    Rank Math free

    Hi Team,

    I am getting some issues while using Rankmath and the issue is that Ads template running above the header which should be run on below header. If you can resolve this issue i will use this plugin. i just remove this due to this issue only.

    While using Yoast SEO, Ads running below header and between post as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Could you please share with us a sample URL.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    you can login and check. right now i enabled the Yoast SEO and Ads are perfectly fine with this. you can disable it and enable the RankMath SEO and see the Ads result.

    I am using Media.net plugin to push the ads

    Hello,

    The Media.net plugin is conflicting with the Rank Math’s Schema functionality. The plugin is using loop_start hook to insert Ads and in Rank Math, we are using while loop to show the posts data in the schema data on the Homepage.

    You will have to contact the plugin author and ask them to use the loop_post hook after wp_head.

    
    add_action( 'wp_head', function() {
        add_action( 'loop_start', function( $query ) {
           // Ad code goes here...
        });
    }, 9999);
    

    This issue will occur in any plugin which uses the WordPress loop to show the post data.

    For now, I have disabled the Rank Math’s Schema module from Dashboard >> Rank Math >> Modules settings. The Ads on your pages are now appearing in the correct places.

    Please enable this module again, when the Media.net team fix the loop_start issue.

    I hope that helps.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘Ads is running above header while using Rankmatt’ is closed to new replies.