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
//CUSTOM POST TYPE | |
function custom_post_type_modalidades() { | |
register_post_type('modalidades', array( | |
'label' => 'Modalidades', | |
'description' => 'Modalidades', | |
'public' => true, | |
'menu_icon' => 'dashicons-shield-alt', | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'capability_type' => 'page', |
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
&:before, &:after { | |
content: ""; | |
display: block; | |
width: 60px; | |
height: 3px; | |
background: #fff; | |
margin: 14px auto 10px auto; | |
} |
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
@mixin anima-slow { | |
-o-transition: all 0.3s linear; | |
-moz-transition: all 0.3s linear; | |
-khtml-transition: all 0.3s linear; | |
-webkit-transition: all 0.3s linear; | |
-ms-transition: all 0.3s linear; | |
transition: all 0.3s linear; | |
} | |
@mixin anima-normal { |
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
a:before { | |
font-family: FontAwesome; | |
content: "\f095"; | |
display: inline-block; | |
padding-right: 3px; | |
vertical-align: middle; | |
} | |
FONT AWESOME VERSÃO 5: |
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
Classe para criar efeito diagonal no before | |
h2{ | |
padding-top: 2rem; | |
width: 70%; | |
position: relative; | |
font-size: 1.625em; | |
&:before{ | |
position: absolute; | |
content: ''; |
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
// LIMITAR RESUMO DO POST | |
function novo_tamanho_do_resumo($length) { | |
return 30; | |
} | |
add_filter('excerpt_length', 'novo_tamanho_do_resumo'); | |
function new_excerpt_more($more) { | |
return '...'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); |
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
$('.heading a').click(function(e){ //COLOCAR A CLASSE DO MENU NO LUGAR DO '.heading' | |
e.preventDefault(); | |
var id = $(this).attr('href'), | |
targetOffset = $(id).offset().top, | |
menuHeight = $('.heading').innerHeight(); //COLOCAR A CLASSE DO MENU NO LUGAR DO '.heading' | |
$('html,body').animate({ | |
scrollTop: targetOffset - menuHeight | |
},500); //500 = VELOCIDADE DO SCROLL | |
}); |
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 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post' ); ?> | |
<div class="foto_blog-novo" style='background: url("<?php echo $image[0]; ?>") no-repeat center; background-size: cover;' > | |
</div><!-- /foto_blog-novo --> |
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 | |
$images = get_field('galeria1'); | |
if( $images ): ?> | |
<div id="sync1" class="owl-carousel"> | |
<?php foreach( $images as $image ): ?> | |
<div class="item"><h1><img src="<?php echo $image['sizes']['large']; ?>" alt="<?php echo $image['alt']; ?>" /></h1></div> | |