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
@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 / 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 / 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 / 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(
<!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);