Skip to content

Instantly share code, notes, and snippets.

@CoachBirgit
CoachBirgit / Contract Killer 3.md
Created February 28, 2024 02:17 — forked from tony-caffe/Contract Killer 3.md
The latest version of Bytes Unlimited ‘Contract Killer’ for web professionals

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Bytes Unlimited : Feb 3rd 2020

@CoachBirgit
CoachBirgit / create-wordpress-with-valet.sh
Last active October 31, 2023 16:51
Bash script: Use WP-CLI on Laravel/Valet to download, install and configure WordPress like a breeze.
#! /bin/bash
# Author: Birgit Olzem aka @CoachBirgit
# Version: 1.0
# Created on: January 19th 2022
# Requires WP-CLI, cURL, wget
# credits for the origin idea to Jeremy Herve: https://jeremy.hu/dev-environment-laravel-valet-wp-cli/
### How to use
@CoachBirgit
CoachBirgit / generate-dummy-posts-with-featured-images.sh
Created January 19, 2022 10:40
Use WP-CLI on Laravel/Valet to generate some dummy content with featured images
@CoachBirgit
CoachBirgit / divi-lightbox-snippet-for-functions.php
Last active January 19, 2022 06:33
DIVI: add lightbox to regular content images
/* --- DEPRECATED --- */
/* add .et_pb_lightbox_image clss to content images */
add_filter('the_content', 'divi_add_lightbox');
function divi_add_lightbox($content) {
global $post;
$pattern ="/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>/i";
$replacement = '<a$1href=$2$3.$4$5 class="et_pb_lightbox_image" title="'.$post->post_title.'"$6>';
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
echo "Welcome to Create WordPress Site Wizard!"
echo -n "Enter Folder Name:"
read foldername
echo -n "Enter Site Name:"
read sitename
echo "Creating Site Folder"
mkdir ${foldername}
cd ${foldername}
@CoachBirgit
CoachBirgit / gist:f1b94ccb22dc8d653fa3
Created July 6, 2015 10:20
Ultimate Member Private Messages: dynamic message button by passing dynamic user ID
<?php echo do_shortcode('[ultimatemember_message_button user_id='.$user_id.']'); ?>
@CoachBirgit
CoachBirgit / divi-rounded-corners-all-modules.css
Created November 5, 2015 07:20
DIVI: ROUNDED CORNERS - ALL MODULES
/*DIVI ROUNDED CORNERS - ALL MODULES*/
@media only screen and ( min-width:768px) and (max-width: 980px ) {
.et_pb_featured_table:nth-child(3), .et_pb_featured_table:nth-child(4){margin-top: 30px;}
.et_pb_pricing_table:nth-child(odd){
-webkit-border-top-left-radius:6px;
-webkit-border-bottom-left-radius:6px;
-moz-border-radius-topleft:6px;
-moz-border-radius-bottomleft:6px;
@CoachBirgit
CoachBirgit / functions.php
Last active April 16, 2018 17:21
WordPress: Add 'img-responsive' class via filter to 'the_content'
// add default class for img-responsive
function add_image_responsive_class($content) {
global $post;
$pattern ="/<img(.*?)class=\"(.*?)\"(.*?)>/i";
$replacement = '<img$1class="$2 img-responsive"$3>';
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
add_filter('the_content', 'add_image_responsive_class');
@CoachBirgit
CoachBirgit / Contract Killer 3.md
Created March 14, 2018 09:16 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@CoachBirgit
CoachBirgit / divi-sticky-footer.css
Last active January 6, 2018 02:11
CSS: Sticky footer - Elegantthemes Divi