- This topic has 4 replies, 2 voices, and was last updated 7 years, 2 months ago by Andrew Misplon.
- AuthorPosts
- August 27, 2017 at 10:07 pm #7632
brucewonParticipantWhen 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
August 28, 2017 at 4:18 am #7633
Andrew MisplonKeymasterHi 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.
August 28, 2017 at 9:44 am #7634
Andrew MisplonKeymasterThanks 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 🙂
August 28, 2017 at 1:56 pm #7635
brucewonParticipantExcellent, this has solved the issue. Thank you for the quick response!
August 28, 2017 at 4:42 pm #7636
Andrew MisplonKeymasterSuper 🙂 Glad to hear that did the trick.
- AuthorPosts
You must be logged in to reply to this topic.