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
/* | |
CSS Name: Default Styles | |
Description: NextGEN Default Gallery Stylesheet | |
Author: Photocrati Media | |
Version: 2.12 | |
This stylesheet is provided to allow users the ability of overriding the default styles for all display types | |
*/ | |
/* For NextGen Gallery. Displays thumbnails on a page, and when you click each thumbnail opens it's own |
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 | |
/*-------------------------------------------------------*/ | |
/* Gutenberg Color Palette Support | |
/* https://studiopress.blog/theme-color-palette/ | |
/*-------------------------------------------------------*/ | |
add_theme_support( 'editor-color-palette', array( | |
array( | |
'name' => __( 'Gold', 'askwpgirl-sample' ), |
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
/** | |
* Gutenberg custom color palette. | |
* Use in conjunction with function. | |
*/ | |
.has-light-gold-color { | |
color: #c0a756; | |
} | |
.has-white { |
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 | |
//Paste the content below into your your child theme's functions.php file | |
//Do not past the <?php above | |
//This is your function name | |
function my_woo_custom_fields() { | |
//this stops PHP, so we can work in HTML | |
//replace text_field with your field | |
?> |
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 | |
/* | |
* Query posts for a relationship value. | |
* This method uses the meta_query LIKE to match the string "123" to the database value a:1:{i:0;s:3:"123";} (serialized array) | |
*/ | |
$args = array( | |
'post_type' => 'doctor', | |
'posts_per_page' => 10, |
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 | |
// copy below to child theme's functions.php or Code Snippets plugin. Do not need leading <?php above | |
/*-------------------------------------------------------*/ | |
/* Creating Shortcode for Navigation Loop | |
/* Requires https://wordpress.org/plugins/loop-post-navigation-links/ | |
/* Place [loop_post_nav] shortcode in Shortcode widget in Elementor Single Post Template | |
/*-------------------------------------------------------*/ | |
function loop_nav() { |
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 | |
//Info about custom query filters: | |
//https://developers.elementor.com/custom-query-filter/ combined with | |
// https://www.advancedcustomfields.com/resources/date-time-picker/ | |
// The query ID goes in the Elementor Query under the Query area of the post list widget (see screenshot). |
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 | |
// Set your ACF Image field output to array in ACF Field Group | |
function my_tax_grid() { | |
$terms = get_terms( array( | |
'taxonomy' => 'my_taxonomy', // Swap in your custom taxonomy name | |
'hide_empty' => true, | |
'orderby' => 'name', | |
'order' => 'DESC' | |
)); |
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
/* Add to Appearance > Customize > Custom CSS or your child theme's style.css file to bring back the Elementor WooCommerce product grid layouts | |
These were removed in Elementor Pro 3.3.3. Is fixed in Elementor Pro 3.3.4. */ | |
@media (min-width: 1025px) { | |
.elementor-element.elementor-products-grid ul.products.columns-2 { | |
grid-template-columns: repeat(2, 1fr); } | |
.elementor-element.elementor-products-grid .woocommerce.columns-2 ul.products { | |
grid-template-columns: repeat(2, 1fr); } | |
.elementor-element.elementor-products-grid ul.products.columns-3 { | |
grid-template-columns: repeat(3, 1fr); } |
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 | |
// Don't copy the php start code above. Copy from below. | |
// This uses the Elementor Custom Query Documentation for extending a post query: | |
// https://developers.elementor.com/custom-query-filter/ | |
// This sorts the Elementor posts widget by an ACF date field. | |
// Replace my_acf_date_field with your date field. | |
// Put event_filter in the Query ID field of the Elementor Post widget. | |
add_action( 'elementor/query/event_filter', function( $query ) { |
OlderNewer