Skip to content

Instantly share code, notes, and snippets.

View wilransz's full-sized avatar

Wil Ransz wilransz

View GitHub Profile
function webpoli_admin_menu() {
global $wp_admin_bar;
$menu_id = 'webpoli';
$wp_admin_bar->add_menu(array(
'id' => $menu_id,
'title' => __('Mijn Menu'),
'href' => '#'));
$wp_admin_bar->add_menu(array(
'parent' => $menu_id,
'title' => __('Concepten'), 'id' =>
<?php
/* Google Web Fonts */
function wpzaken_google_fonts() {
echo "<link href='http://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>";
}
add_action( 'wp_head', 'wpzaken_google_fonts', 5);
<?php
/**
* The Header for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
/*
Theme Name: Twenty Fourteen Child
Template: twentyfourteen
*/
@import url(../twentyfourteen/style.css);
@import url(http://fonts.googleapis.com/css?family=Raleway:400,700);
/*
Theme Name: Twenty Fourteen Child
Template: twentyfourteen
*/
@import url(../twentyfourteen/style.css);
@wilransz
wilransz / googlewebfonts.js
Last active August 29, 2015 14:11
Google Web Fonts met JavaScript
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Raleway:400,700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
@wilransz
wilransz / selectie-wp-config-sample.php
Last active August 29, 2015 14:05
Relevant gedeelte van de wp-config-sample.php van WordPress versie 3.9.2
<?php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'username_here');
/** MySQL database password */
@wilransz
wilransz / wp-config-sample.php
Created September 1, 2014 19:46
wp-config-sample.php van WordPress versie 3.9.2
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@wilransz
wilransz / 2012-custom-footer-segment4.php
Created August 14, 2014 07:48
Het verschil tussen deze versie en 2012-custom-footer-segment3.php, is dat hier in het eerste deel zoveel mogelijk gebruik wordt gemaakt van WordPress template tags. #wpZaken
@wilransz
wilransz / 2012-custom-footer-segment3.php
Last active August 29, 2015 14:05
Nog een keer de HTML versie van het aangepaste segment van de footer.php van het TwentyTwelve thema, maar dit keer met een jaartal in PHP formaat. #wpZaken