• Hello,

    This code works only on header.php file
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
    and the child theme does not have header.php, I get an error if I save it to functions.php

    My question is, how can I save this code without losing it on the next update? excluding an extra plugin.

    • This topic was modified 3 years, 6 months ago by fitpinz.
    • This topic was modified 3 years, 6 months ago by fitpinz.
    • This topic was modified 3 years, 6 months ago by fitpinz.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @fitpinz,

    Please copy the header.php file from the main theme and paste it into the child theme root. Then you can customize your header.php file.

    Please use the FTP/sFTP or your host file manager to do this.

    Bets Regards

    Thread Starter fitpinz

    (@fitpinz)

    Hello @skalanter

    Thank you for your quick reply!

    The code does not work on the header.php on the child theme, should I copy the header-pwa.php along with header.php?

    • This reply was modified 3 years, 6 months ago by fitpinz.

    Hello @fitpinz,

    Yes, you can copy header-pwa.php and paste it into the child theme root and use it.

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme question’ is closed to new replies.