This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Custom CSS for Tribe Events Plugin | |
* | |
*/ | |
/* Ticket page styling */ | |
.tribe-rsvp-message-success { | |
background-color: #dff7dd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Tribe, limit ticket qty | |
* Source: https://theeventscalendar.com/support/forums/topic/only-one-ticket-per-person/ | |
*/ | |
function tribe_limit_tickets() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready( function( $ ) { | |
// do this if tickets available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Enable option within Gravity Forms to hide form field labels | |
* Source: https://gravitywiz.com/how-to-hide-gravity-form-field-labels-when-using-placeholders/ | |
*/ | |
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ClearLocalCacheButton() { ?> | |
// Create Button | |
<a href="#" onclick="ClearLocalCache()" class="et-pb-layout-buttons et-pb-layout-buttons-cache" title="Clear Cache"> | |
<span>Clear Cache</span> | |
</a> | |
<script type="text/javascript"> | |
// Move Button to Divi Tabs | |
jQuery(window).load(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Better Inventory with Gravity Forms | |
* | |
* Implements the concept of "inventory" with Gravity Forms by allowing the specification of a limit determined by the | |
* sum of a specific field, typically a quantity field. | |
* | |
* @version 2.11 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ |
OlderNewer