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
// fluidly resize type | |
// based on example here https://css-tricks.com/snippets/css/fluid-typography/ | |
@mixin fluid-type($font-min, $font-max, $screen-min, $screen-max) { | |
font-size: #{$font-min}px; | |
@media only screen and (min-width: #{$screen-min}px) { | |
font-size: calc( | |
#{$font-min}px + #{($font-max - $font-min)} * (100vw - #{$screen-min}px) / (#{$screen-max} - #{$screen-min}) | |
); | |
} |
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
/* | |
Add this code to the Avada Custom CSS. | |
Add the class "equal-height" to your Content Boxes Options container, not a single Content Box. | |
The editor preview will not show the change but reload the live page to see the results. | |
*/ | |
.fusion-content-boxes.equal-height { | |
display: flex; | |
align-items: stretch; | |
flex-wrap: wrap; |
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
/** | |
* Prevent update notification for plugin | |
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/ | |
* Place in theme functions.php or at bottom of wp-config.php | |
*/ | |
function disable_plugin_updates( $value ) { | |
if ( isset($value) && is_object($value) ) { | |
if ( isset( $value->response['plugin-folder/plugin.php'] ) ) { | |
unset( $value->response['plugin-folder/plugin.php'] ); | |
} |
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
javascript: (() => { let style = document.createElement("style"); style.innerHTML = ` .a3s table { width: 90% !important; } .a3s img { max-width: 90% !important; height: auto !important; } tr:has(.ast) { display: none !important; } `; document.head.appendChild(style);})(); |
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
/** | |
* Change admin color scheme for specific users based on the environment type. Overrides user selection. | |
* Color scheme options: fresh, light, modern, blue, midnight, sunrise, ectoplasm, ocean, coffee | |
*/ | |
add_filter( | |
'admin_init', | |
function () { | |
$user_ids = array( 1 ); // Array of user IDs | |
$current_user_id = get_current_user_id(); |
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
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\" |
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
// Function to create an optimized svg url | |
// http://codepen.io/jakob-e/pen/doMoML | |
@function svg-url($svg) { | |
// Chunk up string in order to avoid "stack level too deep" error | |
$encoded: ''; | |
$slice: 2000; | |
$index: 0; | |
$loops: ceil(str-length($svg)/$slice); | |
@for $i from 1 through $loops { | |
$chunk: str-slice($svg, $index, $index + $slice - 1); |
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 | |
/** | |
* Setup development environment by manipulating plugin activation | |
* Replace the dev URLs and plugin paths accordingly | |
*/ | |
function mysite_development_environment_setup() { | |
// define the development sites | |
$dev_envs = array( | |
'http://localhost:8888', |
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
<!-- From https://www.tpgi.com/subheadings-subtitles-alternative-titles-and-taglines-in-html/ --> | |
<hgroup role="group" aria-roledescription="Heading group"> | |
<p aria-roledescription="subtitle">Subtitle 1</p> | |
<h1>Title</h1> | |
<p aria-roledescription="subtitle">Subtitle 2</p> | |
</hgroup> |
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
add_action( 'after_setup_theme', function() { | |
// remove admin bar margin | |
add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) ); | |
} ); |
NewerOlder