WordPress.org

Ready to get started?Download WordPress

Forums

Zenon Lite
[resolved] Remove mobile site (2 posts)

  1. jr2009
    Member
    Posted 1 year ago #

    Hi again. Initially my mobile view was the same as what I see on desktop, which is what I want. But now when I access my website on mobile, it becomes mobile responsive.

    How do I remove that? ;)

  2. Towfiq I.
    Member
    Theme Author

    Posted 1 year ago #

    open up functions.php and remove this line:

    function znn_mobile_css() {
    if ( !is_admin() ) {
    wp_enqueue_style( 'znn_mobile', get_template_directory_uri() . '/mobile.css', false, '1.0', 'only screen and (max-width: 400px)' );
    	}
    }
    add_action('wp_enqueue_scripts', 'znn_mobile_css');

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic