Skip to content

Instantly share code, notes, and snippets.

@CaleyWalsh
CaleyWalsh / CSS-gradient-overlay.css
Created December 20, 2024 02:36 — forked from ccurtin/CSS-gradient-overlay.css
Gradient overlay CSS w/ using pseudo element.
div:before {
content: "";
position: absolute;
background: -webkit-linear-gradient(350deg, rgba(49, 27, 146, .8) 35%, rgba(125, 38, 205, .75));
background: linear-gradient(350deg, rgba(49, 27, 146, .8) 35%, rgba(125, 38, 205, .75));
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
@CaleyWalsh
CaleyWalsh / README.md
Created November 18, 2024 19:11 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@CaleyWalsh
CaleyWalsh / styles.css
Created March 22, 2022 14:54 — forked from zackpyle/styles.css
Starter CSS
/** TABLE OF CONTENTS
---------------------------------------------------------------------------/
1.0 - Global Styles
1.1 - General
1.2 - Selection Highlight
1.3 - Buttons
1.4 - Typography
1.5 - Custom Font Face
@CaleyWalsh
CaleyWalsh / wp-remove-gutenberg-block-library-css.php
Created October 18, 2021 17:47 — forked from someguy9/wp-remove-gutenberg-block-library-css.php
Removed the "/wp-includes/css/dist/block-library/style.min.css" file from your WordPress site
<?php
//Remove Gutenberg Block Library CSS from loading on the frontend
function smartwp_remove_wp_block_library_css(){
wp_dequeue_style( 'wp-block-library' );
wp_dequeue_style( 'wp-block-library-theme' );
wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS
}
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 );
@CaleyWalsh
CaleyWalsh / functions.php
Created November 12, 2020 15:06 — forked from grantambrose/functions.php
Create a custom Coming Soon page with Beaver Builder
// add a custom Coming Soon page
add_action( 'template_redirect', 'my_custom_coming_soon' );
function my_custom_coming_soon() {
if( !is_user_logged_in() && !is_page( 'coming-soon' ) ){
wp_redirect( site_url( 'coming-soon' ) );
exit();
}
}
@CaleyWalsh
CaleyWalsh / wp-config.php
Last active February 1, 2024 20:19 — forked from nathaningram/wp-config.php
Sample wp-config.php File for Page Builder Summit
<?php
/* MySQL Settings */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8mb4' );
$table_prefix = 'wp_';
@CaleyWalsh
CaleyWalsh / functions.php
Last active December 24, 2021 15:34
Year Shortcode
/**
* Year shortcode
*/
function year_shortcode() {
$year = date('Y');
return $year;
}
add_shortcode('year', 'year_shortcode');