WordPress 4.3 made Swatcher start acting a bit weird so it was time to get some fixes and upgrades in place.

  • Kirki has been upgraded to the latest version as of today 9/15/2015. This fixed a bunch of broken style issues inside the theme customizer. – GitHub Link
  • Empty object error has been fixed. We were adding priority to the built in Nav Section but apparently this was changed in WordPress 4.3 as it was no longer an available section identifier. This could be a conflict with Kirki or just some undocumented changes. I couldn’t find anything about it from WordPress.org. In the end we were trying to assign priority to something that didn’t exist. As a result the Navigation section is no longer toward the top and is down toward the bottom and labeled, “Menus.”

Upgrade v1.3 – v1.4 Paths

ALWAYS MAKE A BACK UP BEFORE YOU DO ANYTHING!

Re-Download your purchased Swatcher child theme from DevDm

… and copy the files over your current version. Be careful if you have made any changes. I worry particularly about people forgetting to back up their style.css file. So please be careful.

You can re-download Swatcher if you made an account on DevDm.com. If you didn’t make an account just shoot me an email with enough details that I can match you to a purchase and I will send you the new package. danny@devdm.com

Manual Upgrade with Kirki files and changing the file /customizer/customizer.php

If you want to manually fix your Swatcher theme as you have made too many customizations or don’t want to take any risk you can follow the steps below.

  1. Download a copy of the Kirki master branch from GitHub https://github.com/aristath/kirki
  2. Copy the assets, includes and languages directories into the includes/kirki/ directory in the Swatcher theme. Then copy the file kirki.php into the same directory. I attatched a screen shot below of what you will grab from the downloaded zip of the master branch to copy over.

kirki

 

3.    Update the file devdmbootstrap3-swatcher/customizer/customizer.php

You are going to remove 1 line from the top.

$wp_customize->get_section( ‘title_tagline’)->priority = ’10’;
$wp_customize->get_section( ‘nav’)->priority = ‘2’; <- delete this line
$wp_customize->get_section( ‘colors’)->priority = ‘4.1’;
$wp_customize->get_section( ‘header_image’)->priority = ‘4’;
$wp_customize->get_section( ‘background_image’)->priority = ‘4’;

4.     Upload your new customizer.php file and you are Done.

Contact me or leave a comment if you need any help. Thanks!

September 15th, 2015

Posted In: News

Leave a Reply

Your email address will not be published. Required fields are marked *