This file contains 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
#Sample Directory Structure | |
# root (git repo) | |
# /(WordPress Site 1)/app/public/wp-content/themes | |
# /(WordPress Site 2)/app/public/wp-content/themes | |
# /(WordPress Site 3)/app/public/wp-content/themes | |
# Ignores everything in the site's directories except the `app/public` folder. | |
/*/* | |
!*/app | |
*/app/* |
This file contains 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
/* Hide Theme Editor Menu */ | |
function remove_editor_menu() { | |
remove_action('admin_menu', '_add_themes_utility_last', 101); | |
} | |
add_action('_admin_menu', 'remove_editor_menu', 1); | |
/* add to your themes funtions.php file to hide the theme editor menu option. | |
You can still access the editor from the url: http://mywebsite.com/wp-admin/theme-editor.php | |
*/ |
This file contains 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
/* Changing the Site URL for local testing */ | |
define('WP_HOME', 'http://mytestingurl.com'); | |
define('WP_SITEURL', 'http://mytestingurl.com'); | |
/* https://codex.wordpress.org/Changing_The_Site_URL */ |
This file contains 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
select { | |
-webkit-appearance: none; | |
-webkit-border-radius: 0px; | |
background: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='#444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>"); | |
background-color: #ffffff; | |
background-position: 100% 50%; | |
background-repeat: no-repeat; | |
} | |
/* You should use a more specific selector appropiate to your project |
This file contains 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
#back-to-top { | |
position: fixed; | |
bottom: 40px; | |
right: 40px; | |
z-index: 9999; | |
width: 32px; | |
height: 32px; | |
text-align: center; | |
line-height: 30px; | |
background: #f5f5f5; |
This file contains 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() { | |
$('a[href*="#"]:not([href="#"])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html, body').animate({ | |
scrollTop: target.offset().top | |
}, 2000, 'easeOutBack'); | |
return false; |
This file contains 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
.video-container { | |
position: relative; | |
padding-bottom: 75%; | |
padding-top: 25px; | |
overflow: hidden; | |
margin-bottom: 20px; | |
} | |
.video-container iframe { | |
position: absolute; |
NewerOlder