View cpt.php
<?php
/*
* @Author Jayson Antipuesto
* @Description Testimonial custom post type with metabox
* @Site Upward Spiral Consulting
*/
// Register Custom Post Type
function testimonial_post_type() {
View gist:64de09b14e1cf209f15884038ff396be
//* Showing Full content and Featured image in 'testimonial' CPT archive page regardless of theme settings in Genesis
add_action( 'genesis_before_loop', 'sk_full_content_testimonials_archive' );
function sk_full_content_testimonials_archive() {
if ( is_post_type_archive( 'testimonial' ) ) {
add_filter( 'genesis_pre_get_option_content_archive_thumbnail', 'sk_show_post_image' );
add_filter( 'genesis_pre_get_option_content_archive', 'sk_do_full_content' );
add_filter( 'genesis_pre_get_option_content_archive_limit', 'sk_no_content_limit' );
}
View custom-yt-thumb.js
jQuery('.video-thumb').click(function(){
var video = '<iframe width="573" height="322" src="'+ jQuery(this).attr('data-video') +'" frameborder="0" allowfullscreen></iframe>';
jQuery(this).replaceWith(video);
});
/*
* @data-video - use data-video attribute for video url
* @video-thumb - use 'video-thumb' class
* @example = <img class="video-thumb" src="/wp-content/uploads/2012/01/573x322.png" data-video="https://www.youtube.com/embed/MQ5sFO_iETg?autoplay=1" />
*/
View functions.php
// Remove site description
add_filter( 'genesis_attr_site-description', 'abte_add_site_description_class' );
/**
* Add class for screen readers to site description.
*
* Unhook this if you'd like to show the site description.
*
* @since 1.0.0
*
* @param array $attributes Existing HTML attributes for site description element.
View conkyrc
use_xft yes
xftfont NotoSans:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
View goto.js
$(function() {
$('a[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
View template_page.php
<?php
/**
* Template Name: Our Team Template
* Description: Used as a page template to display our team child pages
*/
//* Loop
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'our_team_loop');
View remove-yoast-seo-nag.php
<?php
/**
* Plugin Name: Remove Yoast SEO Nag
* Plugin URI: https://wordpress.org/
* Description: This plugin remove the annoying Yoast SEO nag in your wordpress dashboard every update.
* Version: 1.0.0
* Author: Jayson Antipuesto
* Author URI: https://wordpress.org/
*/
View widget.php
<?php
class WendiePett_Optin extends WP_Widget {
/**
* Sets up the widgets name etc
*/
public function __construct() {
// widget actual processes
parent::__construct(
View functions.php
<?php
// Enable woocommerce support
add_theme_support( 'woocommerce' );
// Add WooCommerce support for Genesis layouts (sidebar, full-width, etc) - Thank you Kelly Murray
add_post_type_support( 'product', 'genesis-layouts' );
// Unhook WooCommerce Sidebar - use Genesis Sidebars instead
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );