Skip to content

Instantly share code, notes, and snippets.

View sisaacrussell's full-sized avatar

Isaac Russell sisaacrussell

View GitHub Profile
@sisaacrussell
sisaacrussell / tribe-events.css
Last active July 11, 2020 12:00
Custom CSS for Tribe Events Plugin
/*
*
* Custom CSS for Tribe Events Plugin
*
*/
/* Ticket page styling */
.tribe-rsvp-message-success {
background-color: #dff7dd;
@sisaacrussell
sisaacrussell / custom.css
Last active February 27, 2017 20:00
Pagination styling for Divi filterable portfolios.
/*
Pagination styling for portfolios.
*/
.et_pb_filterable_portfolio .et_pb_portofolio_pagination ul li {
display: inline-block;
}
.et_pb_filterable_portfolio .et_pb_portofolio_pagination ul li a {
float: left;
padding: 8px 16px;
@sisaacrussell
sisaacrussell / style.css
Last active October 18, 2018 07:56
Vertically align Divi modules within a row using a custom class
/*
* Custom class to vertically align modules within a row
* Add to Custom CSS tab of module within the page
*/
.ds-vertical-align {
display: flex;
flex-direction: column;
justify-content: center;
}
.ds-bottom-align {
@sisaacrussell
sisaacrussell / functions.php
Last active February 21, 2017 14:36 — forked from skyshab/functions.php
rename custom taxonomy
add_action( 'init', 'my_modify_taxonomy', 11 );
function my_modify_taxonomy() {
// get the arguments of the already-registered taxonomy
$my_category_args = get_taxonomy( 'project_category' );
// make changes
$my_category_args->rewrite['slug'] = 'genre';
@sisaacrussell
sisaacrussell / default-template.php
Last active February 21, 2017 14:58 — forked from skyshab/default-template.php
Custom code I used to integrate The Event Calendar with Divi
<?php
/**
* Custom Events Template
* This file is the basic wrapper template for all the views if 'Default Events Template'
* is selected in Events -> Settings -> Template -> Events Template.
*
* Override this template in your own theme by placing this file at [your-theme]/tribe-events/default-template.php
*
* @package TribeEventsCalendar
*
<?php
// Divi Builder on custom post types by https://wpcolt.com
add_filter('et_builder_post_types', 'divicolt_post_types');
add_filter('et_fb_post_types','divicolt_post_types' );
// Enable Divi Visual Builder on the custom post types
function divicolt_post_types($post_types)
{
foreach (get_post_types() as $post_type) {
if (!in_array($post_type, $post_types) and post_type_supports($post_type, 'editor')) {
$post_types[] = $post_type;