Skip to content

Instantly share code, notes, and snippets.

img{
width: 100%
}
img{
max-width: 100
}
@media screen and (min-width: 800px) and (max-width: 1200px) {
.leftSidebar{
width: 40%;
float: left;
}
}
<?php
add_filter('upload_mimes', 'wpopas_add_custom_upload_mimes');
function wpopas_add_custom_upload_mimes( $mimes = array() ) {
// Lisää tiedostotyyppi
$mimes['kmz'] = 'application/vnd.google-earth.kmz';
return $mimes;
}
<?php
add_filter('upload_mimes', 'wpopas_remove_custom_upload_mimes');
function wpopas_remove_custom_upload_mimes( $mimes = array() ) {
//Poista tiedostotyyppi
unset( $mimes['png'] );
return $mimes;
}
@timoleinio
timoleinio / footer.php
Created January 5, 2014 13:40
WordPress Twenty Fourteen modified footer
@timoleinio
timoleinio / style.css
Last active January 2, 2016 07:09
WordPress child theme example css
/*
Theme Name: Twenty Fourteen lapsiteema
Template: twentyfourteen
*/
@import url("../twentyfourteen/style.css");
.entry-title{
font-size: 54px;
}
@timoleinio
timoleinio / style.css
Created January 5, 2014 13:38
WordPress child theme style example
/*
Theme Name: Twenty Fourteen lapsiteema
Template: twentyfourteen
*/
@import url("../twentyfourteen/style.css");
@timoleinio
timoleinio / index.php
Created December 19, 2013 16:48
Short WordPress plugin example
<?php
/*
Plugin Name: WP-Opas lisäosa
Plugin URI: http://wpopas.fi
Description: Lisäosa esimerkki
Version: 1.0
Author: Timo Leiniö
Author URI: http://wpopas.fi
License:
License URI:
@timoleinio
timoleinio / gist:7856203
Created December 8, 2013 11:30
Font Awesome Shortcode example
[icon name="icon-youtube-sign" size="4x" space="false" title="Youtube"]