This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html <?php language_attributes(); ?> | |
| <head> | |
| <title><?php bloginfo('name'); ?> » <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title> | |
| <meta charset="<?php bloginfo( 'charset' ); ?>"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"> | |
| <?php wp_head(); ?> | |
| </head> | |
| <body <?php body_class(); ?>> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Register a new sidebar simply named 'sidebar' | |
| function add_widget_Support() { | |
| register_sidebar( array( | |
| 'name' => 'Sidebar', | |
| 'id' => 'sidebar', | |
| 'before_widget' => '<div>', | |
| 'after_widget' => '</div>', | |
| 'before_title' => '<h2>', | |
| 'after_title' => '</h2>', | |
| ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // This function enqueues the Normalize.css for use. The first parameter is a name for the stylesheet, the second is the URL. Here we | |
| // use an online version of the css file. | |
| function add_normalize_CSS() { | |
| wp_enqueue_style( 'normalize-styles', "https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| background-color: #f9f9f9; | |
| font-family: Helvetica; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Theme Name: My Theme | |
| Author: Hostinger | |
| Author URI: http://www.hostinger.com/tutorials | |
| Description: My first responsive HTML5 theme | |
| Version: 1.0 | |
| License: GNU General Public License v3 or later | |
| License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Media Type and Media Feature and Media Feature*/ | |
| @media only screen and (min-width: 400px) and (max-width: 800px) { | |
| .inline-text-box { | |
| width: 100%; | |
| display: block; | |
| } | |
| } | |
| /* Media Feature Only */ | |
| @media (max-width: 1200px) { | |
| .inline-text-box { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* GOOD WIDTH */ | |
| .inline-text-box { | |
| width: 50%; | |
| } | |
| /* BAD WIDTH */ | |
| .inline-text-box { | |
| width: 800px; | |
| } | |
| /* GOOD IMAGE */ | |
| img { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>My HTML5 Page</title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="css/normalize.min.css"> | |
| <link rel="stylesheet" href="css/main.css"> | |
| </head> | |
| <body> |