Redirect Properties Page

How to Redirect the Properties Page in .htaccess file Let’s start with a simple redirect where you want to point one page to another page: Redirect 301 “/old-page.html” “/new-page.html” As you can see, we are doing a 301 (permanent) redirect from a page on the current site, to another page on the same site. If […]

Read More →

Branded Admin Login Screen

How to Make the Website Admin RIT Branded Instead of WordPress Branded Replace the functions.php file of the child theme with a functions.php file that is working on another site

Read More →

Use Font Awesome 4

How To Add Font Awesome 4 Open header.php file of the child theme Add the following link under the end style tag before end head tag (Martine Properties site is example): <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.0.13/css/all.css” integrity=”sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp” crossorigin=”anonymous”>

Read More →

Add Google Translate

How To Add Google Translate Download & activate ‘Translate WordPress with GTranslate’ plugin Click settings –> GTranslate Select ‘Nice Dropdown with Flags’ Select English & Spanish Click Save Download & activate ‘Shortcode in menus’ plugin Click Site Menus Add shortcode and type [GTranslate]. Leave title blank. Click add to menu. Add the following CSS: .switcher{ […]

Read More →

Force SSL

How to Force SSL Make sure FTP Client is showing hidden files Edit the .htaccess file Scroll to bottom and replace the following code after # begin wordpress < /IfModule mod_rewrite.c >: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] With the code below: RewriteEngine […]

Read More →

Add Carousel

How to Add an Image Carousel (Reference rittest.com) Edit the Child Theme Open header.php and enter the following code after the closing head tag <link rel=”stylesheet” type=”text/css” href=”//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.0/slick/slick.css”/> <!– Add the slick-theme.css if you want default styling –> <link rel=”stylesheet” type=”text/css” href=”//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.0/slick/slick-theme.css”/> Open (create file if not in child theme) footer.php and enter the following […]

Read More →

Email Shortcode

How to Add Code to the Shortcodes.php file to get [companyEmail] to display email address Open acf-front-end-func.php under includes directory in RIT Theme and enter the following code after the last lie of code: function ritThemeFE_email(){ if ( have_rows( ‘site_email_address’, ‘option’ ) ) { while ( have_rows( ‘site_email_address’, ‘option’ ) ) { the_row(); if ( […]

Read More →

Phone Shortcode

How to Add Code to the Shortcodes.php file to get [companyPhone] display phone number Open shortcodes.php file in RIT Theme and enter the following code after the last line of code: function childTheme_phone_short(){ //return html ob_start(); childTheme_phone_display(); return ob_get_clean(); } add_shortcode( ‘companyPhone’, ‘childTheme_phone_short’ ); function childTheme_phone_display(){ $returnPhone = ”; if ( have_rows( ‘company_location_specific_information’, ‘option’ ) […]

Read More →

Fix Map API Key

How to Fix the Broken Map API Key On Home Page Open the Editor Click on Shortcodes.php Search ‘Key’ and replace the incorrect key with AIzaSyC6ypC3s3I7CCNZHWbZT1kXctUN4fHl9L4 Click update Next, go to functions.php Search ‘google_api_key’ and replace the incorrect key with AIzaSyC6ypC3s3I7CCNZHWbZT1kXctUN4fHl9L4 Click Update Next, go to page-contact.php Search ‘google_api_key’ and replace the incorrect key with […]

Read More →