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
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<title>untitled</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> | |
<!-- Main --> |
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
/* change the color to your colors */ | |
background-color: #666666; | |
background-color: #0081c2; | |
background-image: -moz-linear-gradient(top, #666666, #333333); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#666666), to(#333333)); | |
background-image: -webkit-linear-gradient(top, #666666, #333333); | |
background-image: -o-linear-gradient(top, #666666, #333333); | |
background-image: linear-gradient(to bottom, #666666, #333333); | |
background-repeat: repeat-x; | |
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff666666', endColorstr='#ff333333', GradientType=0); |
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
<style> | |
.google-maps { | |
position: relative; | |
padding-bottom: 75%; // This is the aspect ratio | |
height: 0; | |
overflow: hidden; | |
} | |
.google-maps iframe { | |
position: absolute; | |
top: 0; |
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 | |
// Imagem Destacada somente nos post types criados | |
add_theme_support('post-thumbnails', array('nome_post_types_criados')); | |
// Imagem Destacada somente nos posts | |
add_theme_support('post-thumbnails', array('post')); | |
// B. somente nas páginas | |
add_theme_support('post-thumbnails', array('page')); | |
// C. em ambos | |
add_theme_support(‘post-thumbnails’ ); |
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
<html> | |
<head> | |
<meta http-equiv="refresh" content="1;URL=http://www.pagina_que_deve_ser_chamada.com.br"> | |
</head> | |
</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 | |
/*Função para o wordpress pedir logo do cliente - colar em functions.php*/ | |
function themeslug_theme_customizer( $wp_customize ) { | |
$wp_customize->add_section( 'themeslug_logo_section' , array( | |
'title' => __( 'Adicione Logo', 'themeslug' ), | |
'priority' => 30, | |
'description' => 'Upload a logo to replace the default site name and description in the header', | |
) ); | |
$wp_customize->add_setting( 'themeslug_logo' ); | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="shortcut icon" href="http://getbootstrap.com/docs-assets/ico/favicon.png"> |
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
JS: | |
$(".accordeon dd").hide().prev().click(function() { | |
$(this).parents(".accordeon").find("dd").not(this).slideUp().prev().removeClass("active"); | |
$(this).next().not(":visible").slideDown().prev().addClass("active"); | |
}); | |
CSS: | |
.accordeon .active { color: red } | |
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
function my_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/login.png) !important; | |
height: 120px !important; width: 410px !important; margin-left: -40px;} | |
</style>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
OlderNewer