InHost - WHMCS WordPress Theme

Contents

1. I don't want to use the login & cart icons. How to add WHMCS User Menu to Main Menu?

2. Whois domain .es always not available.

3. The menu doesn't work & the pages don't load properly!

4. "Home Version 6" navigation doesn't show correctly!

5. How to insert order button links/ fetch the package details from WHCMS to pricing table

6. How to update my theme & plugins?

7. How to add new domain tld to domain list?

8. How to create a map with several server locations

9. How to configure login form & cart counter?

10. This page didn't load Google Maps correctly. See the JavaScript console for technical details

11. My menu structure loses some items (or options) when I save the settings.

12. Invalid license! Where do I find the Visual Composer license key?

13. How to manually import sample sliders

14. How to remove cog icon and subsequent sticky layout box in homepage?

15. How to active scrolling down/ sticky menu?

16. How to change the Font Icons in slider

1. I don't want to use the login & cart icons. How to add WHMCS User Menu to Main Menu?

You can easily add this code to theme functions.php file (We recommend you to use child-theme):

function new_nav_menu_items($items, $args) {
    if( $args->theme_location == 'primary' ){
        ob_start();
        ?>
    <li class="pull-right menu-item menu-item-type-post_type menu-item-object-page default_style">
        <span class="item_link">
            <span class="link_content">
                <span class="link_text">
                    <?php echo do_shortcode("[whmpress_whmcs_cart link_text='Cart']");?>
                </span>
            </span>
        </span>
    </li>
    
    <?php
    $isloggedin = do_shortcode("[whmpress_whmcs_if_loggedin]1[/whmpress_whmcs_if_loggedin]");
    $notloggedin = do_shortcode("[whmpress_whmcs_if_not_loggedin]1[/whmpress_whmcs_if_not_loggedin]");
    ?>
    
    <?php if ($notloggedin == 1) {?>
    <li class="pull-right menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children default_dropdown default_style drop_to_left submenu_default_width columns1">
        <a href="#" class="item_link">
            <span class="link_content"><span class="link_text">Account</span</span>
        </a>
        <ul class="mega_dropdown dropdown-menu ">
            <li class="menu-item"><a class="item_link" title="Login" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>clientarea">Login</a></li>
            <li class="menu-item"><a class="item_link" title="Register" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>register">Register</a></li>
            <li role="separator" class="divider"></li>
            <li class="menu-item"><a class="item_link" title="Forgot Password?" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>pwreset">Forgot Password?</a></li>
        </ul>
    </li>
    <?php } ?>
    <?php if ($isloggedin == 1) {?>
    <li class="pull-right menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children default_dropdown default_style drop_to_left submenu_default_width columns1">
        <a href="#" class="item_link">
            <span class="link_content"><span class="link_text">Hello, <?php echo do_shortcode('[whmpress_whmcs_info user_field="firstname"]');?></span></span>
        </a>
        <ul class="mega_dropdown dropdown-menu ">
            <li class="menu-item"><a class="item_link" title="Edit Account Details" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>clientarea&action=details">Edit Account Details</a></li>
            <li class="menu-item"><a class="item_link" title="Contacts/Sub-Accounts" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>clientarea&action=contacts">Contacts/Sub-Accounts</a></li>
            <li class="menu-item"><a class="item_link" title="Change Password" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>clientarea&action=changepw">Change Password</a></li>
            <li class="menu-item"><a class="item_link" title="Email History" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>clientarea&action=emails">Email History</a></li>
            <li role="separator" class="divider"></li>
            <li class="menu-item"><a class="item_link" title="Logout" href="<?php echo str_replace('index', '',do_shortcode('[whmpress_whmcs_page return="url"]'));?>logout">Logout</a></li>
        </ul>
    </li>
    <?php } ?>
        <?php
        $html = ob_get_contents();
        ob_end_clean();
        $items = $items.$html;
    }
    return $items;
}
add_filter( 'wp_nav_menu_items', 'new_nav_menu_items', 10, 2 );

You also should disable the quick access icons in the theme options-> header options -> Show quick access.

Here are the results:

Log in:


Logged in:


2. Whois domain .es always not available.

From 03/11/2016 to use whois service to check domain .es you need apply for access to whois service via port 43 via link https://sede.red.gob.es/procedimientos/solicitud-de-acceso-servicio-de-whois-por-el-puerto-43

This is result when you whois a domain with out apply for access to whois service via port 43

 Conditions of use for the whois service via port 43 for .es domains
    Access will only be enabled for  IP addresses  authorised  by Red.es.  A maximum of one  IP address per    user/organisation is permitted.
    Red.es accepts  no responsibility  whatsoever  for  the availability  of access to WHOIS,  which may be    suspended at any time and without prior warning at the discretion of the public entity.
    The service will be limited to the data established by Red.es.
    The user  promises  to make use of the service and to  carry out any action derived  from the aforesaid    use in accordance with  current applicable  regulations, in particular with legislation on “.es” domain    names and personal data protection.
    In particular, the user undertakes not to use  the service  to carry out abusive  or speculative domain    name registrations, pursuant to section 5 of the Sixth Additional Provision of Law 34/2002, of 11 July,    on Services of the  Information  Society and  Electronic Commerce. Likewise, the User undertakes not to    use the service to  obtain data, the possession  of which may  contravene the provisions of Organic Law    15/1999,  of  13 December,  on Personal Data Protection, and  its Regulations, or in Law 34/2002, of 11    July, on Services of the Information Society and Electronic Commerce.
    Failure  to comply with these conditions will result in the immediate withdrawal of the service and any    registered domain name which breaches said conditions may be officially cancelled by Red.es.    -------------------------------------------------------------------------------------------------------
    The IP address used to perform the query  is not authorised  or  has exceeded the established limit for    queries.To request access to the service,complete the form located at https://sede.red.gob.es/sede/whois,    where you may also consult the service conditions.
    -------------------------------------------------------------------------------------------------------    More information on each domain may be consulted at www.dominios.es.


3. The menu doesn't work & the pages don't load properly!

This error is often caused by jQuery conflict. 

- If you use WHMpress Client Area plugin, you should set “jQuery Source” value in your WHMpress Client Area setting to “Wordpress”


- If you use LiveHelp plugin, you should open the file wp-content\plugins\livehelp\default.php

Remove the code Insert Latest jQuery

4. "Home Version 6" navigation doesn't show correctly!

If your slider in home version 6 has wrong navigation (http://inwavethemes.com/wordpress/inhost/home/homepage/home-v6/)

1. Please try to open Revolution Slider, edit slider 3: http://prntscr.com/8t7gbj

2. Select the thumbnail image again: http://prntscr.com/8t7gn4

3. Filter "slide" images and click to select one http://prntscr.com/8t7g0s

Finally, save the change.

Thank you for reading!

5. How to insert order button links/ fetch the package details from WHCMS to pricing table

1. Use direct Template Order Button Link:

Go to product list page. Example: http://inwavethemes.com/wordpress/inhost/home/client-area/cart/

Copy the Cart Link:


- Add a new page with Visual Composer editor -> Insert an element -> select Custom Tab -> choose Pricing Box shortcode

Configure your price box with "Direct Shopping Cart Link" you copied. Click save changes button to finish

2. Use direct WHMCS Order Button Link:

- Go to your WHMCS Admin -> Products/Services manager -> Edit one of your products/services -> Copy "Direct Shopping Cart Link"


Finally, configure your price box "purchase link" using this link (Similar to solution 2)

3. Use WHMPress shortcodes (If you installed WHMPress plugin):

- Edit your page with Visual Composer editor -> Insert an element -> select WHMPress tab -> choose Pricing Table shortcode


6. How to update my theme & plugins?


1. Update the theme

There are a couple of different ways to update your theme to the latest version:

Automatically Update:  Setup WordPress Envato Market plugin

The Envato Market plugin will display a notice in your WordPress dashboard when an update is available. To setup:

  1. Download the Envato Market plugin and install it through the WordPress Admin Plugin Upload.
  2. Activate the plugin.
  3. Navigate to the Envato Market menu, follow the instructions to generate a Global OAuth Personal Token, and enter the Token in your WordPress Dashboard.

Manually Update:

Go to your download area: http://themeforest.net/downloads and click to download the theme, Example: "Athlete - Fitness, Gym and Sport Wordpress theme".

Find the file athlete.zip, extract & upload this file to themes folder \wp-content\themes (overwrite all existing files).

Always Use a Child Theme

Updating your themes shouldn’t affect any customizations to your website, if you’re using a child theme.

2. Update the plugins:

After update the theme you can see this notification:

The update page will be:


Click "update button" to finish.

3. Can I get all plugin zip files?

Yes, you can see all zip files in the folder:

\wp-content\themes\theme_folder\framework\plugins

or this folder (for old framework versions):

\wp-content\themes\theme_folder\admin\plugins

7. How to add new domain tld to domain list?

Hello Customers,

If you want to add more tld by yourself. Please follow this step to make it.

1. go to link http://www.iana.org/whois then try find a domain (eg: duongca.tech) you want add to find whois server in whois info. 

2. Add tld to server list and shortcode then try to check a domain 

3. Click to view domain result whois you'll see text to check domain available or unavailable

4. Copy this text and change old value on domain list in file \wp-content\plugins\iw_composer_addons\inc\whois.servers.json

All Done

8. How to create a map with several server locations


Step 1: Use visual composer, insert  "Inwave Server Locations" shortcode:


Step 2: Click to "Add location" button. A new marker will appear bellow, click to it and then drag to the new position you want.





Select the post content for your new location (You should created it before)


Step 3:  Repeat step 2 to create all locations you want

If you need to edit any location, just click on it, and then drag to new position or select a new post


Click "Save changes" button to finish


Ps: How to create a marker post:

You should go to "Post" -> "add new Post" then put your content to the editor

You also can use "Insert IW Shortcode" to insert some "info item" as our demo site style

9. How to configure login form & cart counter?


1. Configuration: 

Go to Appearance -> Theme Options -> Header Options -> Header Content Options -> Enable "Show quick access"

2. Your site installed Woocommerce:

The login form is WordPress form and the cart icon shows total items of Woocommerce cart

3. Your site installed WHMCS:

The login form is WHMCS login form and the cart icon shows total items of WHMCS cart.

Step1: Install & active WHMCS Bridge Helper
Step2: Go to WordPress admin area -> WHMCS Bridge setting, check "Single Sign On" http://prntscr.com/c5tdg2.

Step3: Switch to Sync tab, click to "Sync All WHMCS Users to WordPress" http://prntscr.com/c5tdpx

10. This page didn't load Google Maps correctly. See the JavaScript console for technical details

Your Map is missing API Key, please see the Google Maps APIs documentation to get a key and add it to Appearance -> Theme Options -> General Settings -> Google API

https://developers.google.com/maps/documentation/javascript/get-api-key

You have to make sure that your key is "browser key" & authorized your site domain

11. My menu structure loses some items (or options) when I save the settings.

Cause of this problem is small value of the "max_input_vars"

option in the configuration of your server (host). You must increase

value of the "max_input_vars". You must to set a value that is twice as

large of the current value.

You also read full FAQs of the mega menu plugin here: http://manual.menu.megamain.com/#faq

12. Invalid license! Where do I find the Visual Composer license key?

1. License Key?

We don’t provide single license key of Visual Composer in download package, but please don't worry, the plugin runs perfectly and are fully functional because we bought extended license for your Theme!

2. How to update?

Please keep the theme is up-to-date, you will always have latest version of Visual Composer.

See more: How to update my theme & plugins




13. How to manually import sample sliders


How to manually import sample sliders:


Step 1 – Go the the Revolution Slider tab in your WP Admin, and click the Import Slider button.

Step 2 – Choose the .ZIP file of the slider you’d like to import in the folder: YOUR_THEME_FOLDER\admin\importer\data\

Step 3 – Once you’ve chosen the .ZIP file, an Import Slider button will appear.

Step 4 – Click the Import Slider button, and wait for it to finish uploading.

Step 5 – Once it’s finished uploading, you will now see your imported slider in the list of Revolution Sliders available.


Failed sample slider import

If the sample slider template fails to import please check The Requirements carefully (The Requirements section can be found in the revolution slider plugin's main admin page)

https://www.themepunch.com/revslider-doc/requirements-and-recommendations/

14. How to remove cog icon and subsequent sticky layout box in homepage?

This is default demo setting. You can open Appearance -> Theme Options -> Layout -> Uncheck "Show demo setting panel" option.

15. How to active scrolling down/ sticky menu?

You can easily active sticky menu: 

Go to Mega Main Menu -> General -> Layout Options:   primary -> Sticky option:


16. How to change the Font Icons in slider

1. You should go to admin panel -> revolution slider -> edit the slider, click to a icon you want to edit.

You will see the icon code is:

<i class="fa fa-cog"></i>

Replace this icon by a new icon in (2)


2. Go to http://fortawesome.github.io/Font-Awesome/icons/, choose one icon.

Example: http://fortawesome.github.io/Font-Awesome/icon/industry/