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
the_post_thumbnail(); // Without parameter ->; Thumbnail | |
the_post_thumbnail( 'thumbnail' ); // Thumbnail (default 150px x 150px max) | |
the_post_thumbnail( 'medium' ); // Medium resolution (default 300px x 300px max) | |
the_post_thumbnail( 'medium_large' ); // Medium-large resolution (default 768px x no height limit max) | |
the_post_thumbnail( 'large' ); // Large resolution (default 1024px x 1024px max) | |
the_post_thumbnail( 'full' ); // Original image resolution (unmodified) | |
the_post_thumbnail( array( 100, 100 ) ); // Other resolutions (height, width) | |
add_image_size( 'category-thumb', 300, 9999 ); // 300 pixels wide (and unlimited height) |
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
header.php - header section | |
index.php - main section | |
sidebar.php - sidebar section | |
footer.php - footer section | |
single.php - post template | |
page.php - page template | |
comments.php - comments template | |
search.php - search content | |
searchform.php - search form | |
archive.php - archive |
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
#stop directory browsing | |
Options All -Indexes | |
# SSL Https active Force non-www | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,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
<?php | |
/* ----------------------------------------------------------------------------- | |
* Helper Function | |
* -------------------------------------------------------------------------- */ | |
if ( ! function_exists( 'omc_get_option' ) ) { | |
/** | |
* Proxy Function | |
*/ | |
function omc_get_option( $opt_name, $default = null ) { |
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
Root url for website | |
--------------------------------------------------------- | |
<?php site_url(); ?> | |
<?php bloginfo('url'); ?> | |
title of specific post/page | |
--------------------------------------------------------- | |
<?php wp_title(); ?> | |
Site Home URL |
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
Root url for website | |
--------------------------------------------------------- | |
<?php site_url(); ?> | |
<?php bloginfo('url'); ?> | |
title of specific post/page | |
--------------------------------------------------------- | |
<?php wp_title(); ?> | |
Site Home URL |
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
Root url for website | |
--------------------------------------------------------- | |
<?php site_url(); ?> | |
<?php bloginfo('url'); ?> | |
title of specific post/page | |
--------------------------------------------------------- | |
<?php wp_title(); ?> | |
Site Home URL |
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
/* Medium Layout: 1280px. */ | |
@media only screen and (min-width: 992px) and (max-width: 1200px) { | |
} | |
/* Tablet & mobile Layout: 768px. */ | |
@media only screen and (max-width: 991px) { | |
} |