FAQ – NiceThemes http://nicethemeswp.com Wordpress Premium Themes Mon, 17 Mar 2025 18:31:33 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.29 One Click Demo Install Problems http://nicethemeswp.com/article/demo-install-problems/ http://nicethemeswp.com/article/demo-install-problems/#respond Tue, 18 Jul 2017 22:19:53 +0000 https://nicethemeswp.com/?post_type=article&p=32198 Installing Smart demos with one click is fairly simple. However, from time to time the process can fail. There are a couple of reasons for this to happen. Firstly, all demo packs live in “the cloud”. By saying this, we mean that all the images and configuration files are actually being downloaded from different servers […]

The post One Click Demo Install Problems appeared first on NiceThemes.

]]>
Installing Smart demos with one click is fairly simple. However, from time to time the process can fail. There are a couple of reasons for this to happen.

Firstly, all demo packs live in “the cloud”. By saying this, we mean that all the images and configuration files are actually being downloaded from different servers to your site and then processed, so if you are using a local install with development purposes and your internet connection fails or has a micro-cut, then the demo import process can finish without success.

Secondly, the demo import process consumes server resources, because it gets files from the cloud (like images, configuration files and more) and processes them in order to perfectly match your new site like the one on the actual demo site. And this consumes server resources, so if your site is on a shared server with limited resources it can also fail.

One Click Demo Import

Requirements

The one click demo importer need to meet the following requirements in order to work correctly. Please have in mind that you can check these by going to your system status page. If you don’t meet the requirements you will need to contact your hosting provider in order to make the changes.

  • WordPress 4.8 or higher
  • MySQL 5.6 or higher
  • PHP 5.6 or higher
  • PHP Memory Limit: 256 MB or higher
  • PHP Time Limit: 300 seconds or higher
  • PHP Maximum POST Size: 32 MB or higher
  • PHP Maximum Input Variables: 3000 or higher
  • PHP Remote GET: Enabled
  • Xdebug: Disabled

Troubleshooting

If you meet all the requirements and you are pretty sure there are no micro-cuts on your internet connection, please be sure that the mod_security Apache module is not enabled. You can ask your hosting provider about it.

The other option, when you already tested all the solutions above is to manually import the demos.

Manual Import

If you still have trouble installing the demo with the one click importer you can try to do it manually. Please have in mind that you will need to have the required plugins installed and active. After that, all you need to do is to follow these simple steps.

Import The Demo XML file and The Theme Options.

  1. On your WordPress Dashboard, go to Tools  Import  WordPress.
  2. Install the WordPress Importer.
  3. Browse for the XML file and import it.
  4. All of the demo content should now be uploaded to your site and ready to use.

Import Theme Options

  1. On your WordPress Dashboard, go to Smart  Theme Options
  2. Click the “Cloud” button, located beside the “Save Options” button.
  3. Browse for the JSON file and import it.
  4. All of the demo options should now be uploaded to your site.

Set Up the Front Page

  1. Go to your WordPress Dashboard → Settings → Reading panel.
  2. Set ‘Front page displays:’ to ‘a static page’ and choose the home page.
  3. Save changes.

Configure The Navigation Menu

  1. Go to your WordPress Dashboard  → Appearance  → Menus
  2. Assign the navigation menu to a theme location. This is really important because it will be the location in which the menu you’ve created and edited will be appearing.
  3. Save Changes.

XML Demo Packs

The following ZIP files contain both the XML files and JSON for the site contents and configuration.


The demo data is for registered users only. Login or Create an account in order to download the files.

The post One Click Demo Install Problems appeared first on NiceThemes.

]]>
http://nicethemeswp.com/article/demo-install-problems/feed/ 0
Changing the Logo Link http://nicethemeswp.com/article/changing-logo-link/ http://nicethemeswp.com/article/changing-logo-link/#respond Thu, 11 May 2017 19:05:43 +0000 https://nicethemeswp.com/?post_type=article&p=31195 The post Changing the Logo Link appeared first on NiceThemes.

]]>
The post Changing the Logo Link appeared first on NiceThemes.

]]>
http://nicethemeswp.com/article/changing-logo-link/feed/ 0
How to Add Google Analytics Tracking Code http://nicethemeswp.com/article/add-google-analytics-tracking-code/ Wed, 24 May 2017 16:25:43 +0000 https://nicethemeswp.com/?post_type=article&p=31310 Google Analytics is a very popular statistics service. In order to get your traffic information, it provides you with a tracking code, which needs to be added to all the pages of your site. How to add the tracking code Log into your Google Analytics account, and copy your tracking code. In your WordPress Dashboard, […]

The post How to Add Google Analytics Tracking Code appeared first on NiceThemes.

]]>
Google Analytics is a very popular statistics service. In order to get your traffic information, it provides you with a tracking code, which needs to be added to all the pages of your site.

How to add the tracking code

  1. Log into your Google Analytics account, and copy your tracking code.
  2. In your WordPress Dashboard, go to NiceThemes → Theme Options.
  3. In the theme options panel, go to General Settings.
  4. Paste your tracking code into the Tracking Code option.
  5. Click the Save Changes button at the top.

How to conditionally print the tracking code

There is a chance that you may not always want to track all the activity of your site. In example, let’s say you only give user accounts to editors or administrators. In that case, you should only track the activity of unlogged, because doing otherwise may alter your statistics and lead to inaccurate information. All that such a requirement would take is a little bit of code in your functions.php file:

if ( ! function_exists( 'conditionally_do_tracking_code' ) ) :
/**
 * Don't show tracking code for logged in users.
 *
 * @return bool
 */
function conditionally_do_tracking_code() {
   if ( is_user_logged_in() ) {
      return false;
   }

   return true;
}
endif;

The function must return a boolean value, which should be true for every case in which you want to show the tracking code, and false for every case in which you want to hide it. In the example, we use the WordPress function is_user_logged_in(), which returns true if a user is currently logged in, and false if not.

As you can see, it’s very easy to customize this function to suit other needs. The only thing you need to remember is to always return a boolean value.

The post How to Add Google Analytics Tracking Code appeared first on NiceThemes.

]]>
Turning Off WordPress Comments http://nicethemeswp.com/article/turning-off-wordpress-comments/ Wed, 24 May 2017 16:26:23 +0000 https://nicethemeswp.com/?post_type=article&p=31311 By default, WordPress enables comments for all types of content. Here’s what you need to do in case you don’t want to use them. Disabling comments for a specific post or page The following procedure will deactivate comments for a specific post of any type. New posts will still use the default configuration (which you […]

The post Turning Off WordPress Comments appeared first on NiceThemes.

]]>
By default, WordPress enables comments for all types of content. Here’s what you need to do in case you don’t want to use them.

Disabling comments for a specific post or page

The following procedure will deactivate comments for a specific post of any type. New posts will still use the default configuration (which you can change using the procedure described below this one).

  1. In your WordPress Dashboard, go to Posts, or Pages, or the menu of the corresponding content type.
  2. Find the specific post you want (you can browse through the pages, or search for it), and click on its title or the Edit option.
  3. If you don’t see the Discussion box, open the Screen Options (in the top right corner of the page) and, in the Show on screen section, check the Discussion option. The box should appear in the main content area.
  4. In the Discussion box, uncheck the Allow comments option.
  5. Save the post.

Disabling comments for the whole site

The following procedure will deactivate comments for all new posts of any type. Note that if you already have any posts, you will need to disable comments for them one by one using the procedure described above.

  1. In your WordPress Dashboard, go to Settings Discussion.
  2. In the Default article settings section, uncheck the Allow people to post comment on new articles option.
  3. Save the changes.

The post Turning Off WordPress Comments appeared first on NiceThemes.

]]>
Changing the copyright text http://nicethemeswp.com/article/changing-copyright-text/ Wed, 22 Jul 2015 21:08:21 +0000 http://staging.nicethemeswp.com/?post_type=article&p=4513 Right after you install one of our themes, the default copyright text of your site will be vey similar to “Name of the Theme by NiceThemes – Powered by WordPress” So let’s suppose you want to change that text to something like “My Awesome Business © 2015”. Well, there’s a couple of ways to do this: Theme […]

The post Changing the copyright text appeared first on NiceThemes.

]]>
Right after you install one of our themes, the default copyright text of your site will be vey similar to “Name of the Theme by NiceThemes – Powered by WordPress”

So let’s suppose you want to change that text to something like “My Awesome Business © 2015”. Well, there’s a couple of ways to do this:

Theme Options

  1. In your WordPress Dashboard, go to NiceThemes > Theme Options, and click on the Footer tab. You’re gonna see the following options:
    Footer Options
  2. Write your text inside inside the “Custom Copyright Text” box and check the “Enable Custom Copyright” option.
    Footer Options
  3. Click the “Save Changes” button. Now you should see your custom copyright text in the footer of the website.
    Custom copyright text

Coding

The PHP function that prints out the copyright text is called nice_copyright(). If you’re using a Child Theme, you can override that function by declaring it in your functions.php file doing something like this:

<?php
function nice_copyright() {
    echo 'My Awesome Business © 2015';
}

While this is a powerful method, it also might be a double-edged sword, since modifying the copyright text by overriding `nice_copyright()`, depending on how you do it, may nullify the copyright settings under Theme Options and render them unusable.

A more flexible way to do this, that works even if you’re not using a Child Theme, is making use of the nice_copyright_default_args. This method will change the default copyright text while still allowing you to modify it through Theme Options. The code you’re gonna want to have in your functions.php file will look similar to this:

<?php
add_filter( 'nice_copyright_default_args', 'my_custom_copyright_filter', 20 );
/**
 * Set the copyright arguments for the function nice_copyright()
 */
function my_custom_copyright_filter( $args ){
	// Initialize text string.
	$text = '';

	// Check if the usage of a custom copyright is enabled in Theme Options.
	$custom_copyright_enable = get_option( 'nice_custom_copyright_enable' );

	// If the custom copyright is enabled, then use it.
	if ( ! empty( $custom_copyright_enable ) && nice_bool( $custom_copyright_enable ) ) {
		$custom_copyright_text = get_option( 'nice_custom_copyright_text' );

		if ( ! empty( $custom_copyright_text ) ) {
			$text .= $custom_copyright_text;
		}

	} else { // If the custom copyright is not enabled, then create our own default text.
		$text = 'My Awesome Business © 2015';
	}

	// Add the copyright text to the copyright arguments and return them.
	$args['text'] = $text;

	return $args;
}

If you want more information about how filters work, you can read this article in the WordPress Codex.

These are very simple ways to modify the copyright text via PHP, but you can add any kind of additional complexity, depending on your needs and your knowledge of the language.

The post Changing the copyright text appeared first on NiceThemes.

]]>