Skip to content

Instantly share code, notes, and snippets.

Björn Folbert folbert

Block or report user

Report or block folbert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@folbert
folbert / bedrock-setup-guide.md
Last active May 5, 2019
How to get up and running with Bedrock and Bedrock Capistrano at Oderland
View bedrock-setup-guide.md

Getting up and running with Bedrock

If you get totally stuck, here are some resources that may help you: Roots Discourse. Actually, you may want to head over and read this through really quick. It's nowhere near as long as this and may be good to have in the back of your mind when reading the rest of this document. Capistrano Website with manual Screencast on deploying WordPress with Capistrano.

Bedrock?

Bedrock is created by the good awesome people behind Sage and is described as a "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure." Read more at https://roots.io/bedrock.

@folbert
folbert / _display-bootstrap-size.scss
Last active Feb 20, 2019
Display current Bootstrap v4 size on screen
View _display-bootstrap-size.scss
/*
Inspired by https://www.viget.com/articles/check-your-breakpoint-using-this-simple-css-snippet
*/
body:after {
color: #000;
font-family: Helvetica;
font-size: 12px;
padding: 5px;
font-weight: bold;
@folbert
folbert / Bootstrap overrides for Sage 8.5.1 and Bootstrap 4 alpha 6
Last active Apr 24, 2019
Add this to bower.json and remove what you don't need
View Bootstrap overrides for Sage 8.5.1 and Bootstrap 4 alpha 6
"overrides": {
"bootstrap": {
"main": [
"./scss/_variables.scss",
"./scss/_mixins.scss",
"./scss/_custom.scss",
"./scss/_normalize.scss",
"./scss/_print.scss",
"./scss/_reboot.scss",
"./scss/_type.scss",
@folbert
folbert / togglable-acf-description.php
Created Feb 23, 2017
Toggleable description for Advanced Custom Fields
View togglable-acf-description.php
<?php
/**
* Hide ACF descriptions that have more characters than you deem feasible to display directly.
* Change the fewbricksToggleableDescriptionMinCharLength variable to 0 if you want all descriptions
* to be hidden.
* At its most simple, place this code in functions.php. But you should really try to use some namespacing
* or OOP approach to it instead.
*/
View deploy.rb
# deploy.rb from https://github.com/roots/bedrock-capistrano modified by Björn Folbert, https://gist.github.com/folbert/
# Folbert-comment: from Capistrano doc:
# Here we'd set the name of the application, must be in a format that's safe for
# filenames on your target operating system.
set :application, 'APPLICATIONNAME'
# Folbert-comment: use the SSH url for the repo from GitHub
set :repo_url, 'git@github.com:USER/REPO.git'
You can’t perform that action at this time.