We have a site that does automated tasks using GPU processing however at times we use the GPU processing for other tasks which requires us to disable access to the public. The easiest way to do this is to install a WordPress maintenance mode type plugin that will allow you to easily disable access to the public but not require much work. Having a site in maintenance mode is also beneficial for any major site changes that may prevent a bad customer experience when visiting your WP site. Below are instructions on installing the WP Maintenance Mode plugin as well as information on putting your site in maintenance mode and bringing it out of maintenance mode.
I had been using the default page templates on a development installation of WordPress which is a direct copy of another WordPress installation. During the process of editing some pages I decided I wanted to try a couple different types of page templates. The templates were exact copies of the default page view but with one line of code modified such as not displaying the title of a page.
In the process of creating a mirror image of a current WordPress to be used for development purposes I ran into a PHP error that I had not seen before. The current version of WordPress was working without issue but because many of the settings needed to be modified for the installation to work with a different domain pointed to it. Even after modifying the settings that I had modified in previous instances to make WordPress work with an updated domain name I was still getting an error related to the WordPress Theme. I enabled some PHP error logging, started looking for answers on the web, and then implemented some changes described below to resolve the error.
Installing ZenCart design templates is easy. I ended up installing one tonight and wanted to note the location of some ZenCart templates as well as how easy it is to install the templates. ZenCart provides a great foundation for an ecommerce store which will allow you to customize any way you like. One thing that is very important from the beginning is the way you should go about customizing ZenCart. If done properly you will be able to keep your software up to date however if you start modifying any file in any location without proper notes then upgrading in the future will be near impossible. Instead of modifying the default ZenCart template you should copy all of the template files into another directory and modify this new group of files so you always have a solid ZenCart base.
Install a ZenCart Template:
A Zen Cart sidebox is what displays various items in the side columns of your Zen Cart store. By default numerous sideboxes will show in either the left or right column of a Zen Cart online store for instance the categories sidebox, the search sidebox, and the information sidebox. Adding a new sidebox to Zen Cart can be completed in a few quick steps. You will need access to the server to add and modify files.
Add a Zen Cart Sidebox:
- Create Sidebox Template:Add a new file to the server in the following directory: zen-cart-root/includes/templates/template-name/sideboxes/. You should name the file something relating to the contents of the sidebox. In this example we will be adding a welcome message sidebox so we might name the file tpl_welcome.php. The contents of the file will include what you want to display in the box and will be in a $content variable. Below is an example of the contents of the file if you wanted it to just display a message like “Welcome to my store”.
- < ?php
- * Side Box Template
- $content = 'Welcome to my store.';