Add responsive viewport, lang attribute and Body Class in Wordpress
First check responsiveness of theme using inspect.
Then add viewport meta for make theme responsive like below ->
In head section add below code
<meta name="viewport" content="width=device-width, initial-scale=1">
Now add charset in Head section like below
<meta charset="<?php bloginfo('charset') ?>">
and now add language attribute in <html> like below
<html <?php language_attributes(); ?>>
and save check the blog in inspect viewport.
After add new function in <body> like below
<body <?php body_class(); ?>>
and save.
Comments
Post a Comment