Skip to content

Instantly share code, notes, and snippets.

🔥

Mike Burns mgburns

🔥
Block or report user

Report or block mgburns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mgburns
mgburns / acf-field-registration-example.php
Created Sep 1, 2015
Example programmatic registration of Advanced Custom Fields fields
View acf-field-registration-example.php
<?php
/**
* Example programmatic registration of Advanced Custom Fields fields
*
* @see http://www.advancedcustomfields.com/resources/register-fields-via-php/
*/
function register_custom_acf_fields() {
if ( function_exists( 'acf_add_local_field_group' ) ) {
View m180317_193559_add_contact_page.php
<?php
namespace craft\contentmigrations;
use Craft;
use craft\base\Field;
use craft\elements\Entry;
use craft\models\Section;
use craft\models\Section_SiteSettings;
use craft\db\Migration;
View m180317_193558_add_home_page.php
<?php
namespace craft\contentmigrations;
use Craft;
use craft\base\Field;
use craft\elements\Entry;
use craft\models\Section;
use craft\models\Section_SiteSettings;
use craft\db\Migration;
View Craft 3 Image Transform Issues.md

Problem

Attempting to create an image transform that crops an image, using the upper right hand portion of the image.

Steps To Recreate

  1. Set up a image transform with Mode set to Crop and Focal Point set to Top-Right

Craft Admin - Image Transform

  1. Used this transform in my template
@mgburns
mgburns / bu-versions-wp-seo.php
Last active Jan 3, 2016
Adds support for post excerpt and WordPress SEO meta fields to alternate versions
View bu-versions-wp-seo.php
<?php
/*
Plugin Name: BU Versions - WordPress SEO Support
Description: Adds support for post excerpt and WordPress SEO meta fields to alternate versions
*/
/**
* Required as the WordPress SEO plugin doesn't use post type support, and BU Versions requires it.
*/
function wpseo_feature_support() {
You can’t perform that action at this time.