Debugging Generator errors with Shifter Local

Documentation for Shifter-Local is found on Github. It’s a project we created to help Shifter users test their themes, plugins and sites locally before migrating online. Some plugins or coding practices create errors that can cause the Generator to hang or error out. Shifter-Local can help you identify those issues so you can resolve them, […]

Detecting generator’s access on it’s creating artifacts

Shifter Static will access your site with User-Agent of ShifterGenerator/{version} when it’s creating artifact. You can detect WordPress is running, or Shifter is generating artifact with using this User-Agent. For example, you can set function $_SERVER[‘HTTP_USER_AGENT’] which contains above User-Agent, on PHP scripts. if ( isset($_SERVER[‘HTTP_USER_AGENT’]) && strpos($_SERVER[‘HTTP_USER_AGENT’],’ShifterGenerator’) !== false ) { // some processes […]

Appending URLs to the artifacts

Shifter now supports appending URLs on your How to apply Insert following filter to functions.php on your theme. Code add_filter( ‘ShifterURLS::AppendURLtoAll’, ‘my_append_urls’ ); Limitations URLs should be contained in WordPress (Shifter wont fetch external URLs) URLs should be end with slash (tailing slash) or allowed listed suffix. URLs will be generated with /index.html. Content-Type will […]

Accessing Shifter Static site on the subdirectory through a reverse proxy on own server

Goal Make visitors access to the contents in the subdirectory on the Shifter website through the external server (e.g. EC2) with the domain name (e.g. example.com). Forwarding access to Structure External server: https://www.example.com Shifter (※): https://abc123.on.getshifter.io/subdir/ ※ Subdirectory Setting is enabled, subdir is the name of the target subdirectory. Requirements URL of Shifter site (e.g. […]

How to start up Shifter Headless WordPress

Start up Shifter Headless WordPress 1. Login to Shifter Headless dashboard https://go.getshifter.io/admin/headless/ 2. Click “Headless” 3. Click your Headless site icon 4. Click [Start] button 5. Booting WordPress 6. Running 7. You can access WordPress dashboard with initial credentials if you haven’t changed them. If you have changed them, use updated. That’s all.

Exporting data from Shifter Headless

Some notifications for exporting data from Shifter Headless Shifter Headless can export SQL data SQL data will contain posts pages taxonomies other data on the database. Shifter Headless can not export following data: All of WordPress files which contains plugins, themes All of media files which are managed by Shifter Media CDN Exporting Media You […]

Importing migration data to Shifter Headless

Content Exporting data from your current WordPress site Importing data to Shifter Headless Site Notes Shifter Headless only accept SQL data (Post, Page or other content) for data migration. Exporting data We recommend using All-in-One WP Migration to migrate data. 1. Navigate to WordPress dashboard 2. Add filter to exclude some directories Directories should be […]

Changing site language of WordPress

Default site wide languages is English (United States), you can change it at anytime. How to change site wide language 1. Login to Shifter Headless dashboard https://go.getshifter.io/admin/headless/ 2. Start WordPress (if you stopped it) 3. Login to WordPress dashboard and navigate to [Settings] ==> [General] 4. Confirm current Site Language English (United States) is default. […]

Enable debug mode on Shifter

Debug mode is a useful tool for troubleshooting and developing WordPress sites. This mode is so useful that it is enabled by default on Shifter-local, and we recommend debugging with it.As the official WordPress support document states, modifying wp-config.php is typically required to enable debug mode on WordPress. However, if you would like to use […]