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
.tinted-image { | |
width: 300px; | |
height: 200px; | |
background: | |
/* top, transparent red */ | |
linear-gradient( | |
rgba(255, 0, 0, 0.45), | |
rgba(255, 0, 0, 0.45) |
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
// https://deliciousbrains.com/wp-offload-s3/doc/quick-start-guide/ | |
// To use the Amazon Web Services plugin and it’s addon WP Offload S3 you need to define an AWS access key and secret key. | |
define( 'AWS_ACCESS_KEY_ID', '####################' ); | |
define( 'AWS_SECRET_ACCESS_KEY', '########################################' ); |
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 | |
/* | |
Plugin Name: Better Forum List Widget for bbPress | |
Description: The default bbPress Forum List widget is pretty bare bones. This plugin adds a topic count and organizes the forum categories differently. | |
Author: c.bavota | |
Version: 1.0.0 | |
Author URI: http://www.bavotasan.com/ | |
https://code.tutsplus.com/tutorials/a-better-forum-list-widget-for-bbpress--wp-32279 | |
*/ |
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 | |
// Remove Disqus from Courses custom post type | |
add_filter( 'comments_template' , 'wpe_block_disqus_courses', 1 ); | |
function wpe_block_disqus_courses($file) { | |
if ( 'sfwd-courses' == get_post_type() ) | |
remove_filter('comments_template', 'dsq_comments_template'); | |
return $file; | |
} |
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 | |
// Remove Post Info, Post Meta from Courses | |
add_action ( 'get_header', 'wpe_remove_post_info_course' ); | |
function wpe_remove_post_info_course() { | |
if ('sfwd-courses' == get_post_type()) {//add in your CPT name | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
} | |
} |
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 | |
// LearnDash Breadcrumbs with Uncanny LearnDash Toolkit Plugin and Genesis | |
// https://wordpress.org/plugins/uncanny-learndash-toolkit/ | |
// Code goes into functions.php | |
add_action( 'genesis_before', 'wpe_remove_genesis_breadcrumbs_courses' ); | |
function wpe_remove_genesis_breadcrumbs_courses() { | |
if ('sfwd-courses' == get_post_type()) {//add in your CPT name | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); |
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 | |
/* | |
* Change the order of the endpoints that appear in My Account Page - WooCommerce 2.6 | |
* The first item in the array is the custom endpoint URL - ie http://mydomain.com/my-account/my-custom-endpoint | |
* Alongside it are the names of the list item Menu name that corresponds to the URL, change these to suit | |
*/ | |
function wpb_woo_my_account_order() { | |
$myorder = array( |
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 | |
/** | |
* Enqueue Zozo Tabs and Accordion Scripts | |
*/ | |
add_action( 'wp_enqueue_scripts', 'zozo_enqueue_scripts' ); | |
function zozo_enqueue_scripts() | |
{ |
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
<div class="icon-wrapper"><i class="fa fa-users custom-icon"></i></div> |
OlderNewer