[Resolved] Pages not resizing for Mobile

  • Author
    Posts
  • #7632

    brucewon
    Participant

    When I check my website on a mobile device or select mobile when in custom mode my pages do not resize for mobile. Everything else resizes except for the page. Site I’m working on is http://www.agent1realestate.com

    #7633

    Andrew Misplon
    Keymaster

    Hi Bruce

    Thanks for posting.

    The issue looks to be the print CSS file added by the loan calculator plugin. It targets selectors without prefixing (making rules specific to its own code). It also doesn’t make itself specific to print which it should be doing. I’ll come back to you a little later today with a solution.

    #7634

    Andrew Misplon
    Keymaster

    Thanks for the wait 🙂

    Go to Plugins > Add New, search for and install Code Snippets.
    Go toSnippets > Add New and name the snippet Ultra Loan Calculator.
    In the snippet body, insert the following function to remove the plugin’s flawed print stylesheet.

    function ultra_loan_calculator() {
    	wp_dequeue_style( 'print' );
    }
    add_action( 'wp_print_styles', 'ultra_loan_calculator' );

    Scroll down and enable the option to only run this snippet on the site front end.
    Finally, click Save Changes and Activate. A common error here is users will save the snippet but not activate it. There are two buttons, it is possible to just save the snippet but we want to save and activate it.

    Let me know how that goes. Thanks 🙂

    #7635

    brucewon
    Participant

    Excellent, this has solved the issue. Thank you for the quick response!

    #7636

    Andrew Misplon
    Keymaster

    Super 🙂 Glad to hear that did the trick.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Scroll to top