Footer Year

Add the Footer Year to Any site

Found this little trick recently to auto update the year in your footer:

Add this to functions:

					 

/* Renders current year */ 
function display_current_year() {
    return date('Y');
}
add_shortcode('current_year', 'display_current_year');

				

Put this shortcode where you want the year to show up:

[current_year]

 

Give Editors Access to Gravity Forms

How to Allow Editors to Edit Gravity Forms

Gravity Forms is a premium WordPress plugin that allows sites to create custom forms to receive better feedback from their customers. By default only WordPress Admins have access to this plugin. That’s not practical when there are multiple editor accounts using the site.

In order to give editors access the following code will need to be added to the sites functions.php file. Using a child theme is ideal but not required for this step to work.

					

[php]/* make gravity forms available to Editor role */
function add_gf_cap()
{
$role = get_role( ‘editor’ );
$role->add_cap( ‘gform_full_access’ );
}

add_action( ‘admin_init’, ‘add_gf_cap’ );

[/php]

				

Importing Elementor content to XML

Importing Elementor content to XML

Importing Elementor content to XML

In visual composer you can convert the entire page to shortcode and copy that to new pages to duplicate content. In Elementor things are different. But there is a way to do it using XML imports.

Follow the steps from this artbees link and you can copy over entire websites from a testing environment quickly. (Don’t forget to re-upload missing images.)

https://themes.artbees.net/docs/importing-a-page-from-template/

Related Posts

Related Posts

Server Rewind on A2Hosting

Server Rewind on A2Hosting

Server Rewind on A2Hosting

Server Rewind through cPanel on A2 Hosting

  1. To restore files using Server Rewind, follow these steps:
  2. Log in to cPanel.
  3. If you do not know how to log in to your cPanel account, please see this article.
  4. In the FILES section of the cPanel home screen, click Server Rewind:
  5. cPanel – Server Rewind icon
  6. Select the date that contains the version of the file or files that you want to restore. To expand a date, click the + icon.
  7. Navigate to the file or files that you want to restore. To expand a directory, click the + icon. You can select an entire directory, or specific files to restore.
  8. Under Options, select the Overwrite existing files check box to overwrite existing files with the restored files.
  9. Click restore!

Full List of Server Rewind Features (including databases) >

Note: I enabled display PHP errors under the PHP selector in cPanel and this allowed the site to display the actual errors instead of the generic 500 error message.

Related Posts

Related Posts

Update MX Records for Gmail

Update MX Records for Gmail

Update MX Records for Gmail

Update Bluehost MX records if email breaks

Recently our Velare Systems emails broke. We recently closed our Bluehost hosting accounts down and moved them to A2 Hosting. We forgot to update the MX records for our Velare Systems Gmail account. Below are the steps on how to do that.

Step 1: Login to Bluehost – Click Domains > Zone Editor
Here you will be able to add different record types. For this make sure MX records are selected in the type field.

Step 2: Add Google MX Records – Google has 5 records to add. Here is the list. If you need to add records for other domain hosts follow this list.

Step 3: Wait 4 hours for propagation – You can click this link to see if the record has been added. Just type in velaresystems.com and make sure MX is selected. Bluehost said it takes 4 hours and Google said it takes 24 hours for the email to be at 100%.

Related Posts

Related Posts

WordPress Checklist

WordPress Checklist

WordPress Checklist

Install / Configure WordPress

  1. Use the installer package located here. Use this video to install
  2. Follow instructions to remove install files, and cache from Duplicator instance
  3. Install theme through Envato plugin, update plugins

Configure

    1. Create backups with BackWPup plugin using Amazon Glacier option
    • First Tab – Frequency of backups to twice a week (e.g. Sunday & Wednesday)
    • Use the AWS Keys from the Velare Logins Sheet, and create a vault e.g. ‘Conrad-Backup’
    • Amazon Glacier Tab – Choose US West (Oregon), File deletion set to 30
    1. Create Analytics account and copy tracking code to theme options. Share account to Velare users
    1. Link website to Google Webmasters
    2. Configure Call Now plugin with clients phone number
    3. Configure Jetpack plugin & connect to WordPress.com account, enable auto plugin updates
    4. Disable/delete any unnecessary plugins (plugins add to loading times)
    5. Use Ewww Image Optimizer plugin and run bulk image optimization Media > Bulk Optimization

Launch

    1. Before launching, make sure to create a sitemap of the old site and configure .htaccess redirects (only for redesigned sites)
    2. Save MX files from DNS Zone Editor and make sure once domain has been assigned that MX files are the same.
    3. Configure DNS if necessary
    4. Update WP domain settings, and update index.php and .htaccess to point to a subdirectory.
    5. UNCHECK ‘Discourage search engines from indexing this site’ Settings > Reading
    6. Configure W3 total cache, enable page caching, browser caching & create Amazon Cloudfront distribution (using AWS keys located in Velare Logins doc). Run before and after benchmarks on PageSpeed. (ideally we want mobile in at least yellow and desktop in the green)
    • Note: CloudFront distribution can be created inside W3 Cache plugin but must be fully initialized or the site will break. Wait 10 minutes then enable the CDN
    • Check all links manually and use Broken Links checker plugin

Related Posts

Related Posts

Duplicate WordPress Website

Duplicate WordPress Website

Duplicate WordPress Website

Create Package

  1. Deactivate and delete any caching plugins such as W3 Cache & Autoptimize
  2. In the Dashboard, Click Duplicator > Packages > Create New
  3. Expand Archive > Check Enable File Filters > Click the link [wp-uploads]
    • This step excludes the ‘wp-uploads’ folder which we will manually move later
  4. Click next to perform a scan, if all test pass, Click Build
    • If you get any failed tests, expand that section and troubleshoot, delete large files, cache folders etc.
  5. After the build is done running click the Installer and Archive download buttons to save each file to your local computer.
  6.  

New Site Preparation

Login to the Cpanel of the site, e.g. A2, Bluehost. Use the Velare Logins sheet if you don’t know the pwd.

Create your domain:

For a sub domain, open the sub domain module and create your sub domain, then create a sub folder ‘wp’

    • For a regular domain, just create a sub folder ‘wp’ under the root folder
    • Upload the two files you downloaded earlier from the duplicator plugin installer.php & archive.zip to the ‘wp’ folder

Create your database from the Cpanel: *Make sure to record this info*

  • Open the SQL Database module and create a database with a relevant name e.g. kitcheni_bend_cc
  • Create a user with a relevant name e.g. kitcheni_bend_u (Alpha-numeric characters only. The password generator can create invalid passwords, but it won’t inform you its invalid.)
  • Add the user to the database and give full permissions

Install

  1. Browse to installer.php file in your web browser e.g. http://bend.cabinetcures.com/wp/installer.php
    • Enter in your database name, database user, & password
    • Check Connect to Database & Remove Data
    • Click Test Connection & check the box that you understand
  2. Check the new domain info is correct, in this example, we’re changing:
    • seattle.cabinetcures.com -> bend.cabinetcures.com

Final Steps

 

  1. If there are no errors on the last page of the Installer, run through the steps:
    • Resave Permalinks
    • File Cleanup
  2. Login to WordPress & Update the following:

Related Posts

Related Posts

Configure BackWPup

Configure BackWPup

Configure BackWPup

S3 & Glacier

  1. Install the plugin from the Drive folder: Velare Media\Web Design\Plugins
  2. In the side Dashboard, click BackWPup Pro > Add Job
  3. Name the job and select Glacier or S3 as the backup location. Note this decision in the backup name e.g. Velare Backup (S3)
  4. Select Schedule Tab > WordPress Cron > Advanced, then change the frequency to twice a week, e.g. Sunday & Wednesday
  5. Select the last tab (this will be different depending on the backup you choose) and enter the AWS Access & Secret keys that can be found in Velare Logins
  6. Create a new bucket field:
    • S3: this has to be lowercase & unique for all of the S3 buckets users in the world so use the prefix ‘velare’ e.g. velare-cc-products
    • Glacier: you can use any name here, e.g. cc-products
  7. Set the retention of backups to 30, save the job and run it to verify it works
  8.  

Related Posts

Related Posts

Use iFrame to Embed

How to Embed a website within a site with iFrame code.

If you ever need to embed a website within a website its possible using iframe code. This is similar to embedding videos to pages. Usually Youtube and social media provide their own embedding code.

Just paste the code into the text editor of your WordPress page, update the link and change your width and height to match the page settings. Then your good to go.

*Note: The code only works if the page is using the same protocol as the one its linking to. For example a Https page has to link to a Https page. If it goes to Http the link will break.

					[php]<iframe data-lazyloaded="1" src="about:blank" data-litespeed-src="URL goes here" width="600" height="300"></iframe>[/php]