Skip to content

Instantly share code, notes, and snippets.

@iamandrewpeters
iamandrewpeters / social-share-styling.css
Created January 30, 2020 14:51
Social Sharing with Twig
/* Colors for the icons */
.fa-facebook-square {
color: #378997;
}
.fa-twitter {
color: #EF6832;
}
.fa-envelope-open {
@iamandrewpeters
iamandrewpeters / bb-clickble-col.js
Created June 9, 2020 16:42 — forked from carlosonweb/bb-clickble-col.js
Make a BB Column Clickable
/**
* Makes a BB Column clickable.
* Pre-requisite: There must be an A Tag contained within the column element.
*/
jQuery(document).ready(function($){
$('.clickable-col').css('cursor', 'pointer');
$('.clickable-col').on('click', function(event){
$(this).find('a')[0].click();
});
@iamandrewpeters
iamandrewpeters / tutorlms-admin-style.css
Created August 20, 2019 22:10
CSS to tweak the Tutor LMS styling on the backend
/* Tutor Backend Colors */
#tutor-course-topics h2:before, #tutor-instructors h2:before {
color: #5ACDC1;
}
a.tutor-button.bordered-button,
.tutor-button.bordered-button,
a.tutor-btn.bordered-btn,
.tutor-btn.bordered-btn{
@iamandrewpeters
iamandrewpeters / resourceposttype.php
Last active December 9, 2021 14:48
Resource Library CPT and Tax
//Create Resource Post Type
function register_my_resources_cpt() {
$labels = array(
"name" => __( "Resources", "" ),
"singular_name" => __( "Resource", "" ),
);
$args = array(