This file contains hidden or 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 | |
/** | |
* Posts Page (Home) template | |
* | |
* @package KnowTheCode | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://KnowTheCode.io | |
* @license GNU-2.0+ | |
*/ |
This file contains hidden or 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
// put this function at the bottom of your theme's | |
// function.php file | |
add_action( 'genesis_before_footer', 'prefix_remove_site_footer_from_specific_pages' ); | |
/** | |
* Remove the site footer from the specified pages. | |
* | |
* @since 1.0.0 | |
* | |
* @return void |
This file contains hidden or 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
define( 'COLLAPSIBLE_CONTENT_PLUGIN', __FILE__ ); | |
define( 'COLLAPSIBLE_CONTENT_DIR', plugin_dir_path( __FILE__ ) ); | |
$plugin_url = plugin_dir_url( __FILE__ ); | |
if ( is_ssl() ) { | |
$plugin_url = str_replace( 'http://', 'https://', $plugin_url ); | |
} | |
define( 'COLLAPSIBLE_CONTENT_URL', $plugin_url ); | |
define( 'COLLAPSIBLE_CONTENT_TEXT_DOMAIN', 'collapsible_content' ); |
This file contains hidden or 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
;(function($, window, document, undefined){ | |
'use strict'; | |
var $qaQuestions, $qaAnswers, $qaIcons, | |
$teaserMessages, $teaserHiddenContents, $teaserIcons; | |
var init = function() { | |
$qaQuestions = $('.qa--question'); | |
$qaAnswers = $qaQuestions.next(); | |
$qaIcons = $qaQuestions.find('.qa--icon'); |
This file contains hidden or 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_shortcode( 'faq', 'process_the_faq_shortcode' ); | |
/** | |
* Process the FAQ Shortcode to build a list of FAQs. | |
* | |
* @since 1.0.0 | |
* | |
* @param array|string $user_defined_attributes User defined attributes for this shortcode instance | |
* @param string|null $content Content between the opening and closing shortcode elements | |
* @param string $shortcode_name Name of the shortcode | |
* |
This file contains hidden or 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( 'genesis_entry_header', 'remove_post_byline', 9999 ); | |
/** | |
* Remove the post metadata byline from the HTML markup. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function remove_post_byline() { | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
This file contains hidden or 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( 'loop_start', 'remove_post_byline' ); | |
/** | |
* Remove the post metadata byline from the HTML markup. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function remove_post_byline() { | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
This file contains hidden or 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
function get_body_class( $class = '' ) { | |
$classes = array(); | |
// build all of the classes | |
// .. omitted for brevity | |
$classes = apply_filters( 'body_class', $classes, $class ); | |
return array_unique( $classes ); |