Resolved

Pages not resizing for Mobile

Ultra Theme started by brucewon Aug 27, 2017 4 replies
brucewon Aug 27, 2017 · 10:07 pm #7632

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

Andrew Misplon Puro Aug 28, 2017 · 4:18 am #7633

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.

Andrew Misplon Puro Aug 28, 2017 · 9:44 am #7634

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 🙂

brucewon Aug 28, 2017 · 1:56 pm #7635

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

Andrew Misplon Puro Aug 28, 2017 · 4:42 pm #7636

Super 🙂 Glad to hear that did the trick.

5 posts