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
| /* jQuery */ | |
| $( document ).ready(function() { | |
| window.scroll(0,400); | |
| }); |
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
| /* Check if css file of slug name exists and if it does, include stylesheet for that slug */ | |
| function check_for_css() { | |
| global $post; | |
| $post_slug = $post->post_name; | |
| $filename = get_template_directory() . '/css/' . $post_slug . '.css'; | |
| if (file_exists($filename)) { | |
| echo '<link rel="stylesheet" id="' . $post_slug . '-css" href="' . get_template_directory_uri() . '/css/' . $post_slug . '.css" type="text/css" media="all" />'; | |
| } |
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 custom stylesheet into plugin admin. | |
| This method appends the plugin version number to the stylesheet for easy CSS cache busting. | |
| If your plugin is at version 1.0 the styesheet URL will look like this: | |
| https://example.com/wp-content/plugins/your-plugin/css/your-plugin-style.css?ver=1.0 | |
| Any time you update your plugin version number, the query string value will match it. | |
| */ | |
| function your_plugin_style() { |
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
| Using a regx search, search your file for... | |
| [\r\n]{2,} | |
| ...and replace with ... | |
| \n |
NewerOlder