Support » Theme: Travelify » Zoom in mobiles

  • Resolved Piani

    (@webbmasterpianise)


    I want to give a top 5 rating but then you need to fix the zoom on mobiles and the header (see other thread)

    In the file >travelify\library\structure\header-extensions.php

    You should change
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    To
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=4">

    If you change the scale option then mobile users can zoom in to text and details

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Piani,

    I hope you are well today and thanks for posting here.

    I have notified the theme developer to change it.

    It will be changed in the future version of theme.

    In the meanwhile to change it try adding the following code in the functions.php file of your child theme.

    function modify_travelify_add_meta(){
    
        remove_action( 'wp_head', 'travelify_add_meta', 5 );
        add_action( 'wp_head', 'custom_travelify_add_meta', 10 );
    }
    add_action( 'init', 'modify_travelify_add_meta'  );
    
    /**
     * Add meta tags.
     */
    function custom_travelify_add_meta() {
    ?>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=4">
    <?php
    }

    Best Regards,
    Movin

    Thread Starter Piani

    (@webbmasterpianise)

    Thanks!

    You are most welcome here 🙂

    Hi, guys!

    Can you help me?

    I’ve tried both solutions but it didn’t worked…

    Thanks!

    @dhandrade As per the Forum Welcome,you should post your own topic and to help us keep support thread separates could you please create your own thread for your question here https://wordpress.org/support/theme/travelify instead of replying on others thread as it makes the thread messy and hard to read.

    If you want to you can also add reference of this thread in your newly created thread.

    We would be more than happy to help you on your new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Zoom in mobiles’ is closed to new replies.