For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
This file contains hidden or 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
| 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; |
This file contains hidden or 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
| /** 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 |
This file contains hidden or 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 | |
| //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 ); |
This file contains hidden or 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 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(); | |
| } | |
| } |
This file contains hidden or 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 | |
| /* 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_'; |
This file contains hidden or 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
| /** | |
| * Year shortcode | |
| */ | |
| function year_shortcode() { | |
| $year = date('Y'); | |
| return $year; | |
| } | |
| add_shortcode('year', 'year_shortcode'); |