Before you ask please READ THIS

Problem with css or something

in PhotoProof Posts: 115
In one company I was showing my website and I noticed a weird problem. In same configuration desktops AIO Bang & Olufsen Eliteone (all are same) see contact page like this in attachment, but in some same AIO B&O Eliteone is contact page normal as on my home desktop. I test when NOT logged in and in my home desktop is same problem, but when I'm logged in contact page is normal as in latest attachment. Any idea how resolve that?

Snimka zaslona (6).png
1920 x 1080 - 105K
Snimka zaslona (7).png
1920 x 1080 - 105K
Snimka zaslona (34).png
1920 x 1080 - 63K

Comments

  • AirAir
    Posts: 10,970
    Hey:-)

    I can see that you have some JavaScript error on the contact page. It is probably the reason why there are layout issues.

    You will have to check which plugin is causing this.
    Try using private mode for faster debugging, while you switch off plugins in normal mode of the browser :-)

    With kind regards.
  • edited May 2021 Posts: 115
    Thanks

    I found problem in child theme in functions.php. After disable this code work fine

    // Defer javascript
    function defer_parsing_of_js( $url ) {
    if ( is_user_logged_in() ) return $url; //don't break WP Admin
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.min.js' ) ) return $url;
    return str_replace( 'src', 'defer="defer" src', $url );
    }
    add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 );
    Post edited by robi052 on
  • AirAir
    Posts: 10,970
    Hey :-)

    It is not my code for sure :-)

    Glad that you have found a solution.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion