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_filter( 'generate_google_font_display', function() { | |
| return 'swap'; | |
| } ); |
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
| { | |
| "__file": "wp_block", | |
| "title": "Pricing table", | |
| "content": "<!-- wp:generateblocks/container {\"uniqueId\":\"d1bb3ef9\",\"paddingTop\":\"0\",\"paddingRight\":\"20\",\"paddingLeft\":\"0\"} -->\n<div class=\"gb-container gb-container-d1bb3ef9\"><div class=\"gb-inside-container\"><!-- wp:generateblocks/grid {\"uniqueId\":\"28a352a0\",\"columns\":3,\"horizontalGap\":40} -->\n<div class=\"gb-grid-wrapper gb-grid-wrapper-28a352a0\"><!-- wp:generateblocks/container {\"uniqueId\":\"614c94ee\",\"isGrid\":true,\"gridId\":\"3ab20ff8\",\"width\":33.33,\"paddingTop\":\"0\",\"paddingRight\":\"0\",\"paddingBottom\":\"0\",\"paddingLeft\":\"0\",\"marginTop\":\"90\",\"marginTopMobile\":\"5\",\"gradient\":true,\"gradientDirection\":360,\"gradientColorOne\":\"#f3f3f3\",\"gradientColorTwo\":\"#f3f3f3\",\"gradientColorTwoOpacity\":0.5} -->\n<div class=\"gb-grid-column gb-grid-column-614c94ee\"><div class=\"gb-container gb-container-614c94ee\"><div class=\"gb-inside-container\"><!-- wp:generateblocks/headline {\"uniqueId\": |
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
| function enqueue_font_preload() { | |
| wp_enqueue_style('example-font-handle', 'https://domain.com/wp-content/font-file.woff2', array(), null); | |
| } | |
| add_action('wp_enqueue_scripts', 'enqueue_font_preload'); | |
| function style_loader_tag_filter_preload($html, $handle) { | |
| if($handle === 'example-font-handle') { | |
| $new_html = str_replace("text/css", "font/woff2", $html); | |
| return str_replace("rel='stylesheet'", "rel='preload' as='font' crossorigin='anonymous'", $new_html); | |
| } | |
| return $html; |
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
| if ( function_exists( 'yith_wishlist_install' ) ){ | |
| if ( ! function_exists( 'yith_wcwl_remove_awesome_stylesheet' ) ) { | |
| function yith_wcwl_remove_awesome_stylesheet() { | |
| wp_deregister_style( 'yith-wcwl-font-awesome' ); | |
| } |
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
| .nav-links .page-numbers:not(.next):not(.prev) { | |
| display: none; | |
| } |
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
| @media (min-width: 769px) { | |
| .site-content { | |
| display: flex; | |
| } | |
| .inside-right-sidebar { | |
| height: 100%; | |
| } | |
| .inside-right-sidebar aside:last-child { | |
| position: -webkit-sticky; | |
| position: sticky; |
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
| /*Progress bar CSS*/ | |
| .meter { | |
| height: 30px; | |
| position: relative; | |
| background: #f3efe6; | |
| border-radius:3px; | |
| overflow: hidden; | |
| margin: 5px 0 5px 0; | |
| } | |
| .meter span { |
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 no-lazy class to primary logo | |
| function wpd_generate_logo_output($output, $logo_url, $html_attr) { | |
| //add our no-lazy class | |
| $html_attr = str_replace('class="', 'class="no-lazy ', $html_attr); | |
| //logo output | |
| printf( | |
| '<div class="site-logo no-lazy"> | |
| <a href="%1$s" title="%2$s" rel="home"> |