• Hello,

    i have this website https://www.mb-advertise.gr and the problem is that when the AdBlock add on is enable on Chrome the website doesn’t load properly (only typography without css)

    I have already disable one by one all thy plugins i switch theme but still the same. Any suggestions ?

    Best Regards,
    Panos

Viewing 15 replies - 1 through 15 (of 22 total)
  • jack randall

    (@theotherlebowski)

    how about telling the adblock browser not to run on pages at your domain? if the adblocker is causing the problem then it’s probably the solution too…

    Thread Starter Panos_M

    (@panos_m)

    Thank you for your reply.

    Sure this is an option and as i tested it works. But what about the other users with AdBlock enable? How to recognize and inform them to turn of the AdBlock?

    The solution i am looking for is why the AdBlock blocking my website in the first place. I want to working with the AdBlock enable as well as the other websites.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Consider using the debugging modes in Adblock, https://support.getadblock.com/discussions/problems/69126-debug-mode

    Thread Starter Panos_M

    (@panos_m)

    Thank you Andrew. I try it but i couldn’t found the option Show the resource list.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You may need to use Adblock’s support; https://support.getadblock.com/

    jack randall

    (@theotherlebowski)

    for some reason you appear to have some style information in the head link code for the stylesheet location. this could be your problem rather than the adblocker…

    <link rel="stylesheet" type="text/css" media="all" href="https://www.mb-advertise.gr/wp-content/themes/whiteboard/style.css" width="0" height="0" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: -1px -1px;">

    Thread Starter Panos_M

    (@panos_m)

    Hello Jack thank you for reply.

    Well this seems to be the problem…I am trying to find out where it could be the code that you have just written but i can’t.

    The code in the header.php for the style.css is:

    <link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />

    jack randall

    (@theotherlebowski)

    try using <?php get_stylesheet_uri(); ?> instead of bloginfo()

    Thread Starter Panos_M

    (@panos_m)

    I change it as you suggest jack but still the same.

    jack randall

    (@theotherlebowski)

    now you’ve changed the method of calling the stylesheet file try clearing the browser cache again…

    jack randall

    (@theotherlebowski)

    not sure what you’ve done but now there’s no stylesheet being linked to in the code. have you got this in the header?

    `<link rel=”stylesheet” type=”text/css” media=”all” href=”<?php get_stylesheet_uri(); ?>” />

    jack randall

    (@theotherlebowski)

    also, the correct way to load styles and scripts into wordpress is via the register and enqueue methods in the theme’s functions.php rather than adding them directly into the header.php file…

    Thread Starter Panos_M

    (@panos_m)

    Yes i have put it in the header

    Thread Starter Panos_M

    (@panos_m)

    I really cant find out where is the issue…

    jack randall

    (@theotherlebowski)

    ok, i’ve had a look at the code in your site and things are being loaded all over the place rather than where they should be.

    you’ve got a whole load of the stylesheet and javascript links loading the body tag of your site.

    reset the site to the default theme and disable all of your plugins and see if things load correctly first of all. i know you’ve tried this before but if we troubleshoot from as close to a default set up as possible that will make things easier…

    if the default theme loads badly with no plugins making changes to it then the problem is likely to be a bit deeper in wordpress. post back when you’ve made the changes

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘AdBlock chrome add-on blocking my site’ is closed to new replies.