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 | |
function vmf_query_filter($query) { | |
if ( ! is_admin() && $query->is_main_query() && $query->is_home() ) { | |
$query->set( 'post_type', array('post', 'page', 'portfolio', 'product') ); | |
}; | |
return $query; | |
}; | |
add_filter('pre_get_posts', 'vmf_query_filter'); |
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 | |
//* Add accessibility support | |
add_theme_support( 'genesis-accessibility', array( '404-page', 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) ); |
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 | |
function my_custom_header_title( $wp_customize ) { | |
$wp_customize->get_section( 'header_image' )->title = __( 'Header Logo', 'digital' ); | |
} | |
add_action( 'customize_register', 'my_custom_header_title') |
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
<div style="height: 331px;" class="image-container"> | |
<img id="image-2290" src="stanton2d_e.jpg" class="attachment-shop_catalog wp-post-image" alt="Stanton2D.jpg" width="332"> | |
</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
var confirmation_req = $.ajax({ | |
type: 'GET', | |
url: '//path-to-remote-server', | |
dataType: "text", | |
contentType: "text/xml", | |
data: { FormXml: strXml }, | |
dataFilter: function (data, type) { | |
var start = data.search('">') + 2, strlen = data.search('</long>') - start; | |
return data.substr(start, strlen); | |
} |
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 ($) { | |
"use strict"; | |
function set_form_fields(data) { | |
$("#html_display_element").html(data); | |
$("#field_confirm_value").attr("value", data ); // One way to set a value. Could also use $("#field_confirm_value").val( data ); | |
} | |
$("#btnSubmit").on( "click", function (e) { | |
e.preventDefault(); |
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 | |
add_action( 'genesis_doctype', 'genesis_do_doctype' ); | |
/** | |
* Echo the doctype and opening markup. | |
* | |
* If you are going to replace the doctype with a custom one, you must remember to include the opening <html> and | |
* <head> elements too, along with the proper attributes. | |
* | |
* It would be beneficial to also include the <meta> tag for content type. |
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 | |
add_filter('widget_tag_cloud_args','set_tag_cloud_font_size'); | |
function set_tag_cloud_font_size($args) { | |
$args['smallest'] = 12; /* Set the smallest size to 12px */ | |
$args['largest'] = 19; /* set the largest size to 19px */ | |
return $args; | |
} |