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 | |
/** | |
* Enqueue the JS file. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function clientname_styles_and_scripts() { |
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
/** | |
* Set Header Colour on pages based on first block's colour | |
* | |
* @link https://developer.wordpress.org/reference/functions/body_class/ | |
*/ | |
function cwce_header_body_classes( $classes ) { | |
// page header colours | |
if ( is_page() && !is_page( 'Blog' ) ) { |
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
/** | |
* Include variable for ImageDateTitle icon from core. Used in the Query Block Variation below | |
*/ | |
const external_wp_element_namespaceObject = window["wp"]["element"]; | |
const external_wp_components_namespaceObject = window["wp"]["components"]; | |
const imageDateTitle = (0, external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { | |
xmlns: "http://www.w3.org/2000/svg", | |
viewBox: "0 0 48 48" | |
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { |
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 | |
/** | |
* | |
* Template: customer-completed-order.php | |
* | |
* Customize the email to include a member card. | |
* | |
* @link https://businessbloomer.com/woocommerce-check-product-id-order/ | |
* | |
*/ |
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 $modalID = basename(get_permalink()); ?> | |
<div class="teamMember"> | |
<?php the_post_thumbnail('teamMember'); ?> | |
<h4><?php the_title(); ?></h4> | |
<a href="#<?php echo $modalID;?>"><?php _e('Read Bio', 'wp-theme-name'); ?></a> | |
<div class="remodal teamMemberBio" data-remodal-id="<?php echo $modalID;?>"> | |
<button data-remodal-action="close" class="remodal-close"></button> |
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
/** | |
* | |
* Register Line Sizes Taxonomy | |
* | |
**/ | |
function trends_line_sizes_taxonomy() { | |
$labels = array( | |
"name" => __( 'Line Sizes', 'trends'), |
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 | |
/** | |
* The WooCommerce Template | |
* | |
* This is the template that displays all WooCommerce pages by default. | |
* | |
* @package THEMENAME | |
*/ | |
get_header(); ?> |
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 // Reference: https://codex.wordpress.org/Conditional_Tags | |
// Use conditional PHP tags to ouput different content based on the template in use?> | |
<?php if ( is_page ) ) : // check if we are on a page ?> | |
<?php // code here for display on pages ?> | |
<?php else : // code below runs if we are NOT on a page ?> | |
<?php // code here displays on anything that is NOT a page ?> |
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 | |
$images = get_field('hero_home_images'); | |
if( $images ): | |
shuffle($images); // randomizes the image array | |
$max = 1; // set the max here; | |
$count = 0; // current count | |
?> | |
<?php | |
foreach( $images as $image ): | |
$count++; // increment count |
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
/* This will style the default page titles just like the category page titles */ | |
.page .entry-title { | |
font-size: 13px; | |
letter-spacing: 1px; | |
color: #ffffff; | |
background-color: #000000; | |
margin-bottom: 0px; | |
padding: 5px 0px; | |
text-align: center; |
NewerOlder