Importing demo data

I included the exported XML file from our demo, this allows you to quickly set up posts and images from demo site..

Follow These Steps Below To Import The XML File
Making clone of demo site (rehub.wpsoul.net)

If you want to get full clone of demo site, with all settings, plugins and options, you can find instruction for this in Demo_data/how to get clone of demo site.txt

Upgrading theme

From time to time, a theme update will be released that either fixes a bug and/or adds new features to the theme. You can update the theme in one of two ways:

Updating Automatically

Envato have developed the Envato Toolkit Plugin for WordPress. You can use this to receive notification of updates to themes purchased from ThemeForest and to automatically update (upon clicking) directly from within your WordPress admin area.

  1. Download the plugin zip file to your computer.
  2. In your WordPress admin area, go to Plugins > Add New then click Upload.
  3. Click Choose File, select the plugin zip file you downloaded and click Install Now.
  4. After installation, click Activate.
  5. Click the new Envato Toolkit link in the menu and follow the instructions to configure the plugin.
Updating Manually
  1. Download the most current version from ThemeForest in the "Downloads" area of your account.
  2. Unzip the package and locate rehub.zip in the theme folder.
  3. Go to Appearance > Themes and activate another theme such as the default WordPress theme.
  4. Delete the REHub theme which is now inactive.
  5. Go to Install Themes > Upload then install and activate rehub.zip from the new package.
NOTE: Updating the theme will overwrite any changes you made to any of the core files (index.php, style.css, header.php, etc), however, you will not lose any changes you made to the Theme Options, menus, widgets, etc.

Translation of theme

All of our Themes are able to be translated into any language. The following instructions are given as guidance.

  1. Download and install POEDIT
  2. Connect to your site -> open rehub/lang directory
  3. Download the default.po file and open it with POEDIT.
  4. Translate file and save it as your language string. You can see this string in file wp-config.php in root folder of your site on line define ('WPLANG', 'en_EN'); en_EN - is your language string, so save your file with same name.
  5. Two files will be generated after save with .po and .mo extensions.
  6. Upload the .mo and .po files into wp-content/themes/rehub/lang folder

If you don't want to use external editors, you can try to use awesome plugin Codestyle Localization. It allows to do localization inside wordpress admin panel. Also, theme now supports WPML.

If you need to translate only some words, it's more better to use codestyle localization plugin. Short instruction:

Install and enable plugin. After Activation locate WP Admin -> Tools -> Localization. Wait some seconds while plugin analize all your plugins and themes.

Now select "Themes" tab and locate the Rehub theme. The plugin will auto-detect the translation files. Sometimes plugin detects 8-10 languages, but if language don't have both po and mo files, you need to delete it and create new localization file.

lang

If you don't find your language, click on button "add new language". Choose your language. Then you need to click on rescan button of your language. Plugin analize theme files, then you can edit language files. After editing, save mo file

lang

Setting menus

This Theme uses wordpress built-in menus feature which can be found in your wordpress dashboard > appearance > menus. Follow the next steps to define menus for each of the theme's menu locations.

  1. Navigate to Apperance > Menus page
  2. Click the "create a new menu" link to make a new menu. Enter the name then hit Create Menu
  3. To add a menu item, you can easily select one of your already made pages on the left hand side and click Add to Menu
  4. You can also add menu items by entering a custom name and custom link into the Links box.
  5. You can manage your menus using the drag and drop functionality. To create a dropdown menu, simply drag a menu item below and slightly to the right of another menu item and it will lock into place and create a dropdown section.
  6. Save your menu. After that go to Manage Locations tab and set your created menu as Primary Menu (or other)
  7. Once its all done, make sure you click the Save button.
  8. You can change menus locations in any time from Manage Locations tab .

menus

Please, don't add a lot of positions to first level in main menu, because sometimes they can't fit in one line.

How to add descriptions to links

That's easy. When you edit menu item, add description to "Title Attribute" field.

 

How to set featured section

You have 2 ways to set feature slider. First of all, you need to enable feature section. Go to theme option - Home page option and enable feature section.

You can set feature section based on tag or on manual selection.

First way - based on tag. Each post has a tags section. So, you can add definite tag name to all post which you want to show in feature slider. For example, add "feature" tag. Remember the name of this tag.

2

Then you can add this name in option of feature section. (leave blank other fields)

2

Second way - choose posts for feature section. Each post has Post settings. If you want this post to be in feature section - just choose it as featured and choose a place for it (in slider or in right section).

2

2

Then you need to choose these posts in options of feature section. Also, you can leave this fields blank, so last featured posts will be displayed.

2

Another usefull option - overlay layer on slider. You need to use it, for example, if your images have white color. So, white text of slider will be not visible on white images and you need to add some overlay layer on images of slider.

2

Home page and page builder

By default on home page you can see last posts. But REHub theme includes powerfull page builder that helps you to build custom pages. To use it create any page and select in Page Attributes Template "Page Builder" and save page. After saving you can find additional block Page Block Builder

2

In this block you can create custom pages with 13 different content blocks. You can sort them and create any number of blocks.

Note! Page builder is ajax based and on some hosting blocks load with small delay.

Each block can be with title or without. You have option of creating 3 types of title positions.

Left above line

3

Left inside line

4

Centered inside line

5

Also you can add custom url near title like this

6

I recommend you to use short titles and links for better visualization in responsive design.

You can create any number of blocks but try to avoid of using more than 4-5 blocks at once because it can slow your website.

Tips. If you want to insert ads block inside posts string, you can do it by inserting 2 posts string, but second string must have offset option equal count of posts in first string. For example, first string has 5 posts and second - 5 posts and offset 5. So between these string you can insert ads block or any other block.

Homepage featured area

To use featured area with slider and two post blocks you need to do follow steps:

Note! If you need only slider with featured posts without right section you can use Featured slider block in page builder.

Setting custom page as home page

To set one of the pages you have create as a Homepage:

  1. Go to Settings > Reading
  2. Select "A static page"
  3. For Front page select the page you want in the select box.

1

Rehub theme has 1 sidebar area, 3 footer areas and ecwid area. Sidebar widget area is used on all pages. Footer widgets works only if you enable them on page Theme options > Footer Options. Ecwid widget area works only on page with Ecwid template.

Our theme has 9 custom widgets with excellent functions. You can find them with names that begins with ReHub:

Also all buid-in woocommerce widgets and standart wordpress widgets are customizated to match design.

I recommend you to install plugin Woosidebar that bundled with theme. After setup Rehub theme you can see notice to install this plugin, just follow instruction to do this.

Woosidebar is very simple and usefull plugin to manage and creating sidebar widget areas. For example, you can create new widget area for your woocommerce shop pages. To do this, go to Apperance > Widget Areas, create new area, click on Advanced tab, select Woocommerce and check all checkboxes

7

Now you can add widgets that will display only on woocommerce pages.

Sticky widget

REHub theme has many unique functions. One of them - sticky widget. It displays any custom html code (banner, ads, forms) in sticky sidebar when scrolling content below sidebar content. To see how it works just go to demo page

Use this function with widget ReHub: Sticky on scroll

Featured images and thumbnails

All of your posts must have a featured images, these images will appears in the slider, homepage news boxes, sidebar .. etc

The recommended size for the Featured images is 765px x 400px, for featured posts in featured area 765px x 460px

Theme cropped all uploaded images to fit its places in the theme. There are two ways of cropping - with standart functions of wordpress or by using built-in script (bfi thumbs). To enable script cropping enable it in Theme Options - Global Enable\Disable - Enable resizer script (enabled by default). Then script create folder wp-content/uploads/thumbs_dir for thumbnails. On some servers script can't do this, so create it manual and set 777 permissions.

Script cropping is more better but standart cropping is more reliable.

If you want to use standart thumbnail croppind and you have any problems with the size of old images which uploaded before install the theme you need to use Regenerate Thumbnails Plugin or AJAX Thumbnail Rebuild Plugin to regenerate thumbnails with suitable sizes.

Review posts, post formats

There are 5 post formats in REhub theme: regular post, video post, music post, review post, gallery post.

All post formats differ each other by top part of posts and icon labels on thumbnails. Also many of content blocks in page builder and sidebar have opportunity to filter content by post formats.

Video format enables video player in top of post, music post format - music player, gallery post format - gallery slider with thumbnails, review post format enables ability to add review block and user rating system, regular format - standart featured image. Also you have ability to disable top part of post. For this just turn off in Post settings checkbox Disable Featured Image, Video or Gallery in top part on post page.

You can view all post formats in demo site.

Review post

Review post format is most powerfull post formats with big amount of settings. First of all you need to select type of review: Review post or product review, woocommerce product review and review with list of affiliate links. Demo of simple review post , demo of product post, Demo of woocommerce product review, demo of affiliate list

The method what you need to use is depend on what affiliate functions you choose to use with theme. Docs for affiliate functions

Review post has review block that display after post content, but if you enable shortcode inserting you can add it in any place of content by [review] shortcode. Just copy this shortcode to any place

After saving data you can see annimated block in post.

9

Each of this part are set in setting fields

10

Overall score can be calculated automatically. Just leave it without changes for this. Or you can set it manually.

You can set color type of review box in Theme options - Review/Affiliate

Post review has built-in schema format.

User reviews

Theme has 2 ways of user reviews. You can choose them in Theme options - Review/Affiliate

Simple ratings is just 5 star rating function that works on ajax.

ss

User reviews with criterias based on comment function and it allows to set full review with criterias.

ss

If someone leave user review and you approve this review, your review box will show editor's review score and user review score

ss

Product reviews (offer block)

Product review is the same as review, but has offer block. All data from this offer will be saved in post database, so you can use this data in another places of theme. For example, in top reviews list You can add offer block if you choose post format as review format and choose type of review as product review, woocommerce product review, product review with affiliate links.

Note. You can add offer block to post also with shortcodes. The main difference between offer box shortcode and adding offer box from post settings - shortcode doesn't save offer data to post data.

For example, if you add offer block to post settings, you will see price, button in string of posts on home page and in archives. If you add offer block as shortcode, post will be as simple post in post strings.

Let's see examples of types of product review

Simple Product review

11

Woocommerce product review

Product with affiliate list

Each of product review type is based on different way of affiliate options of theme. Docs for affiliate functions

How to use top review/product/coupon lists?

Top lists - is one of the best marketing instrument in the world. People loves them, because they can choose and compare different products. So I created some unique and very usefull functions and ways to create top lists.

There are three different ways to create top lists: top reviews page, list of affiliate offers, top list content page.

Top reviews page

This type is usefull if you want to create top product reviews page. So, each item has it's own score, title, description, image, etc.

62

Steps to creating this list.

Create your page and choose Top rating reviews in page attributes

55

Save your page, now you can see additional panel in bottom of page with Top review settings. You can choose to display definite category or manual select posts, style of design, what to use as description, style of rating score and pagination. Try different settings to find the best for you.

After setup all data, publish your page. You get something like this or fullwidth

This template works only with review posts, so you need to have such posts on site. How to use review format in theme

Also, when you add your settings, at bottom of page you can find shortcode. You can copy it and insert this top list to any of page.

For example, you can use it with page builder. Or even insert into post.

Top affiliate offers list

This list is good when you want to create list of different offers (not reviews). Each item has image of product, title, description, category name or image (use it for shop name or logo), sale price, old price and even coupon.

Note. Affiliate offers list is based on ThirstyAffiliate offers. You need to install this plugin (it's bundled with theme)

To create such list, insert shortcode

[wpsm_afflist show="10" cat="ebay"]

Where cat - it's name of thirsty affiliate category, show - number of offers to show.

Also, you can just specify link/offer ID's in shortcode like this

[wpsm_afflist ids="23,26"]

You also can find this shortcode in shortcode plugin as "List of offers"

Top content list inside post

Example - demo

f

Each of item from top list goes to it's headings. It's very easy to create with this shortcode post like "Top of .... of the year".

What do you need? Just add your content as usual, and create headings H2. Each item must have own heading + content.

Then, in place where you want to add top list, add shortcode

[wpsm_toplist]

That's all. See the magic in action.

Also, you can add shortcode with button in text editor

dd

Post settings and features

In post settings you have options to set any post as featured, add "editor's choice" label, set post as full-width, and disable any part of post. All these setting you can find in "Post settings".

Featured post

This option set post as featured, so it can be visible in top featured section on home page. Also it can be visible in featured slider in sidebar or other content blocks that have option to filter featured posts.

13

1. Featured Slider

2. Featured right section

Editor's choice

When enable this option, post will have editional bages in string and icon in post content.

14

 

15

Disabling blocks

REHub is very flexible theme, so you can disable parts of content that you don't need: breadcrumbs, social share buttons, ads after post, author block, related block, tags, etc. Also you can disable block with featured image (video, audio, slider) at top of post. You can do this in Post settings for any post.

Also you can disable some parts globaly in Theme Option - Global Enable/Disable

Full width

You can set any post as full-width, so this post will be without sidebar. Example

Paginated Post

Paginated posts - is standart feature of wordpress. REHub theme has support for this feature. Example

To paginate any post just insert in content following code to wherever you want to break the post up into a new page:

<!--nextpage-->

Page templates

WordPress can be configured to use different Page Templates for different Pages.

How To Use a Page Template
If you do NOT see this panel, look to the top right of your screen for the words - Screen Options. Click that and enable the checkbox next to Page Attributes.

Some examples.

Login page - example

Timeline - example

Landing page - this page don't have header, sidebar, footer like other pages. Only content area and background. It will be used for landing pages, system pages, "thank you" pages. Also it has function to brand this page with custom backgrounds, header, cover images. Example

Ecwid page - we discuss it in another chapter

Page builder - for building custom page with content blocks. Description home page and page builder

Ads and Branding

Ads and Branded page is very important thing for moneymakers, so I decide to include enhanced options for ads and branding. For all branded illustration you can find sources in PSD > 28_branded_pages.psd

Every post and page can be branded by customized background, cover background with url, wide banner zone before content. Also you can set this options globaly for all pages of site.

For page options you can find section with title Branded page option after write panel.

Cover background works only if you set url, so cover background image can be linked to any site or page.You can see how it works on example.

Also you can make main background with link, for this - set url for cover background, but don't upload cover background, so link will be on main background.

Cover background can be also like a fixed banner (example). For making such pictures you need to set transparent areas in picture. Example of this picture you can find in folder Demo_data/branded. Also you find there patterns for background like in demo.

Cover background has margin offset option. It's because header (if it is wide) overlaps background so you can set offset from top to avoid this.

Branded banner

Every page and post may have branded image above content area. Also you can set branded banner for category. For this, you need to go to category edit page in admin (Posts - Categories) and edit category. Now, you can see two fields: Target url, Category banner image url. First field is a link where your banner will go. It's not required. Second field is a direct link to your banner image.

17

It's recommended that you insert pictures 1200px wide.

All options may be set globaly on Theme Options - Ads options

Ads

Our theme has huge of ads areas.

For adding ads to banner zone go to Theme Option - Ads option. You can set ads before site, in header, before title, before footer, after feature image, etc. Also you can set ads code for shortcodes Ads1, Ads2. Shortcodes can be inserted in any place of post by [wpsm_ads1 float="none"] and [wpsm_ads2 float="none"]. In float you can set float of ads (left, right, none). These shortcodes are also available under buttons

18

 

Tip. You can use shortcodes in any ads area.

 

Shop (Ecwid and Woocommerce)

Both ecwid and woocommerce are good platform for creating shop.

Ecwid

Ecwid is third-party platform based on ajax. It's simple and effective. Go to main site of ecwid to see all of advantages

I can recommend Ecwid if you have slow hosting and don't want to waste your time for setting shop. And Ecwid has one very interesting option - you can use your magazine not only on website but also on facebook and other platform that support ecwid apps and javascript widget.

REHub theme has full support of ecwid and provide customization of ecwid shop.

Add new page and select Ecwid shop template in Page Attributes and save page. In write panel select Text view and insert ecwid widget

<div><script charset="utf-8" type="text/javascript" src="http://app.ecwid.com/script.js?4191037"></script><script type="text/javascript">// <![CDATA[
xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","id=my-store-4191037","responsive=yes");
// ]]></script></div>

Change 4191037 on ID of your store (you can find it in your ecwid account).

Then go to Appearence - Widget and add to Ecwid widget area 3 text widgets: for cart, for navigation, for search.

Add to cart text widget code

          <div> 
<script type="text/javascript" src="http://app.ecwid.com/script.js?4191037" charset="utf-8"></script>
<!-- remove layout parameter if you want to position minicart yourself -->
<script type="text/javascript"> xMinicart("layout=attachToCategories"); </script>
</div>

For navigation

          <div> 
<script type="text/javascript" src="http://app.ecwid.com/script.js?4191037" charset="utf-8"></script>
<script type="text/javascript"> xVCategories(); </script>
</div>

For search

          <div> 
<script type="text/javascript" src="http://app.ecwid.com/script.js?4191037" charset="utf-8"></script>
<script type="text/javascript"> xSearchPanel(); </script>
</div>

Don't forget to change 4191037 number to your ID and set titles for each widget.

Also make sure that you enable in Theme Options - Appearence Option Ecwid store customization.

When you change color scheme of website, ecwid pages and customization change color to match design, but if you want to change titles on buttons and more deeper customization, I include psd sources for each element of ecwid store in folder PSD > ecwid. Also in folder PSD you can find all ecwid store pages in psd. If you want to add such beautiful thumbnails with shelves like in my demo you can use psd source "thumbnail" in folder images > ecwid

Woocommerce

REHub theme is compatible and customized for woocommerce plugin. It's best self hosted plugin for wordpress with tons of great extensions.

if you need to set up woocommerce just install woocommerce like you do for other plugins and thats all about it. you dont need to do anything else.

Author profile

Avatar setting

The theme uses Gravatar to display users avatars . to craete or change your Gravatar :

If you have never setup a Gravatar account:
  1. Register / login to Gravatar. Upon registering, use the SAME email address that is associated with your WordPress User Profile.
  2. Upload your photo and associate it with that specific email address.

If you already registered at gravatar.com, follow these steps:

  1. Click on "My Gravatars" .
  2. click on "Add a New Email" .
  3. Then, you'll need to click on "Add a New Image" .
  4. Upload an image .
  5. Then select the email address, and then select your image from bottom. Now it's associated with that email address. Click Save .
  6. It will take about 5-10 minutes to propagate on the internet, and then will appear on site.
Profile

Social icons, description of author box you can set in Users - Your Profile

Shortcodes

We include in theme more than 30 different shortcodes that make your content more professional and good looking. But if you want to use any other third-party plugins or you don't need shortcode - you can disable it at Theme Option - Global Enable\Disable

When you enable it - you can add shortcodes by clicking on button

19

For more usability shortcodes button work in visual editor and text editor.

Another good option - that all shortcodes that can wrap some content work fine with selection. Just select text in editor and when you add shortcode, this text will be inserted into it.

Additionaly I include one interesting shortcode - Autocontents. It automatically add contents based on some tag. For example, you can divide your long article by h2 heading, so for creating autocontents add such shortcode

[wpsm_titlebox title="Contents" style="1"][contents h2][/wpsm_titlebox]

Satisfy results.

Wrong formating

Sometimes, when you add shortcode in post, you will find some incorrect spaces. This is because of wrong wordpress autoformatting. For fixing this problem, just add to function.php code

remove_filter( 'the_content', 'wpautop' );  
add_filter( 'the_content', 'wpautop' , 99);  
add_filter( 'the_content', 'shortcode_unautop',100 );

Color options

If you want to change color style of your theme, so go to Theme Option - Appearance Options and choose predefinite color styles or custom color.

If you want to change color style of your header, so go to Theme Option - Header and menu. You can choose predefinite default style of header (white or dark) or set any color for header, menu, logo area, top line area

Also, each category has option for enhanced color styles. It can be set on page Posts - Categories, then click on edit link below category name.

cat color

This color will be used in many content blocks

color

color

Satisfy results.

Affiliate settings

REHub theme has a really powerfull system for creating affiliate stores and websites. The most unique feature is hybrid system with many relations between affiliate store, review posts, link cloaker. Let's talk about different ways of affiliate settings

First of all, you need to answer on some questions. How many affiliate products do you have? How offten do you plan to change prices, links of products? Does your product has only one link or lists of affiliate links? Do you want to create separate product page or not?

Manual settings in review posts

This way is good when you have small quantity of affiliate products. So, you can create review posts with product review or just insert affiliate block into post with shortcode

Review post with product review

For creating such posts, create post setting like on image above. After this you will see additional fields. First field I will describe in next part of tutorial. You can leave it blank. Then you can add description, thumbnail, price, button url, coupon and even enable countdown. Countdown is fake, when it comes to end, it just disappears, but offer block continues to stay on page. So, when you publish your page, product offer appears on page

Default place of product offer is bottom of content, before review, but you can insert this block at any place of content. You need to enable "shortcode inserting" for this.

Offerbox shortcode

Another way to inserting offer to post is using built in shortcode plugin.

Choose Offer Box shortcode and fill all fields. Please, don't use many symbols in button text. Good example is "see offer", "buy this".

Offer box with shortcode looks the same, but it has some differences. First of all, offer box shortcode can be used in any post formats, even in music post formats. But, when you create product review, your data will be saved in post and can be used on other pages (for example, in top lists)

Affiliate link builder

From version 2.0 theme has bundled Affiliate Link Builder (plugin ThirstyAffiliate). This plugin can cloak your links and has many others good options. I created enhanced relations between this plugin and theme. First of all, you need to install it.

Click on link to begin installing plugin. After installing, activate plugin. Now, you can see new post type

You can use affiliate link builder in two ways: as simple link cloaker and as affiliate offer builder. If you want use it only as link cloaker, just add in link only name and Destination URL. After saving you will get cloaked url.

Also you can use it as offer builder. For this, you need to set all fields. After saving, you can choose affiliate link-offer in different options of theme. Each link will be not only cloaked link, but like full offer with name, description, brand, image, button and link.

For example, in product review, that I described early, you can choose this affiliate offer

So, if you choose affiliate offer in this field, you don't need to manually set all others fields below, because data for each field will be parsed from data of affiliate offer from affiliate link builder.

Another good option that I added from version 2.9 of theme - is image for category of links. Let me explain on example. Each offer has it's own thumbnail

You can add this thumbnail at this place

First image from this field will be used as thumbnail. But very often people use for this thumbnail logo of shop, for example logo of amazon or ebay. So, you need to upload this logo to every affiliate link. But from version 2.9 you can upload this image not for each link offer but for each brand. For this, create new category for links. Each category will be brand or shop. For example, create category and name it "Ebay".

Then insert link to image of brand logo

If you want to use this logo as offer thumbnail, just don't attach any image in link offer and set category with shop image.

 

Using affiliate link builder is good when you have many links and change them sometimes. So, you can add all offers and then, when you create reviews, attach this offer to review post. So, when you want to change any offer, you don't need to change all post.

Product review with affiliate offer lists

Sometimes, you'd like to create product review that has many offers from different shops. No problem, REHub has such options. Just choose type of review - product review with affiliate links list

Affiliate list has one description of product and unlimited number of offers.

Please, set manually your main currency on theme option - Reviews option - Main currency. Just add symbol, like "$".

Woocommerce affiliate products

Another good way that I really love - using woocommerce for affiliate products. I am surprised, but many people don't know that woocommerce has awesome functions for this. You need only to choose type of product - Affiliate product when you create your woocommerce product.

Woocommerce offer products has many advantaged before others. First of all - each affiliate product has it's own page. Second - your affiliate product has many unique woocommerce functions. For example, you can add specification of each product and all products can be compared by each other or added to wishlist (install plugins YITH Woocommerce Compare and YITH WooCommerce Wishlist for this). Third - you have products store page with filters, so you can use it like catalog page.

When you create affiliate woo product you can leave blank fields with price or button.

And, of course, I add relations between theme and woocommerce products. You need only to choose type of product review "Woocommerce product review" and choose product in select field after this. And you get such beautifull and good conversion block in your review page

Your users can buy product, view specification and photos of product from review page, so they don't need to do additional click to see your woocommerce product. Less clicks - more conversion.

Woocommerce + link builder + review post

The last thing I want to tell you - is the most powerfull thing of rehub affiliate functions.

It uses when you want to create affiliate products with separate page and this product has different deals from different shops.

So, you need to create your affiliate product with woocommerce product. Then add each deal (offer) to affiliate link builder. You can add only price, url, image and category (brand/shop) of each link.

Then, in bottom of each woocommerce product you can find such panel.

Here, you can add your affiliate deals and related review post. Also, you can disable main button of woocommerce product (just don't insert any link to Product Url). After saving, your product will have such block

Also, this block will be available from review post if you choose this woocommerce product as item for product review.

How to add tracking to offer button

If you use new analytics.js, you can add tracking to your affiliate buttons. Go to theme options - Reviews/Affiliate - Add tracking? and enable this option.

So, google analytics create tracking for all offer buttons, you can find report under "Action" category and "click on offer button" action in google reports.

Coupon functions

From 3.5 version of theme you can add coupons to each offer. There are two ways to do this. From post settings and from thirsty affiliate link plugin. If you plan to use small number of coupones and this is not important part of your site, use adding from post settings. But if you have big amount of coupon offers, you plan to update them, cloak link to website, create list of coupons and even directory of coupons, you need to add offers as separate page from thirstyaffiliate plugin.

From post settings

To add coupon from post setting, make your post as review post format and choose Product review type

Then fill fields below. (leave blank affiliate offer field). Enter your coupon code and coupon end date. All fields are optional.

From thirstyaffiliate plugin

First, you need to instal and activate this plugin.

After activating, add each offer with coupons as affiliate link. By default, links have only title, destination url, image. But with my theme, each link become like offer and have price, description, coupon, etc.

After saving, you can insert offer in to post in post settings or from shortcode. Differences between these methods

If you want to insert from post settings, make the same steps as in previous method, but, now, you can choose affiliate offer. And don't fill other fields.

Also, you can create lists of offers. And connect it to post or just insert list by shortcode.

For creating connected list, choose "product review with affiliate list" as product review. And choose affiliate offers. You can choose many offers at once.

When you connect list to post, theme functions calculate and show the best price of list.

If you want to create not connected list, use shortcode.

[wpsm_afflist show="10" cat="ebay"]

Where cat - it's name of thirsty affiliate category, show - number of offers to show.

Also, you can just specify link/offer ID's in shortcode like this

[wpsm_afflist ids="23,26"]

You also can find this shortcode in shortcode plugin as "List of offers"

Coupon archives

What to do if you want to create something like coupon/offer archives?

It's simple. If you have enough affiliate offers, you can create page. Then choose Offer archive grid or offer archive list template

Also, in settings panel in bottom of a page you can set category and number of posts to show. By default archive shows 10 posts from all categories.

EasyDigitalDownload

Easydigitaldownload - is plugin for shop of digital products. More about plugin and free download

There are some way to implement pages of plugin in theme structure. First of all, it's using shortcode. You can insert shortcode

[downloads]

at content of any page. It generates list of products. This shortcode has many options (note, options: full_content, columns are not working in theme). For example, you can add only one product inside any page content. Just add [downloads ids="11"], where 11 - is id of download product.

Also, this shortcode you can use in custom block in page builder.

Another way - is to set direct link into your menu to archive of download products. Link is http://yoursite.com/downloads. But don't forget to renew permalink structure. Just go to settings - Permalinks and resave settings without any changes. Also, each category and tag of download product has it's own page.

Theme has option to choose 3 different types of layout for archives of easy digital downloads. List (like from shortcode), grid with sidebar, and full width grid. Also you can use built-in simple user rating system for products. Settings for this you can find in theme options - easydigitaldownloads

Ok, now you need to add cart and detail widget for sidebar. I think the best way is to setting individual widget area only for downloads product pages. For this, try to use Woosidebar plugin that bundled with theme. You can see notification in top of the page to install this plugin. How to use plugin

And, for better looking system pages of plugin, I recommend you to set full width template for page "checkout" and sub-pages.

Directory mode, filtered catalogue and creating specifications

From 3.0 version of theme I integrated plugin Wordpress Meta Data & Taxonomies Filter

It's bundled with theme, so you don't need to buy it. Note, version of plugin that bundled in theme works only with theme. If you use it outside REHub theme you will have some bugs. But all functions are the same and all shortcodes and documentations from this plugin work the same way.

I try to describe all process and tricks to setup directory, filtered catalogue, product specification and using of directory constructor of theme.

Installing plugin

First of all, you need to install and activate plugin. From 3.0 version you can see notification in top of admin panel.

This theme recommends the following plugin: Meta filter (for creating catalogs and specification).

So, install and activate plugin. Now, you will have MDTF Filters tab in admin panel. Go to MDTF Settings where by checkboxes set post types we want to use. It's working with any post type, so, you can create filtered directory from your posts or create new post types\add to existing new criterias. For example, you can create filtered directory from your easydigitaldownloads products or woocommerce products. You can create real estate, car, gadget, laptops, events directory on your site.

Next, you need to think about logic of your catalogue and create set of filters. Each filter is like position in specification. You can add any number of fields in filter, but I recommend you to group all fields into filters. For example, I want to create camera review website. I take specification of camera.

Body type Compact
Max resolution 5472 x 3648
Effective pixels 20 megapixels
Sensor size 1″ (13.2 x 8.8 mm)
Sensor type BSI-CMOS
ISO Auto, 125-12800
Focal length (equiv.) 24–100 mm
Optical zoom 4.2×
Articulated LCD Tilting
Screen size 3
Screen dots 1,040,000
Min shutter speed 40 sec
Max shutter speed 1/2000 sec
Format MPEG-4, H.264
Storage types SD/SDHC/SDXC (UHS-I compatible)
USB USB 2.0 (480 Mbit/sec)
Weight (inc. batteries) 304 g (0.67 lb / 10.72 oz)
Dimensions 103 x 60 x 40 mm (4.06 x 2.36 x 1.57)
GPS None

So, my filters will be: Body type, Max resolution, Effective pixels, Sensor size, etc. As you can see, each criteria has only one value, but sometimes your criteria will have multiply options. For example,

Autofocus
  • Contrast Detect (sensor)
  • Multi-area
  • Center
  • Selective single-point
  • Single
  • Continuous
  • Touch
  • Face Detection
  • Live View

In this cases you need to add many fields to each filter. Let's do this job with me to make process more clear.

Add supported post type in plugin settings, then create MDTF category. Category is like group of filters, this is very usefull if you have different type of products with different filters.

Ok, add new filter. Title of filter will be title of criteria in specification. It will be used in widget

48

and in specification shortcode

49

Tip - We do not want to show title of the filter on the front, no problems print tilde sign before title ~

Next step - is to set fields. You can add taxonomies,checkboxes,drop-downs, range-sliders, calendars and textinputs. Most of cases you will need checkboxes and sliders. All settings for each field is available after click on toggle button.

Checkboxes has option to be true or false. So, you need this field for creating something like this

50

Checkboxes is the most quicker html items when we talk about adding them to filter: press Append Item and write its title, that is all, do not even toggle the item box, it is checkbox by default.

Important thing - checkboxes in specification will have only title, so it's title will be also it's value. Like this.

51

Next field is dropdown. The main difference from checkbox is that dropdown has title and values. It's usefull for criterias that can have only one value from set of values. For example,

54

And, of course, instead of creating one dropbox with values, you can create set of checkboxes.

Dropdown has such look in specification

52

Next field is slider. It's used for creating numbered field with slider.

 

53

The look in specification is absolutely the same as previous. It has title and value. What if we have 8 products worth 1000$ and 2 for 5000$, it is not convenient set range from 0 to 5000 because of this 2 items. Here is a pair of interesting moments, if your customer will drag left slider to the right, and no touch left one ajax-recount will show him 8+2 items because by the logic recount of price goes from minimal value to bigger, so and that 5000$ items will be in search. And if your customer drag the left slider to the right, to 1000, so ajax recount will show all items from 1000 to infinity.

Next field is calendar, but It's very easy. Can be used for event date or date of product release.

Next field - is textinput. It uses in very exceptional cases. It has function as simple wordpress search by text. For example, you add some product description by this field and users can enter word (s) in this field. If item has such words in this field, filter will be active. For example, you can duplicate title of your product in this field, so users can search products by title. Also, sometimes I add quick specification or small product description in this field and use it in another places of theme (for example, in top review lists)

55

Here is last html item – taxonomy, if you add this to the filter it means only that in this place will be placed taxonomies which will be selected in widget or shortcode (will be described hereinafter) and nothing more else. Its cant be reflected. And one more, remember this – to show selected taxonomies which were selected in widget or shortcode you should add taxonomy html item to filter=) Just drop it and forget!

After creating filter, don't forget to add it to some category and save. Also you can set it's position in Sequence attribute.


Tips. Item meta key by default is not beauty, like this medafi_5393540d4024e, and this is will work as a metakey, to make it beauty it is enough to rename it, for example rename key as medafi_price and press change meta key button. Ajax request will show as that it changed. Important: the key must begins with medafi_ prefix! So, add good names, because sometimes you will need to use this metakey in theme.

Heights: On front widget – means max height of the current filter on front after which scroll appears:

57

Reflections

Now very important moment when we are talking about Price or scores that already exist in your posts! The plugin sometimes bought when site works already, and products or posts already have price or other values that saved in metakeys that already exist. Now, you can reflect this value and use it in filters. For this, just add name of this custom field.

56

 

Tips.

The name of overall score custom field in REHub - rehub_review_overall_score

If you added woocommerce affiliate products to posts, you can reflect it's price - rehub_main_product_price

Also, if you added affiliate lists to posts - rehub_min_aff_price

Price of thirstyaffiliate offer - rehub_aff_price

Adding data

After filter setup you need to add data to each of your post. For this, choose your category of filter and add your data

58

Now one moment. Imagine situation that you have 500 products and we want to filter them by taxonomies and price which is reflected in built-in constructor. It is very big work to select in each product by hands filter-category. To make it for 1 min you can do next: go to filter-categories and press ours one, look its ID in browser address row

5

in our case it is 74

Go to the plugins settings and scroll on the same bottom of the page 

60and set data as on screen. Select post type we need, in our case here it is product. Press Assign. After the page reloading for all ours 500 products were set filter-category we need. We can use this when it is lazy for us each time select filter-category in each product =). That is all, we have filters, we have data in posts, next we need set widget in sidebar or shortcode somewhere

Settings of directory and forms for filter

Now, you need to understand logic of directory pages. First of all, you need main page of directory. For this, you can use any of page with posts or archive page. There are some page templates for creating good looking directory and listings In REHub theme. How to use page templates. I recommend to use Top rating reviews and catalogue constructor for this. Then, you need to add sidebar widget with form of filters or inside shortcode to render form. Each form has output template and output link. So, after user click on Filter button, your site will show filtered results in page that you set as output link and use output template as design layout. Maybe it's hard to understand, but I will show you on examples.


Work with widgets

The plugin has 2 widget to filter: MDTF and MDTF Taxonomies only. First we need when we are going to filter post by meta data and taxonomies on the same time. Second can filter by taxonomies only, we can use it after the plugin installation – drop to any sidebar you need and go. So lets consider first widget. If you are planning to use second widget read this instructions too, it is useful for understanding some moments.

Drop the widget in sidebar, write title, select filter-category we are going to filter with. Make your attention to 2 checkboxes on the screen: Hide meta values filter options – чcheck it if you are going to filter by taxonomies only, meta options will not be shown on the front, Hide taxonomies values filter options – check this if you are going to filter by meta values only, taxonomies will be hidden on the front. By the way if you want to filter data only by taxonomies only check  Hide meta values filter options another way errors, and vice versa. As we drop the widget just now press save to init JavaScript properly. We do it only on first time after dropping the widget on the sidebar.

Next, very important things

66

Results output page - this is a page url where user will see results of filtered content.

By default, when you activate your plugin, new page "MDTF Results Page" will be added automatically. And it will be used as output page link by default.

Results output template is a template file of theme that used for results display. By default, it uses search page template, but it's not very well, so I add some awesome templates for creating your directory + catalogue constructor.

Reset link - is link where user will be redirected after clicking on reset button.

Results output templates description

First of all, create new page and add to it's content shortcode

[meta_data_filter_results]

Set template Template MetaData Filter in page attributes. Save this page. Copy url of this page.

Go to MDTF Filters > MDTF Settings and add this url to Search Result Page

So, you set default output page.

REHub theme has 6 types of modified templates for creating directories with plugin. Let's see each template.

1. Mansonry grid template - catalogue/filter-masonry (you can add this name to results output template).

This template render results as 2 column masonry grid layout with sidebar. You can leave blank results output page.

This template can be used only for posts.

2. Catalogue constructor - catalogue_constructor (you can add this name to results output template).

For creating settings of constructor, add page (it will be main page of your catalogue) and set template catalogue constructor in page attributes

Now you can see additional panel with settings. Let me explain each setting.

Enable title of page before posts? - if you enable this, your catalogue will have title.

Enable content of page before posts? - this will include content of page before catalogue items

44

55

 

Choose design of posts - there are 3 different type of design

Fetch Count - this is how many posts you would like to show on one page. I recommend to use 9 or 12 for 3 column design, and 10 for lists and 2 column.

Name of post type - this option is very usefull if you want to create directory from custom post type. Set name of any post type. Most of plugins create custom post type and you can use any of them to create your unique catalogue.

44

 

Show taxonomy - another good option, that you can show in results any custom taxonomy.

68

 

Show exerpt - if you want to show exerpt, set how many symbols.

Add values from custom fields

These great set of option will make many developers and customers very happy. Now, you can show any value from custom meta fields of your website. Each set of fields has it's own icon, title and value + css class, so, if you know css, you can create unique style of catalogue without php codding. Only with use of css.

Also, in previous part I tell you how to set names of custom fields with plugin. Now you can use them in this place.

69

If you know css you can change your design of catalogue in any unique way, because each row has it's own class. For example, I created this style in 5 minutes without changing any files of theme. Just add some css to theme options - general options - custom css

44

 

Add button to end? This option add read more link to end of item (or affiliate button)

Important. When you use catalogue constructor with filtered widget or shortcode you need to add link of your published page with constructor for output page link.

77

 

3. Top review lists - template-toprating (you can add this to results output template).

This template can be used only for creating catalogue of review posts or product reviews of theme.

Important. When you use catalogue constructor with filtered widget or shortcode you need to add link of your published page for output page link.

64

If you want to have score of review as one of filter criteria, don't forget to reflect this value as I describe above (rehub_review_overall_score - the name of total score meta field).

Demo of this template with filter

4. Woocommerce template

For using woocommerce shop with filtered data of plugin, you need add to output template woocommerce/archive-product

5. Easydigitaldownload

If you want to create catalogue for easydigitaldownload, use archive-download name of template

6. For creating offer archive with Thirsty Affiliates plugin

If you use Thirsty Affiliate Links to create offers, you can also create filterable directory of offers or coupons. Add template-affarchivegrid as result output template if you want to create grid style directory or template-affarchivelist if you want to create list style directory. Result output link must be a link to a page with your archive.

Ajaxed filter and template

From 3.6 version of theme, you can add full ajaxed templates. When you filter your content with ajaxed template, your link doesn't change and always looks good.

Theme has 4 templates for this + woocommerce templates.

For using ajaxed filter, create blank page and add such shortcode to it

[mdf_results_by_ajax shortcode='mdf_custom template=template/list post_type=post orderby=date order=desc page=1 per_page=10 pagination=tb' animate=1]

See description of attributes

For template attribute you can use such names

template/list (for any post type)

template/column (for any post type)

template/reviewlist (better for posts with review)

template/offer (for thirstylink post type)

Also, it's very important to use on this page mtdf filter or widget with enabled ajax options

 

For output link and output template in settings of widget or shortcode, add - self

 

Ajaxed woocommerce product page

You can also create ajaxed woocommerce filtered page. Logic is the same, but you need to add another shortcode

[mdf_results_by_ajax shortcode='mdf_products columns=3 per_page=12 pagination=tb' animate=1]

See description of mdf_products

Another settings of data filter widget

Let's consider taxonomy block in the widget. Do you remember what I wrote about taxonomy html-item in filter, so which taxonomies must be on front decided is here, just check them and save the widget

Lets consider taxonomy options when you are pressing Options button. You can select here how the taxonomy will appears on the front: checkbox or drop-down. You can select title for first option of the taxonomy if it is drop-down, select which terms to hide if you are not want to show them 

ss

One secret! Imagine that you have taxonomy Locations, and want to show this as: Countries, Regions, Cities – parent,child,child – and each has its own title of first option. It simple, just write in textinput Custom name/title for taxonomies: Countries^Regions^Cities

If you selected the taxonomy view as checkboxes, another option appeared Block max height – you need to set it in pixels if you have for example 300 terms and such high box can broke your layout on front. If you set this max height scroll bar will appear if block takes more than 300 px.

How to add sort panel before posts loop

Another great option of filter plugin is ability to add sort panels to filter results.

77

 

First of all, you need to create sort panel. Go to MDTF filters - MDTF Sort panels. Then, when you add sidebar or shortcode, you can choose this sort panel. More about sort panel

 

Adding form by shortcode

Adding filter form by shortcode has very simillar logic, but more customizable.

First difference, that you can choose what fields to include to form.

76

 

Also, you can choose taxonomy.

There is one feature in shortcodes – skins, you can select how your shortcode will appear on front

77

I created some skins for you.

Default and dark - is shortcodes by default. It has 3 column and button in the end.

Defaultfullwidth and darkfullwidth - is form that you can use with full width layout. It has 4 column.

Also, I create darkmobile and defaultmobile shortcodes. What do they mean? As you know, mobiles has small resolution, so website has only one column on mobiles. Sidebar is displayed at bottom of page, and when you add filter widget to sidebar it will be visible under all content. So, if you want to show filter form also before catalogue results (but only on mobiles), choose this layout.

After saving shortcode, copy code and paste in any page where you want to see form

78

 

How to add slideout panel

From 3.6 version of theme, you can add slide out search panel. This is very usefull if you use full width templates.

For adding such panel, you need to change your search shortcode

[mdf_search_form id="749" slideout=1 location="right" action="click" onloadslideout=0 toppos="247"]

In this shortcode, you must change id to your's. (you can find it on page where you create shortcode)

In this mode you can slideout search form from right or left, and use for it additional parameters:

Tip. How to add full width 4 column woocommerce products page

Create page and set it template as full width template. Then add such shortcodes to content

<style>.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{width: 22.75%; margin: 0 3% 2.992em 0;}
.woocommerce ul.products li.last, .woocommerce-page ul.products li.last{margin-right:0;}</style>
[mdf_results_by_ajax shortcode='mdf_products columns=4 per_page=12 pagination=tb' animate=1]

This page is good with slideout panel

Specification of products

Many of customers ask me to create specification functions. So I made this. When you add all data for criterias you can easily add specification of product on your page by shortcode

[wpsm_specification]

This shortcode shows specification of current post. Also, you can show specification for any post by shortcode

[wpsm_specification id="34"]

Also, you can easy add this shortcode by button in text editor

83

Product finder chain

Another great option that I added to v 3.0 - is product chain shortcode. You can use it to create finder for any of post types.

 

79

Also you can add this shortcode to text widget

80

 

Note. For using this shortcode, you need to install plugin mdf-taxonomy-chain-menu. You can find it in theme folder/plugins/mdf-taxonomy-chain-menu.zip

For adding this taxonomy chain use shortcode

[mdf_chain_menu post_slug='product' taxonomy='product_cat' term_id=0 exclude'' show_count=1 button_title='Watch It' target='_blank']

* post_slug – which post slug to use in chain menu. Default is ‘post’
* taxonomy – taxonomy which terms show. Default is ‘category’
* term_id – start term ID. 0 means all
* exlude – which terms hide. Use comma
* show_count – show count of posts in term. Default is 0
* button_title – title for button with link of selected post. By default is ‘GO!’
* target – how to open selected post. Default is ‘self’

How to make filter widget with white background

Just open style.css file of theme and find in bottom such code

/***for dark widget - you can delete if you want white widget***/
.sidebar .widget.widget-meta-data-filter { background-color: #212121; color: #fff; padding: 20px }
.sidebar .widget.widget-meta-data-filter h3, .sidebar .widget.widget-meta-data-filter h5 { color: #fff }
.sidebar .widget.widget-meta-data-filter h4.data-filter-section-title { background-color: #5b5b5b; color: #ffffff; margin: 20px -20px 10px !important; padding: 10px 20px; }
.sidebar .widget.widget-meta-data-filter .mdf_textinput, .sidebar .widget.widget-meta-data-filter select { border: 1px solid #fff; }
.sidebar .mdf_widget_found_count { background-color: transparent; color: #fff; font-size: 13px; font-weight: bold !important; padding: 0; }
.sidebar .widget.widget-meta-data-filter .mdf_range_max, .sidebar .widget.widget-meta-data-filter .mdf_range_min, .sidebar .widget.widget-meta-data-filter .mdf_calendar{ border: 1px solid #fff}
/*** ***/

Delete it. That's all

How to add filter widget only on page with catalog

Use for this plugin Woosidebar that bundled in theme. Also I recommend you do not use plugin custom sidebars for this purpose.


Docs for WordPress Meta Data Filter & Taxonomies Filter here

How to get A grade on Yslow and PageSpeed

First of all, I want to tell you that if you have slow hosting you can't get good speed for your site even you are a master of caching websites. How to check your hosting? I want to give you advice. Go to your admin panel of wordpress. If it loads very slow - you need to change your hosting.

Ok, you have good hosting. Let's do some improvements.

First of all, if you use many ADS on page + social buttons + external scripts - you can't get A grade, because you can't cache external scripts and you lose many points. But, even if you don't get A grade, don't upset. The most important thing - is your site speed. It must be under 5 second. 3 second - good, 1 second - awesome. Even if you get C grade, but your site loads under 1 second - this is perfect.

Let's talk about some ways to get good speed and some cache plugins.

1. Hyper cache + Autoptimize + htaccess tricks.

I very like this way, because Hyper cache is one of the cache plugins that don't conflict with many other plugins. And it's very easy. I don't change any settings, just enable it.

Tip. If you use woocommerce, add your cart url to uncached pages. For this, copy link to cart page for woocommerce. Go to Bypasses tab in Hyper cache settings. And add this link to Exact URIs to bypass

 

66

Hyper cache creates database and page cache.

Next thing that you can do - create html, js,css cache. You can use next good plugin Autoptimize. After enabling, you need to enable different options.

In difference from others cache plugins, it's more safety. If you have troubles with other plugins, try to do next. Enable advanced options

 

55

 

and try to check Force JavaScript in <head> and Look for styles only in <head>. For example, if you use built-in meta filter plugin, I recommend you to check Look for styles only in <head> or many functions of plugin will not work.

Next thing that you can add for geting more points and speed - set file expiry. For this, you need to add some code to your file .htaccess. You can do this from admin panel if you use Seo by Yoast plugin. Just go to SEO - Edit files.

Add to the end of file such code


# ----------------------------------------------------------------------
# Expires headers (for better cache control)
# ----------------------------------------------------------------------
# These are pretty far-future expires headers.
# They assume you control versioning with filename-based cache busting
# Additionally, consider that outdated proxies may miscache
# http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/

# If you don't use filenames to version, lower the CSS and JS to something like
# "access plus 1 week".
<IfModule mod_expires.c>
ExpiresActive on

# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"

# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"

# Your document html
<FilesMatch \.(html|xhtml|xml|shtml|phtml|php|txt)$>
ExpiresDefault "access plus 0 seconds"
</FilesMatch>
ExpiresByType text/html "access plus 0 seconds"

# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"

# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"

# Favicon (cannot be renamed)
<FilesMatch \.(ico)$>
ExpiresDefault "access plus 1 week"
</FilesMatch>
ExpiresByType image/x-icon "access plus 1 week"

# Media: images, video, audio
<FilesMatch \.(gif|png|jpg|jpeg|ogg|mp4|mkv|flv|swf|wmv|asf|asx|wma|wax|wmx|wm)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"

# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"

# Webfonts
<FilesMatch \.(eot|ttf|otf|svg|woff)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"

# CSS and JavaScript
<FilesMatch \.(css|js)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"

# Static assets
<FilesMatch \.(swf|pdf|doc|rtf|xls|ppt)$>
ExpiresDefault "access plus 1 year"
</FilesMatch>
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType application/pdf "access plus 1 year"
ExpiresByType application/msword "access plus 1 year"
ExpiresByType application/rtf "access plus 1 year"
ExpiresByType application/vnd.ms-excel "access plus 1 year"
ExpiresByType application/vnd.ms-powerpoint "access plus 1 year"
</IfModule>
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>


W3 Total Cache

This plugin is a tool like all-in-one. You can set page, object, browser, files, CDN, etc.

This is very powerfull plugin with huge of settings. The main problem - very often conflicts with different plugins.

I can recommend this plugin if you don't use many plugins.

If you have problems with theme with this plugin, in 99% cases this is because conflict W3 Total Cache with one of your plugin. In 90% cases this is because js and css minify. So, if you have such problems on frontend (for example, all tabs, sliders, grids are broken) - just disable css and js minify.

Tutorial for setup W3 Total Cache

Some words about images

You can try to use plugin WP Smush.it to reduce image file sizes and improve performance.

Also, theme has 2 ways for generating thumbnails - with BFI resizer and with standard wordpress resizer. First way is more better, but. note, that this way don't work with CDN. So, if you want to use CDN, you need to disable resizer. Go to Theme options - Global Enable/Disable and disable checkbox.

When you use resizer, you will see crop on images. On some servers this crop is not correct, so you have two ways to fix it. 1 - disable image resizer + disable wordpress crop (Settings - Media) or make small changes in functions.php. For second way - open function.php of theme and find line 298

$params = array( 'width' => $width, 'height' => $height, 'crop' => true);

Change to

$params = array( 'width' => $width, 'height' => $height);

Also, I need to tell you that theme generates many predefinite image sizes. It's good for page speed (because, wordpress grabs ready sized image and doesn't generate image each time users view a page), but it's bad if you have small disc space on hosting and many images. So, you can disable creating image sizes. For this, open functions.php and delete this code

	add_image_size( 'medium_news', 310, 175, true );
add_image_size( 'small_thumbs', 100, 70, true );
add_image_size( 'med_thumbs', 120, 90, true );
add_image_size( 'med_thumbs2', 120, 74, true );
add_image_size( 'feature_slider', 640, 400, true );
add_image_size( 'feature_slider_right', 300, 190, true );
add_image_size( 'video_big', 430, 310, true );
add_image_size( 'video_narrow', 190, 90, true );
add_image_size( 'news_big', 310, 310, true );
add_image_size( 'small_news', 200, 140, true );
add_image_size( 'grid_news', 300, 200, true );

Also, change line 311

$image_url = wp_get_attachment_image($image_id, $size , false, array( 'alt'   => get_the_title() ,'title' =>  get_the_title()  )); 

to

$image_url = wp_get_attachment_image($image_id, array($width,$height), false, array( 'alt'   => get_the_title() ,'title' =>  get_the_title()  )); 

Well. What way do you need to use? It depends on your trafic and plugins. In 80% cases you just need good hosting. That's all. If you want to improve page speed and you have under 1000-2000 users in day - try install Hyper Cache. W3 Total Cache is good if you have high load website because it has many unique options, for example, CDN support, memcache and other. But you need to have VPS or dedicated webserver + good knowledge to get all good things from this plugin.

Some tips

Typography like on demo site

If you want to have such typography like on demo, so go to Theme Option - Font Options and choose in Block Titles font Oswald, then go to Theme Option - Main Options and set such css code to Custom CSS

.article-sec .pattern{box-shadow: inset 0 0 120px #111;}
.tabs_img .overlay_post_formats.review_formats_score{font: normal 32px/32px 'Oswald',trebuchet ms;}
.heading h5, .heading .head_section{font:20px/20px 'Oswald',trebuchet ms,arial;}
.shop_carousel .product_details .price {font: 18px/18px 'oswald',trebuchet ms !important;}
.shop_carousel .quick_buy {font: 13px/13px 'Oswald', trebuchet ms}
.btn_more{font:14px/14px 'oswald',trebuchet ms;}
html#ecwid_html body#ecwid_body div.ecwid-productBrowser-price {font: 22px/22px 'oswald',sans-serif !important;}

Satisfy results.

How quickly add sliders, gallery carousels in post

Sometimes my clients ask me how to add review to gallery posts. I want to tell you that it's impossible. But you can add to review posts (or other) any slider, carousel or gallery with built-in shortcode plugin.

How to work with shortcodes

For adding slider. There is super easy way to add slider with post images to post. Add any pictures from standart wordpress uploader.

You can add many photos at once, just hold ctrl. When you upload pictures, don't insert them in post, just close popup

Click on shortcode button. Choose slider from post images shortcode in media section. Click to insert. And, it's wonder. All images that you uploaded from post will be in slider.

Note, slider generates images with large size of pictures. You can change this size if you need on page Settings - Media. Width of post content is 640px, so I recommend you to use it. And I like 400px height, but you can add any height.

For easy adding carousel. Click on standart add media button of wordpress. Create gallery of images and insert it in post. No matter what gallery settings you set, so leave it by default. Then go to text view of visual editor. In place where gallery added you find code like

[gallery ids="1042,1041,1040,1043"]

Copy only ids, it will be like 1042,1041,1040,1043 and erase gallery shortcode. Click on theme shortcode button. Choose Gallery carousel shortcode, then you can add title of gallery, insert copied ids. And click insert button for adding to post. That's all, enjoy.

How to add notice on your ads when users use adblock plugin

From version 2.2.0 you have an option to set notice on your ads when people use adblock that cuts ads. Go to theme option - Ads option to enable this option. If you want to add such notice to your post (or widget ads), just wrap your add with

<div class="mediad"></div>

Once again, thank you so much for purchasing this theme.
I'd be glad to help you if you have any questions relating to this theme. If you need some customization, you can write me on

TF PROFILE
Some credits

Vafpress Framework here
Font Awesome - Icons.
Some custom functions from wp kama
Some graphic from DuckFiles.com, premiumpixels.com, shelf psd mockup
Carousel – CarouFredSel jquery plugin
Slider – FlexSlider jquery plugin
Lightbox - Prettyphoto
Vertical newsscroll - totemticker
Jquery inview plugin
Sticky js
Countdown – CountDown plugin by littlewebthings project

Attention! Photos of gadgets and devices that you can see in preview pictures - are not available in sources. But you can download them here.

Back to top