Skip to content

Instantly share code, notes, and snippets.

View digisavvy's full-sized avatar

Alex Vasquez digisavvy

View GitHub Profile
@digisavvy
digisavvy / Responsive Table.html
Created February 12, 2023 02:39
A basic html table constructed of divs that uses CSS to set the layout rather than table, cell, table-row markup.
<!-- Table CSS -->
<style>
#resp-table {
width: 100%;
display: table;
}
#resp-table-caption{
display: table-caption;
@digisavvy
digisavvy / BricksForge CSS Framework.css
Created January 22, 2023 08:50
From BricksForge CSS Framework
:root {
--brf-color-primary: #14854F;
--brf-color-lightGrey: #d2d6dd;
--brf-color-grey: #747681;
--brf-color-darkGrey: #3f4144;
--brf-color-error: #d43939;
--brf-color-success: #28bd14;
--brf-grid-maxWidth: 120rem;
--brf-grid-gutter: 2rem;
--brf-font-size: 1.6rem;
.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}