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
| // Uses the add_meta_boxes_{post_type} hook for given post type | |
| // change page in hook to your post type where you want this to happen | |
| add_action( 'add_meta_boxes_page', 'page_default_content' ); | |
| function page_default_content( WP_Post $page ) { | |
| // Add the meta data fields you want the custom post type to grab | |
| $page_meta_data = [ | |
| '_fl_builder_enabled', | |
| '_fl_builder_data_settings', |
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
| // Adapted from http://stackoverflow.com/questions/30293784/smooth-scroll-to-anchor-after-loading-new-page | |
| NERD.ScrollToHashFix = { | |
| init: function () { | |
| // to top right away | |
| if ( window.location.hash ) scroll(0,0); // void some browsers issue | |
| setTimeout( function() { scroll(0,0); }, 1); | |
| $(function() { | |
| // *only* if we have anchor on the url and if it exists on the 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
| .wrapper.is_stuck { transition: font-size 500ms ease; font-size: 90%; transition: height 500ms ease;} | |
| .wrapper.is_stuck .block { transition: height 500ms ease;} | |
| .wrapper.is_stuck .block .nav-horizontal ul.menu > li > a { line-height: 50px; transition: all 500ms ease; } | |
| .wrapper.is_stuck .block-type-header span.banner a {font-size: 150%; transition: all 500ms ease;} |
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
| .wrapper.is_stuck { transition: font-size 500ms ease; font-size: 80%; transition: height 500ms ease;} | |
| .wrapper.is_stuck .block { transition: height 500ms ease;} | |
| .wrapper.is_stuck .block .nav-horizontal ul.menu > li > a { line-height: 50px; transition: all 500ms ease; } | |
| .wrapper.is_stuck .block a > img{ transform: scale(.5); transition: all 500ms ease;} |
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 .footer-widgets {background: #222;} /* sets background color for footer widgets class. assign this in the config tab | |
| of wrapper or block options */ | |
| .custom .footer-widgets table#wp-calendar caption {color: #fff;} /* sets the calendar title to white */ | |
| .custom .footer-widgets table#wp-calendar tr th {color: #e6e6e6;} /* sets the table headings to grey */ | |
| .custom .footer-widgets table#wp-calendar tr td {color: #e6e6e6;} /* sets the table conents to grey */ | |
| .custom .footer-widgets table#wp-calendar tr td#today {color: red;} /* sets the highlighted day (today) to red */ |
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
| <script src="//use.typekit.net/one3gcz.js"></script> | |
| <script>try{Typekit.load();}catch(e){}</script> |
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
| © Headway Themes <script>document.write(new Date().getFullYear())</script>. All Rights Reserved. |
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
| © Headway Themes <?php echo date('Y');?>. All Rights Reserved. |
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
| /* --- FEATURED IMAGES - ABOVE TITLE --- */ | |
| .custom a.post-thumbnail-above-title {margin: -2rem -2rem 0 -2rem;} /* remove margins around featured image only */ | |
| .custom a.post-thumbnail-above-title > img {padding: 0; border: 0;} /* remove padding around featured image only */ | |
| .custom a.post-thumbnail-above-title ~ header {margin-top: 3%;} /* put space between featured image and post 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
| <?php | |
| if(is_page('portfolio')) { | |
| echo ' | |
| <script type="text/javascript"> | |
| jQuery(document).ready(function($){ | |
| $(".hide").click(function(){ | |
| $(".hide").hide(); | |
| }); | |
| }); | |
| </script> |
NewerOlder