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 web_vitals( ){ | |
// The Data (LCP, CLS and FID) collected by web-vitals.js are not sent to Google Analytics but display on console tab. | |
//You will only see it if you're login user | |
if ( is_user_logged_in() ){ | |
?> | |
<script type="module"> | |
import {getCLS, getFID, getLCP} from 'https://unpkg.com/web-vitals?module'; | |
getCLS(console.log); | |
getFID(console.log); | |
getLCP(console.log); |
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
<script type="module"> | |
// Load the web-vitals library from unpkg.com (or host locally): | |
import {getFCP, getLCP, getCLS, getTTFB, getFID} from 'https://unpkg.com/web-vitals?module'; | |
function getSelector(node, maxLen = 100) { | |
let sel = ''; | |
try { | |
while (node && node.nodeType !== 9) { | |
const part = node.id ? '#' + node.id : node.nodeName.toLowerCase() + ( | |
(node.className && node.className.length) ? |
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
/* | |
* Transparent to sticky header | |
* | |
*/ | |
.sticky-header{ | |
background-color: transparent!Important; | |
padding: 2% 0; | |
transition: | |
background-color 300ms linear, |
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
/** | |
* This PHP will load only on blog post | |
*/ | |
function add_this() { | |
if( is_single ( ) ) { | |
?> | |
/** | |
* Follow this step: | |
* #1 - visit the link -http://prntscr.com/u7ukyw |
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
/** | |
* This PHP will load on every page and post | |
*/ | |
function add_this() { | |
?> | |
/** | |
* Follow this step: | |
* #1 - visit the link -http://prntscr.com/u7ukyw | |
* #2 - Add this src - http://prntscr.com/u7ul9j |
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
.elementor-sticky--effects .site--logo .elementor-image img { | |
width: 55%; /* adjust your width*/ | |
} |
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
.site--logo .elementor-image img{ | |
width:60%; | |
transition:width .3s ease-in-out; | |
} |
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
.elementor-sticky--effects.header--display{ | |
background: #fbfbfb; | |
padding: 1% 0; | |
} |
NewerOlder