Theme Configuration – NiceThemes https://nicethemes.com Wordpress Premium Themes Thu, 21 Nov 2024 14:55:05 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.29 Importing demo content https://nicethemes.com/article/importing-demo-content/ Fri, 31 Jul 2015 22:20:41 +0000 http://staging.nicethemes.com/?post_type=article&p=5403 If you’ve just purchased a theme and want to set it up like the demo site, you’re in the right place. Below you’ll find a simple explanation on how to import the demo contents to your WordPress site. Manual installation If your theme does not support automatic demo installations, or if you want to import […]

The post Importing demo content appeared first on NiceThemes.

]]>
If you’ve just purchased a theme and want to set it up like the demo site, you’re in the right place. Below you’ll find a simple explanation on how to import the demo contents to your WordPress site.

Manual installation

If your theme does not support automatic demo installations, or if you want to import the demo content the old-fashioned way, you can find the instructions and files here.

How to import the demo content to your WordPress Site

  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. Check it out!

After you are done with the import

You need to do a couple of things in order to get your site configured and looking like the demo site:

  1. Set up the front page.
  2. Set up the widgets for the different widgetized spaces.
  3. Configure the navigation menu.
  4. Save the theme options. In your site dashboard, go to NiceThemes Theme Options and hit the Save button.
  5. You’re now good to go!

XML Demo Files

Log in or Create your Account
The dummy data is for registered users only. Login or Create an account in order to download the files.

The post Importing demo content appeared first on NiceThemes.

]]>
Changing the logo of your Theme https://nicethemes.com/article/changing-logo-theme/ Tue, 28 Jul 2015 13:57:49 +0000 http://staging.nicethemes.com/?post_type=article&p=4524 By default, after you install any of our themes, you’re gonna see that it shows the logo of the theme itself. Most likely you don’t want to use that, and prefer to have your own logo or the name of your site instead. So here’s how you can change the default logo and use your own. Go to […]

The post Changing the logo of your Theme appeared first on NiceThemes.

]]>
By default, after you install any of our themes, you’re gonna see that it shows the logo of the theme itself. Most likely you don’t want to use that, and prefer to have your own logo or the name of your site instead. So here’s how you can change the default logo and use your own.

  1. Go to NiceThemes > Theme Options > Header. There you’re gonna see the following options:
    Header Options
  2. Click the “Upload image” button right below “Custom Logo” and upload any image you want, or use an existing one.
  3. Additionally, you can repeat step 2 for “Custom Logo (Retina)”, to upload an image that will be loaded instead of the first logo you selected when your site is viewed from a device with a retina display. Keep in mind that retina images are often the same as the originals, but double in size (for example, if the dimensions of your custom logo are 200×40 pixels, the ideal dimensions for your retina logo will be 400×80 pixels).
  4. Click “Save Changes”. Now you should see your custom logo in the front-end area of your site.

In case you don’t want to use an image for your logo and prefer to just display the name of your site in plain text, you can do so by checking the “Text Title” option. You can set the typography, font style, size and color for your site title by tweaking the settings under “Site Title Typography”.

The post Changing the logo of your Theme appeared first on NiceThemes.

]]>
Using the Gallery template https://nicethemes.com/article/using-gallery-template/ Tue, 28 Jul 2015 20:40:43 +0000 http://staging.nicethemes.com/?post_type=article&p=4529 If you want to show images in a gallery for your site, the best way to do it is by using the Gallery Template included in your theme. With this template you’ll have a nice a full-width layout (without a sidebar), which will show your images using the functionality of the Fancybox library. Currently, we have two ways to […]

The post Using the Gallery template appeared first on NiceThemes.

]]>
If you want to show images in a gallery for your site, the best way to do it is by using the Gallery Template included in your theme. With this template you’ll have a nice a full-width layout (without a sidebar), which will show your images using the functionality of the Fancybox library.

Currently, we have two ways to use the template:

Through the WordPress gallery functionality (recommended for WordPress 3.5+)

  1. Create a page and use our Gallery Template.
  2. When creating or editing that page, use the WordPress gallery functionality. With this method, you will be using the “Add Media” button and the Media Uploader to create a new instance of the [gallery] shortcode inside the content of your page.

Uploading images to the page (recommended up to WordPress 3.4.2)

  1. Create a page and use our Gallery Template.
  2. Upload the images that you want to that page.

In case you need to remove an image that you added to the gallery with this method, deleting it from the content of the page is not enough. You also need to click the “Add Media” button, filter the images in the Media Library by selecting “Attached to this page”, and then un-check the ones that you don’t want to show.

So, as you see, the problem with this last choice is that it will be difficult to remove images for that gallery, or set an order for them. We strongly recommend the first method, since all you have to do in order to modify your gallery is changing the values of the shortcode. We still support the second method since the [gallery] shortcode didn’t provide the current flexibility in older versions of WordPress, but if you’re running WordPress 3.5 or higher, the first method will be more suitable for you.

The post Using the Gallery template appeared first on NiceThemes.

]]>
How to Add Google Analytics Tracking Code https://nicethemes.com/article/how-to-implement-google-analytics/ Mon, 21 Mar 2016 15:42:37 +0000 http://staging.nicethemes.com/?post_type=article&p=16094 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 https://nicethemes.com/article/turning-comments-off/ Mon, 21 Mar 2016 13:37:02 +0000 http://staging.nicethemes.com/?post_type=article&p=16092 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.

]]>
Ordering categories https://nicethemes.com/article/ordering-categories/ Tue, 28 Jul 2015 21:34:07 +0000 http://staging.nicethemes.com/?post_type=article&p=4531 Some of our themes and plugins feature lists of entries (such as articles, foods, projects, etc.) ordered by categories. Notable examples are the BBQ and Flatbase themes. We are often asked about how the order in which the categories appear in the front-end can be changed. Sadly, for the current moment WordPress itself doesn’t provide a reliable way […]

The post Ordering categories appeared first on NiceThemes.

]]>
Some of our themes and plugins feature lists of entries (such as articles, foods, projects, etc.) ordered by categories. Notable examples are the BBQ and Flatbase themes.

We are often asked about how the order in which the categories appear in the front-end can be changed. Sadly, for the current moment WordPress itself doesn’t provide a reliable way to do this through the Dashboard. We’re really looking forward to have that possibility at some point in a short-term future, so we can give you an option to manage the order.

There are, however, some plugins that let you set orders for different types of taxonomies, such as categories, tags, and others. The one we recommed is Category Order and Taxonomy Terms Order. You may want to give it a try and see if it suit your needs.

The post Ordering categories appeared first on NiceThemes.

]]>
Setting up Twitter widget https://nicethemes.com/article/setting-twitter-widget/ Wed, 22 Jul 2015 21:53:48 +0000 http://staging.nicethemes.com/?post_type=article&p=4519 In order to configure the Twitter Widget you need to do the following: Visit http://dev.twitter.com/apps/new Login or make sure to login as Twitter account used on website to display tweets Type the following on input fields: Name: [Your Site Name] Twitter Widget Description: Display twitter feeds on website Website: [Your website URL] Callback URL: (leave […]

The post Setting up Twitter widget appeared first on NiceThemes.

]]>
In order to configure the Twitter Widget you need to do the following:

  1. Visit http://dev.twitter.com/apps/new
  2. Login or make sure to login as Twitter account used on website to display tweets
  3. Type the following on input fields:
    Name: [Your Site Name] Twitter Widget
    Description: Display twitter feeds on website
    Website: [Your website URL]
    Callback URL: (leave blank)
  4. Check on “Yes, I agree” and fill the CAPTCHA
  5. Once the application is setup, copy and paste the application OAuth settings into your Twitter Widget Configuration. (Consumer and Consumer Key)
  6. Back on Twitter click “Create my access token”, then copy and paste the recently created Access Token into your widget configuration back on your website.
  7. On the Widget Configuration on your website, change the Username name to your Twitter ID without @ symbol. Complete the other fields if necessary (Include Retweets, Exclude Replies & the number of tweets to show).
  8. Save the Widget settings.
  9. Voilá, your tweets should be displaying by now.

The post Setting up Twitter widget appeared first on NiceThemes.

]]>
Changing the copyright text https://nicethemes.com/article/changing-copyright-text/ Wed, 22 Jul 2015 21:08:21 +0000 http://staging.nicethemes.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.

]]>