This mix-in is a shortcut for the cumbersome @font-face
declaration.
It assumes that all font files are stored in the same directory and
share the same file name (e.g. font-name.eot
, font-name.woff
, etc.).
module.exports = function(grunt) { | |
grunt.registerTask('watch', [ 'watch' ]); | |
grunt.initConfig({ | |
uglify: { | |
options: { | |
mangle: true, | |
compress: true, | |
preserveComments: 'some' |
A relatively simple way to add responsive modal windows to a WordPress theme.
To install, add the JS/LESS to your child theme and drop the template in the root of your theme.
In the WordPress dashboard, create a new page and set it to the "Modal (Pop-Over)" template. Add any content here — HTML is allowed.
In the modal JS, set modal_window_uri
to the new page's path.
<?php | |
// Removes any local changes to avoid errors with the pull | |
shell_exec("git reset --hard HEAD >> ../logs/deploy.log 2>&1"); | |
// Pulls the latest changes from the develop branch | |
shell_exec("git pull -v origin develop >> ../logs/deploy.log 2>&1"); | |
shell_exec("git submodule init >> ../logs/deploy.log 2>&1"); | |
shell_exec("git submodule update >> ../logs/deploy.log 2>&1"); |
$ find . -type f -print | grep '.gitignore' | xargs grep -i 'yoast' # No results | |
$ git add wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php | |
The following paths are ignored by one of your .gitignore files: | |
wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php | |
Use -f if you really want to add them. | |
fatal: no files added |
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
Icon | |
Icon* |