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
/* #1- Large desktop */ | |
@media (min-width: 1200px) { ... } | |
/* #3- Regular sized laptops */ | |
@media (min-width: 980px) and (max-width: 1199px) { ... } | |
/* #3- Portrait tablet to landscape and desktop */ | |
@media (min-width: 768px) and (max-width: 979px) { ... } | |
/* #4- Landscape phone to portrait tablet */ |
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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
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
//If $y > 10, $x will say 'foo', else it'll say 'bar' | |
$x = ($y > 10) ? 'foo' : 'bar'; | |
//Short way of saying <? print $foo;?>, useful in HTML templates | |
<?=$foo?> | |
//Shorthand way of doing the for loop, useful in html templates | |
for ($x=1; $x < 100; $x++): | |
//Do something | |
end for; |
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 | |
//**php for dynamic title***************************************************************************// | |
<title><?php bloginfo('name'); ?></title> | |
///***php for images and jequery slider******************************************************// | |
<?php echo get_template_directory_uri(); ?>/ | |
//php for 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
Custom Headers | |
Languages: English • Français • Hrvatski • Русский • 日本語 • Português do Brasil • 中文(简体) • (Add your language) | |
Custom Header is a theme feature introduced with Version 2.1. Custom header is an image that is chosen as the representative image in the theme top header section. | |
See also Appearance Header Screen. | |
Contents | |
1 Adding Theme Support |
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 is for init default jquery*/ | |
function various_theme_jquery() { | |
wp_enqueue_script('jquery'); | |
} | |
add_action('init', 'various_theme_jquery'); | |
/*this is to enqueue js and css*/ |