Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
<?php | |
// General info | |
https://codex.wordpress.org/Theme_Development | |
// Core info | |
https://wp-learner.com/wotdpress-development/wordpress-core-files-and-functions/ | |
// Theme Handbook | |
https://developer.wordpress.org/themes/ |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
<?php | |
/** | |
* Polylang Shortcode - https://wordpress.org/plugins/polylang/ | |
* Add this code in your functions.php | |
* Put shortcode [polylang_langswitcher] to post/page for display flags | |
* | |
* @return string | |
*/ | |
function custom_polylang_langswitcher() { | |
$output = ''; |
name: wordpress | |
recipe: wordpress | |
services: | |
appserver: | |
webroot: . | |
xdebug: debug | |
config: | |
php: .vscode/php.ini | |
tooling: | |
install:wordpress: |
Barba.js is a library using pushState
and AJAX allowing websites to load pages asynchronously while still maintaining browser states and history.
Combining it with some JavaScript animations libraries can help craft some memorable browsing experiences.
In this guide, we will try to find an optimal way to integrate Barba with our beloved Sage theme !
<?php | |
/** | |
* Yoast Schema: Remove datePublished on WebPage | |
* | |
* @param array $schema | |
* | |
* @return mixed | |
*/ | |
function custom_wpseo_schema_webpage( $schema ) { |