Skip to content

Instantly share code, notes, and snippets.

View digisavvy's full-sized avatar

Alex Vasquez digisavvy

View GitHub Profile
.uael-woo-products-summary-wrap {
display: flex;
flex-direction: column;
align-content: baseline;
margin: auto;
min-height: 265px;
justify-content: space-between;
}
// Place in Functions.php or a plugin
function year_shortcode() {
$year = date('Y');
return $year;
}
add_shortcode('year', 'year_shortcode');
<?php
function dgs_preload_font() {
?>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-light.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-medium.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-light-italic.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-semibold.woff2" as="font" type="font/woff2" crossorigin>
<?php }
<?php
/**
* The main archive template file
*
* @package kadence
*/
/**
* Step 1 - Duplicate index.php in the parent kadence theme and copy it to your child theme
* Step 2 - In your child theme, rename the index file to archive-{post-type-slug}.php where post type slug is your custom post type slug.
<a class="kt-blocks-post-readmore" href="https://example.com/">View Profile <span class="screen-reader-text">of Griffen Stapp</span></a>
name: Pantheon Terminus Deploy to Members Branch
# Controls when the action will run.
on:
push:
branches:
- 'members'
jobs:
build:
h1 {
margin: 0 8px 16px;
font-size: 3.625rem;
line-height: 64px;
color: #fff;
letter-spacing: 2px;
font-weight: 900;
-webkit-text-stroke: 2px;
-webkit-text-stroke-color: #000;
text-shadow: -1p
@digisavvy
digisavvy / Pantheon - Use Terminus and WP CLI to update user password.txt
Created January 9, 2021 23:27
Update existing WP user password in Terminus using WP CLI
terminus auth:login --machine-token={your_machine_token}
terminus wp {sitename}.{env} -- user update {userID} --user_pass={enterStrongPassword}
/**
* Add Custom Variable
*/
add_action( 'fue_before_variable_replacements', 'fue_register_variable_replacements', 10, 4);
function fue_register_variable_replacements( $var, $email_data, $fue_email, $queue_item ) {
$variables = array(
'tracking_number' => ''
);
function fue_register_variable_replacements( $var, $email_data, $fue_email, $queue_item ) {
$variables = array(
'tracking_number' => ''
);
if ( isset( $email_data['test'] ) && $email_data['test'] ) {
$tracking = get_post_meta( $order_id, '_wc_acof_2', true );
$variables['tracking_number'] = "$tracking";