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
| <IfModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/html text/css text/javascript | |
| </IfModule> |
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
| # ---------------------------------------------------------------------- | |
| # Webfont access | |
| # ---------------------------------------------------------------------- | |
| # allow access from all domains for webfonts | |
| # alternatively you could only whitelist | |
| # your subdomains like "sub.domain.com" | |
| <FilesMatch "\.(ttf|otf|eot|woff|fonts.css|style.css)$"> | |
| <IfModule mod_headers.c> |
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
| // store wrap div in a variable | |
| $container = $( "body" ); | |
| if ( $( "#special" ).length ) { | |
| // element where we will display the document width | |
| $documentWidth = $( '#curr_size' ); | |
| // display document width in the container | |
| $documentWidth.text( $container.width() + " px" ); |
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 | |
| /** | |
| * to body of one page | |
| * https://developer.wordpress.org/reference/functions/body_class/ | |
| **/ | |
| function svebal_custom_body_class_v1( $classes ) { | |
| if ( is_page( 'page-1' ) ) { | |
| $classes[] = 'own-class'; | |
| } |
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 | |
| // allow HTML tags in widget title | |
| function html_widget_title( $var) { | |
| $var = (str_replace( '[', '<', $var )); | |
| $var = (str_replace( ']', '>', $var )); | |
| return $var ; | |
| } | |
| add_filter( 'widget_title', 'html_widget_title' ); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| body{ | |
| background: #fff; | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| body{ | |
| background: #fff; | |
| } |
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
| /* | |
| * CSS File of Material icons. | |
| * CSS code based on: | |
| * https://google.github.io/material-design-icons/#icon-font-for-the-web | |
| */ | |
| /* Use the font | |
| * download the font files from here: https://github.com/google/material-design-icons/tree/master/iconfont | |
| * replace the url with your path | |
| */ |