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
| /** | |
| * HEX Color sanitization callback. | |
| * | |
| * - Sanitization: hex_color | |
| * - Control: text, WP_Customize_Color_Control | |
| * | |
| * Note: sanitize_hex_color_no_hash() can also be used here, depending on whether | |
| * or not the hash prefix should be stored/retrieved with the hex color value. | |
| * | |
| * @see sanitize_hex_color() https://developer.wordpress.org/reference/functions/sanitize_hex_color/ |
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
| $wp_customize->add_setting( 'themeslug_url_setting_id', array( | |
| 'capability' => 'edit_theme_options', | |
| 'sanitize_callback' => 'themeslug_sanitize_url', | |
| ) ); | |
| $wp_customize->add_control( 'themeslug_url_setting_id', array( | |
| 'type' => 'url', | |
| 'section' => 'custom_section', // Add a default or your own section | |
| 'label' => __( 'Custom URL' ), | |
| 'description' => __( 'This is a custom url input.' ), |
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 | |
| // Change the footer text in Genesis with a back up if blank | |
| add_filter('genesis_footer_creds_text', 'genesischild_footer_text'); | |
| function genesischild_footer_text() { | |
| if( get_theme_mod( 'footer_text_block') != "" ) { | |
| echo get_theme_mod( 'footer_text_block'); | |
| } | |
| else{ |
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 | |
| /** | |
| * Search Shortcode Excerpt | |
| * @since 1.1 Genesis 404 Page plugin | |
| * @author Bill Erickson | |
| */ | |
| function search_shortcode() { | |
| return '<div class="genesis-404-search">' . get_search_form( false ) . '</div>'; | |
| } |
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 | |
| /** | |
| * | |
| * @package LCW\Templates | |
| * @author Pamela Hirsch | |
| * @license GPL-2.0+ | |
| * @link http://www.pamelahirsch.com/services | |
| */ | |
| add_action( 'genesis_meta', 'phc_genesis_meta' ); |
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 | |
| //* Remove .site-inner | |
| add_filter( 'genesis_markup_site-inner', '__return_null' ); | |
| add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false' ); | |
| add_filter( 'genesis_markup_content', '__return_null' ); | |
| ?> |
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
| jQuery( document ).ready( function( $ ) { | |
| jQuery( '.content' ).masonry(); | |
| } ); | |
| jQuery( 'img' ).load(function() { | |
| jQuery( '.content' ).masonry(); | |
| } ); |
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
| .entry-content a { | |
| color: #232323; | |
| text-decoration: none; | |
| background: linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#d43c67,#d43c67); | |
| background-repeat: no-repeat,no-repeat,repeat-x; | |
| background-position: 0 95%,100% 95%,0 95%; | |
| background-size: .05em 1px,.05em 1px,1px 1px; | |
| text-shadow: 0.03em 0 #fff, -0.03em 0 #fff, 0 0.03em #fff, 0 -0.03em #fff, 0.06em 0 #fff, -0.06em 0 #fff, 0.09em 0 #fff, -0.09em 0 #fff, 0.12em 0 #fff, -0.12em 0 #fff, 0.15em 0 #fff, -0.15em 0 #fff; | |
| } |
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 | |
| $get_featured_cats = array( | |
| 'taxonomy' => 'product_cat', | |
| 'orderby' => 'name', | |
| 'hide_empty' => '0', | |
| 'include' => $cat_array | |
| ); | |
| $all_categories = get_categories( $get_featured_cats ); | |
| $j = 1; |