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
| // Enable shortcodes in widgets | |
| add_filter('widget_text', 'do_shortcode'); | |
| // Enable PHP in widgets | |
| // WARNING: Potential security vulnerability you open by enabling code execution from a widget! | |
| add_filter('widget_text','execute_php',100); | |
| function execute_php($html){ | |
| if(strpos($html,"<"."?php")!==false){ | |
| ob_start(); | |
| eval("?".">".$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
| <?php | |
| // Remove eNews and Updates widget | |
| add_action( 'widgets_init', 'remove_enews_updates_widget', 20 ); | |
| function remove_enews_updates_widget() { | |
| unregister_widget( 'Genesis_eNews_Updates' ); | |
| } | |
| // Remove Featured Page widget | |
| add_action( 'widgets_init', 'remove_featured_page_widget', 20 ); | |
| function remove_featured_page_widget() { | |
| unregister_widget( 'Genesis_Featured_Page' ); |
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
| /* applies to GIF and PNG images; avoids blurry edges */ | |
| img[src$=".gif"], img[src$=".png"] { | |
| image-rendering: -moz-crisp-edges; /* Firefox */ | |
| image-rendering: -o-crisp-edges; /* Opera */ | |
| image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */ | |
| image-rendering: crisp-edges; | |
| -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */ | |
| } | |
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
| .site-header { | |
| position: fixed; | |
| top: 0; | |
| transition: top 0.4s ease-in-out 0s; | |
| width: 100%; | |
| z-index:9999; | |
| } | |
| .site-header.nav-up { | |
| top: -80px; /*Adjust to your header height*/ |
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
| .custom-header .site-header { | |
| background-color: transparent; | |
| background-repeat: no-repeat; | |
| background-attachment: fixed; | |
| background-position: center center; | |
| -o-background-size: cover!important; | |
| -moz-background-size: cover!important; | |
| -webkit-background-size: cover!important; | |
| background-size: cover!important; | |
| } |
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
| $( '.front-page-5 .entry' ).each(function(i, el) { | |
| // As a side note, this === el. | |
| if ( i % 2 === 0 ) { | |
| /* we are even */ | |
| $(el).addClass( 'even' ); | |
| } | |
| else { | |
| /* we are odd */ | |
| $(el).addClass( 'odd' ); | |
| } |
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
| # ---------------------------------------------------------------------- | |
| # | Komprimierung und Caching | | |
| # ---------------------------------------------------------------------- | |
| # Serve resources with far-future expires headers. | |
| # | |
| # (!) If you don't control versioning with filename-based | |
| # cache busting, you should consider lowering the cache times | |
| # to something like one week. | |
| # |