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 to your plugin or functions.php file of your theme | |
// Source: https://gdgts.de/wordpress-youtube-embed/ | |
function youtube_add_nocookie( $cached_html, $url, $attr, $post_id ) { | |
if ( preg_match('#https?://(www\.)?youtu#i', $url) ) { | |
return preg_replace( | |
'#src=(["\'])(https?:)?//(www\.)?youtube\.com#i', | |
'src=$1$2//$3youtube-nocookie.com', | |
$cached_html | |
); |
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
<ion-header> | |
<ion-toolbar color="secondary" [class.show-background]="showToolbar"> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-buttons slot="end"> | |
<ion-button> | |
<ion-icon slot="icon-only" name="logo-facebook"></ion-icon> | |
</ion-button> |
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
:root { | |
--ion-color-gold: #ffd700; | |
--ion-color-gold-rgb: 255, 215, 0; | |
--ion-color-gold-contrast: #000000; | |
--ion-color-gold-contrast-rgb: 0, 0, 0; | |
--ion-color-gold-shade: #e0bd00; | |
--ion-color-gold-tint: #ffdb1a; | |
} | |
.ion-color-gold { | |
--ion-color-base: var(--ion-color-gold) !important; |
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
// OLD | |
myRecipe.title = trimString($('.recipe__intro .page-title').text()); | |
// NEW | |
myRecipe.title = this.getText('.recipe__intro .page-title'); |