Skip to content
View chrisjangl's full-sized avatar
  • Wine Enthusiast, Digitally Cultured
  • NY
  • 04:57 (UTC -05:00)

Block or report chrisjangl

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. set-font-size set-font-size Public

    Quick and dirty script to set the font size for common elements from the front-end. Originally created to help designers & stake holders see what font sizes worked best from different sized screens.

    HTML 1

  2. WordPress: SQL query to find all pag... WordPress: SQL query to find all pages that use a certain page template. Can use WP CLI to run this query without have to log into cPanel/phpMyAdmin. Need to replace <wp_prefix_> & <page-template.php> to match your setup.
    1
    SELECT * FROM `<wp_prefix_>postmeta` WHERE `meta_key` LIKE '_wp_page_template' AND `meta_value` LIKE '<page-tempate.php>'
  3. WP CLI script to update active plugi... WP CLI script to update active plugins, and commit each update individually. 99% percent stolen from https://markjaquith.wordpress.com/2018/02/12/updating-plugins-using-git-and-wp-cli/, (ever so slightly) adapted to my own personal workflow
    1
    for plugin in $(wp plugin list --update=available --status=active --field=name);
    2
    do
    3
    	TITLE=$(wp plugin get $plugin --field=title)
    4
    	wp plugin update $plugin &&
    5
    	VERSION=$(wp plugin get $plugin --field=version)
  4. gitignore to track entire WP site. E... gitignore to track entire WP site. Excludes VS Code configs (.vscode/), my own local configs (info/), some common filetypes I find in projects I don't need to track, and some common BU/cache locations from popular plugins
    1
    .vscode/
    2
    .well-known/
    3
    info/
    4
    
                  
    5
    */*/error_log
  5. mailchimp-wp mailchimp-wp Public

    Forked from drewm/mailchimp-api

    Super-simple, minimum abstraction MailChimp API v3 wrapper, in PHP

    PHP

  6. .htaccess to host WordPress in a sub... .htaccess to host WordPress in a subdirectory. Some shared hosting won't let your primary domain be assigned to a subdirectory - this will help to get around that.
    1
    # replace <domainname> with your domain name
    2
    # replace <directoryname> with the name of the directory where WordPress is located
    3
    
                  
    4
    <IfModule mod_rewrite.c>
    5
    RewriteEngine on