This file contains 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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] | |
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] |
This file contains 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
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
define('DB_NAME', 'uXXXXXXXXXX'); | |
/** MySQL database username */ | |
define('DB_USER', 'uXXXXXXXXXX'); | |
/** MySQL database password */ | |
define('DB_PASSWORD', 'byMaHuTuMu'); |
This file contains 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 if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
// HTML and template tags here to define the layout, and what is shown from the post | |
<?php endwhile; else : ?> | |
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> | |
<?php endif; ?> |
This file contains 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 screen and (max-width: 400px) { | |
.content-area, | |
.primary-sidebar { | |
width: 100%; | |
} | |
} |
This file contains 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 screen and (max-width: 800px) { | |
.article-loop { | |
width: 99%; | |
} | |
} |
This file contains 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 Theme1 | |
Author: Your Name | |
Author URI: http://www.yourwebsite.com | |
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 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 get_header(); ?> | |
<main class="wrap"> | |
<section class="content-area content-thin"> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<article class="article-full"> | |
<header> | |
<h2><?php the_title(); ?></h2> | |
By: <?php the_author(); ?> | |
</header> | |
<?php the_content(); ?> |
This file contains 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 get_header(); ?> | |
<main class="wrap"> | |
<section class="content-area content-full-width"> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<article class="article-full"> | |
<header> | |
<h2><?php the_title(); ?></h2> | |
By: <?php the_author(); ?> | |
</header> | |
<?php the_content(); ?> |
This file contains 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 get_header(); ?> | |
<main class="wrap"> | |
<section class="content-area content-thin"> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<article class="article-loop"> | |
<header> | |
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> | |
By: <?php the_author(); ?> | |
</header> | |
<?php the_excerpt(); ?> |