All Strattic sites come with a Strattic WordPress plugin with two main pages: Publish and Settings.
Publish – gives you options for Live and Preview Publishing from WordPress to your static site.
Settings – gives you various options for managing your WordPress site and how your static site is generated.
General Settings
Under general settings, we have options for controlling what user roles in WordPress have the ability to publish the static site.
Notice that you can control who publishes to the Live site and Preview site independently. Depending on your team you may want to grant only administrators the ability to publish the live static site.
Search Settings
Strattic will automatically replace the WordPress search on a site with the static supported Algolia search.
If you do not require search on your site, you can disable “Search Index.”
Taxonomy Search will add the ability to search within a category, tag, and taxonomy titles and descriptions.
By default, Strattic will generate your search results page to yoursite.com/search
. You can change this to a different URL if desired. You do not need to have a page in WordPress to match this URL.
The final setting will let you control the excerpt length for search results.
It is also possible to customize how search results are displayed. Please contact support for help with this if needed.
Forms Settings
At Strattic we have a custom forms API that enables certain WordPress contact form plugins to work on your static site. Currently, we support Contact Form 7 and Gravity Forms and Elementor Forms.
The Forms tab has settings for adding your own SMTP server settings, adding Google reCaptcha spam protection and connecting non-ajax forms to third party solutions.
Advanced Settings
The advanced settings tab has several options for how your site is optimized during the publishing process.
Publishing Actions
Stop Publish
When publishing, you can cancel a publish by clicking ‘Stop Publish’. Any content that has already been published by the current process will remain published.
Publishing Optimization
The next set of features, “Publishing Optimization,” gives you the opportunity to disable the creation of static pages for your attachments, various feeds, archives and embedded pages. Much of the time you can disable these and it will speed up the publishing time for your site.
Shortlinks can be disabled in advanced settings.
Shortlinks: refers to WordPress’s built-in feature that lets you shorten links. By default, these shortlinks wouldn’t work on Strattic because they use query parameters.
However, you could use a plugin like http://wordpress.org/plugins/shorten-url/ to shorten the URLs on your site. There are many URL shortener plugins in the WordPress repository. As long as the plugins are using the WordPress hook wp_get_shortlink( $post_id ) then they should work great on Strattic.
By default, Shortlinks is disabled in the Strattic settings in order to reduce your publish time, but if you would like to use a URL shortener plugin, you’ll need to enable the Shortlinks setting in Strattic’s Advanced Settings in order for the Short URLs to be included in the URLs that get sent for publishing.
Additional non-essential URLs
By disabling/unticking this setting, commonly unused static assets will not be published, this helps to reduce the publishing time.
Examples of what would be excluded;
-
Inactive theme files
-
Inactive plugins
-
WordPress admin assets
The final setting lets you add non-WordPress pages to be added to your static site. This feature is not generally needed.
Read more about “How to Optimize Your Site on Strattic.”