Skip to content

Instantly share code, notes, and snippets.

@igorbenic
igorbenic / disable-theme-comments.php
Last active February 21, 2024 21:34
Simple Feature Requests & GeneratePress snippets
<?php
add_action( 'jck_sfr_after_single_loop', 'jck_disable_theme_comments');
/**
* Disable the default theme comments form by disabling comments after the plugin comments form is rendered.
*/
function jck_disable_theme_comments() {
add_filter( 'comments_open', function( $open, $post_id ) {
if ( 'cpt_feature_requests' === get_post_type( $post_id ) ) {
@jordan8037310
jordan8037310 / jryan-mac-config.sh
Created September 28, 2016 04:00
Shell Script to install and configure all apps for Mac OS X clean installs
#!/binbash
# firsrun (Uncomment):
install xcode-cli-tools
xcode-select --install
# install homebrew (Uncomment)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install caskroom
@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active July 15, 2024 23:48
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }