Skip to content

Instantly share code, notes, and snippets.

View roxanneallard's full-sized avatar

Roxanne Allard roxanneallard

View GitHub Profile
PHP Templating with Twig: Installing (Part 1/5)
https://www.youtube.com/watch?v=SVb0whlghQY
PHP Templating with Twig: Creating Views (Part 2/5)
https://www.youtube.com/watch?v=lLweQpE59oU
Installeer composer in map
Installeer twig
@roxanneallard
roxanneallard / archive.php
Last active March 25, 2019 14:52
Display categories using get_the_terms();
// Get terms for post
$terms = get_the_terms( $event->ID , 'tribe_events_cat' );
// init counter
$i = 1;
// Loop over each item since it's an array
if ( $terms != null ){
foreach( $terms as $term ) {
// Print the name method from $term which is an OBJECT
@roxanneallard
roxanneallard / verticalalign.scss
Created January 31, 2019 18:02
Vertical Align
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
/* Mixin */
@mixin vertical-align($position: relative) {
position: $position;
top: 50%;
@roxanneallard
roxanneallard / collapse.css
Last active January 4, 2019 17:33
Collapse
button.btn.collapsed:before {
content:'Lees verder' ;
}
button.btn:before {
content:'Sluit' ;
}
@roxanneallard
roxanneallard / wp-config.php
Created November 30, 2018 13:36
Wordpress Debug Mode
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
@ini_set( 'display_errors', 1 );
@roxanneallard
roxanneallard / button.html
Created November 28, 2018 17:28
Floating Button
<div id="circularMenu" class="circular-menu">
<a class="floating-btn" onclick="document.getElementById('circularMenu').classList.toggle('active');">
<i class="fa fa-plus"></i>
</a>
<menu class="items-wrapper">
<a href="/zoeken" class="menu-item">Zoeken</a>
<p href="" id="show-explanation" class="menu-item">Uitleg Website</p>
</menu>
</div>
@roxanneallard
roxanneallard / WP Premium plugins
Last active March 10, 2020 14:49
WP Premium plugins
Duplicator Pro
Supermakkelijk wordpress websites verplaatsen
Advanced Custom Fields Pro
Custom veld aanmaken in posts in de backend
Search & Filter Pro
Geavanceerd posts etc. zoeken en filteren.
WP Accessibility Helper Pro