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 $postslist = get_posts('numberposts=3&order=DESC'); ?> | |
<?php if($postslist) : foreach ($postslist as $post) : setup_postdata($post); ?> | |
<div class="media"> | |
<a class="pull-left" href="<?php the_permalink();?>"><?php the_post_thumbnail('post-recientes', array('class'=>'media-object')); ?></a> | |
<div class="media-body"> | |
<h5 class="media-heading"><a href="<?php the_permalink();?>"><?php the_title();?></a></h5> | |
<small id="small-footer"><?php the_time('M j, Y'); ?></small> | |
</div> | |
</div> | |
<?php endforeach; ?> |
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 $args = array( | |
'posts_per_page' => 5, | |
'offset' => 0, | |
'category' => '', | |
'category_name' => '', | |
'orderby' => 'date', | |
'order' => 'DESC', | |
'include' => '', | |
'exclude' => '', | |
'meta_key' => '', |
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
<div class="col-md-12" id="col-md-12-videospage"> | |
<?php | |
$portfolio_query = new WP_Query(array( | |
'category_name' => 'portfolio', | |
'order' => 'DESC', | |
'posts_per_page' => '9', | |
'paged' => $paged | |
)) | |
?> | |
<!-- First Blog Post --> |
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
AuthUserFile /dev/null | |
AuthGroupFile /dev/null | |
AuthName "WordPress Admin Access Control" | |
AuthType Basic | |
<LIMIT GET> | |
order deny,allow | |
deny from all | |
# whitelist Derian's IP address | |
allow from xx.xx.xx.xxx | |
# whitelist Carlos's IP address |
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
::-webkit-scrollbar { | |
width: 12px; | |
} | |
::-webkit-scrollbar-track { | |
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); | |
-webkit-border-radius: 0px; | |
border-radius: 0px; | |
} | |
::-webkit-scrollbar-thumb { | |
-webkit-border-radius: 0px; |
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 | |
//This goes in your functions | |
add_theme_support('custom-logo'); | |
?> | |
<?php | |
//This goes in your html elements | |
if(has_custom_logo()) : ?><?php the_custom_logo(); ?><?php else : ?><?php bloginfo('name'); | |
?> | |
<?php endif; ?> |
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 | |
// Agrega un logo personalizado al Dashboard de Wordpress | |
function wpb_custom_logo() { | |
echo ' | |
<style type="text/css"> | |
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { | |
background-image: url(' . get_bloginfo('stylesheet_directory') . '/img/your-logo.png) !important; | |
background-position: 0 0; | |
color:rgba(0, 0, 0, 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 | |
//Change default gravatar image | |
add_filter( 'avatar_defaults', 'wpb_new_gravatar' ); | |
function wpb_new_gravatar ($avatar_defaults) { | |
$myavatar = 'https://vignette3.wikia.nocookie.net/assassinscreed/images/4/4b/ACI_Default.jpg/revision/latest?cb=20150322230631'; | |
$avatar_defaults[$myavatar] = "Default Gravatar"; | |
return $avatar_defaults; | |
} | |
?> |
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 | |
remove_action('welcome_panel', 'wp_welcome_panel'); | |
?> |