Skip to content

Instantly share code, notes, and snippets.

View amariliscamargo's full-sized avatar
🎯
Focusing

Amarilis Camargo amariliscamargo

🎯
Focusing
  • MoovenConsulting
  • São Paulo
View GitHub Profile
<!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 -->
/* 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);
@amariliscamargo
amariliscamargo / google_maps_responsivo.html
Created September 9, 2015 15:01
Google Maps Responsivo
<style>
.google-maps {
position: relative;
padding-bottom: 75%; // This is the aspect ratio
height: 0;
overflow: hidden;
}
.google-maps iframe {
position: absolute;
top: 0;
@amariliscamargo
amariliscamargo / imagem_destacada.php
Created September 9, 2015 15:05
Wordpress - Imagem destacada para post, páginas ou post type
<?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’ );
@amariliscamargo
amariliscamargo / redirecionamento.html
Created September 9, 2015 15:08
Página de redirecionamento
<html>
<head>
<meta http-equiv="refresh" content="1;URL=http://www.pagina_que_deve_ser_chamada.com.br">
</head>
</html>
@amariliscamargo
amariliscamargo / logo_wp.php
Last active September 9, 2015 15:13
Função para o wordpress pedir logo do cliente
<?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(
@amariliscamargo
amariliscamargo / menu
Last active September 10, 2015 23:54 — forked from ikoner/menu
wordpress
functions.php
// register wp_nav_menu
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
register_nav_menus( array(
'topMenu' => __( 'topMenu', 'smsApp' )
)
);
}
@amariliscamargo
amariliscamargo / layout_carrossel.html
Last active September 10, 2015 23:57
HTML - Layout Bootstrap Carrossel
<!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">
@amariliscamargo
amariliscamargo / accordeon.txt
Last active September 11, 2015 00:14 — forked from nikartm/accordeon.txt
jQuery Accordeon
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:
@amariliscamargo
amariliscamargo / function my_custom_login_logo.php
Created September 14, 2015 00:41
Função que muda logo do login no wordpress
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');