By: Christian "Kriesi" Budschedl
Hello! First of all I would like to thank you for purchasing my theme! :)
If you have any questions that are beyond the scope of this help file, please feel free to ask your question at the support forum at http://www.kriesi.at/support/.
This file will teach you how to set up and use the “Velvet” WordPress Theme.
This file is really extensive so you might think the theme is hard to use,
actually its not, you probably just might jump to the options page and explore everything yourself, this file is more of a reference work if you do not know what to do, or if you are not familiar to WordPress.
Have fun with your new theme! best regards
The Theme is built with WordPress best practices in mind, therefore it makes heavy use of the WordPress template engine. What exactly does that mean?
Whenever you see a php function call like this within your php files (get_template_part(), get_header(), get_footer() or get_sidebar() ) the theme retrieves a reusable code snippet, most of the time a chunk of code that is used in many different files.
You can either choose to upload the theme to your server via ftp (only upload the unzipped folder „Velvet“ into the folder wp-content/themes/ ) or via WordPress upload function. to use the upload function of the WordPress admin panel make sure to ONLY upload the “Velvet” folder and not the whole archive file that you received by themeforest.
Notice: if you are new to WordPress and have problems installing it you might want to check out this link: Solving broken theme issues
After that is done activate the theme as you would activate any other theme at Appearance->Themes.
"is now the active theme and you will be sent to the Themes Option Panel immediately.
If you are new to WordPress and have problems with setting up the theme you might want to import the dummy content file that comes with the theme. You can import this file by clicking the "Import dummy data" Button of the Velvet Theme options. The theme will then import some dummy posts and pages from the live preview. However you will still need to set some options on your own, like which page should serve as front page or how menus should be displayed. A quick demonstration video can be found here. (its really more a demonstration than a tutorial but it might be helpfull nevertheless. the video was recorded using the Brigtbox Theme but the options are the same for Velvet since the themes share a framework)
If you want to change the general Options of the Theme open the “Velvet” Theme Options Panel (located in your admin sidebar) and click it, you will notice several tabs with options, which we will discuss now one by one.
Front page & Blog page
First of all you have to choose which content your front page should contain. You can either choose to display a page of your choice, or if you dont select a page the blog will be displayed. If you choose to select a page you can then pick another page that will display your blog instead of the default page content. If you want to make the front page look like the one in the theme demo make sure you select a page and then create a unqiue dynamic page template.
Next you can choose to upload your own logo. Make sure that the logo has the correct dimensions. If you need to embed a logo of different size you might need to edit the CSS files directly. We will talk about CSS best practices for the theme in a second after we talked about the last input field on the Theme Options page:
Google Analytics Tracking Code
Enter your Google analytics tracking Code here. It will automatically be added to the themes footer so google can track your visitors behaviour.
General Color scheme and CSS best practices
The theme has various default color schemes that serve as canvas for all further customization. All CSS files for those skins are located in your CSS folder, (one for each skin) )however if you want to edit some of the styles it is recommended to not edit those files directly.
After you have chosen your default skin, if you want to make any further changes we highly recommend copying the style you want to edit and then paste it into the empty custom.css file. Here you can edit the style and it will overwrite the original rule. If you modify your theme that way you can later easily update to newer versions without being in danger of overwriting your changes, since we will never edit the custom.css file.
With only two different color inputs (and the skin selection above) you can easily create new layouts in seconds. You just need to select a primary color for your links and as background color for footer and some other elements, as well as a font color for text placed on those elements.
As you can see the theme generates the color scheme on the fly: In this example we have choosen a dark blue background and white text on that blue background. The white gets applied to the heading and for the text the theme generates a slightly "darker" by adding a little of the blue background.
Stretched or boxed layout
The stretched layout expands from the left side of the viewport to the right. The boxed layout will create a box around your content area that is approx. 1000px wide. if you select boxed you will get additional options for background color and image.
You can choose several fonts that will add a unique feeling to your site. The fonts you can choose are a selection of some of the google free web font archive and applied via cufon, so that windows and mac browsers will display them the same way.
If you want to do minor changes to the css you can enter them here and they will be added to the css. If you want to do major changes we recommend you to use the custom.css file.
Blog and Archive layout Options
You can choose how to display your blog and archive entries. You got the choice between big preview images above the post or smaller ones beside the post.
To set up your footer you need to select how many columns it should be displayed. Once that is done head over to the themes widget page (appearance-> widgets) and add widgets to the footer widget areas displayed here. The default widgets that are displayed in your footer will be removed once you apply any other widgets :)
Once that is done feel free to add text to the footer textarea to display a personal note or a welcome message to the footer bottom, just like seen in the theme demo
The first task when setting up your portfolio is to set the URI scheme for your portfolio single entries. The default is set to "portfolio" so for example if you create a new portfolio entry that should show your latest artwork WordPress will display the url as Http://yourDomain.com/portfolio/latest-artwork.
It is quite important to understand that you need to take care that the slug entered here does not interfere with other category slugs, otherwise WordPress will not be able to find your portfolio entries and simply display a 404 page. Sounds probably a little complicated but as a rule of thumb, if you just make sure that you got no post-category or page with the same name as the slug set here, no problems should occur.
Creating a portfolio page
Creating a portfolio page requires several steps. First of all you need to create a few single entries that contain whatever you want to show to the world :) This is easily done by clicking the "Portfolio Items" link in your admin sidebar and start creating new entries just as you would create new blog posts. Add Images, add categories and if you are done return to the Velvet->Portfolio settings.
Now you need to set the two most important options:
First of all which portfolio posts do you want to show on your portfolio page? SImply select the categories that hold the posts in the select box.
Then we need a page to display those items. Select this page from the dropdown menu and you are done. If you no save the options and head over to this page it should act as an overview page for your portfolio. The default page content wil be shown in the small sidebar beside your portfolio entries.
Once that is done choose which kind of portfolio you want to display:
You can select 1, colum, 2,3 and 4 column porfolios. You can also select how many portfolio entries to display on your portfolio page and if you want to show the portfolio excpert and the pagination
By clicking the [+] and [-] icons at the bottom right of the page you can create an unlimited amount of portfolio pages that contain different workpieces, based on the categories you select.
Setting up contact form and social information is a rather quick task: just select the page that should display the contact form and also select the email address that should receive the mails.
If you add your twitter account name or the link to your Facebook page or profile a social icon will be displayed at the top of your page and at the footer for either of them. As for your worpdress feed: if you dont add anything to the url the default RSS feed will be applied automatically. If you got a feedburner RSS adress you can also enter it here. For example: http://feeds.feedburner.com/kriesi
Next step is to select those categories and pages that should get a unique set of sidebars. For every category or page choosen here the theme will add a new Sidebar Widget area at appearance/widgets. Once you have choosen the pages and categories press save and head over to the widget section of WordPress.
You will see that the new areas just got appended to the predefined ones.
So adding these areas is easy.
However be very careful when removing widget areas that already got widgets applied to them.
WordPress doesn't remember where it stores widgets by name, it stores this information by number. So if I would add a text widget to Contact (widgetarea Nr6 in the screenshot), and then delete the Contact widget area, the widgets would then be in Jobs. (previously in 7, now the new 6)
The Theme comes with support for the new WordPress 3.0 Menu feature. Just open Appearance->Menu in your backends Sidebar and add a New Menu called "Main", then add to this menu whatever menu items you need. If no menu is created a fallback menu will get displayed that shows all pages and a home link.
You can also create additional menus and display them within your sidebar by adding the menu widget to one of your sidebars
The Theme comes with several custom widgets that let you display latest blog posts, latest portfolio entries or your latest tweets either in your sidebar or if used in conjunction with shortcodes also within your content area. It also has a combo widget with 4 tabs taht includes latest comments, latest entries, most popular entries and post tags, as well as an advertising widget, and a social media count widget.
The options are pretty much self explaining, the widgets are named "Velvet Latest News", "Velvet Latest Portfolio" and "Velvet Twitter Widget"
The only widget which might need a little bit of explanation is the social media count widget: it displays the number of twitter follower as well as the number of your rss feed subscribers in the sidebar. The feed subscribers can only be shown if you enter a valid feedburner feed url (this will not work with your default wordpress feed url) Also make sure that the awarness API of your feedburner account is active, otherwise your wordpress installation will not be able to access your feed data.
Writing a post, page or portfolio entry doesn't really differ from doing so when using other themes. You add a title, add some content, and categories and thats about it. In Velvet you need to do a few more things:
If you want to create a blog entry, page or portfolio entry you got the possibility to add either a single featured image or multiple images that get converted to a slideshow. If you have never worked with a slidehsow of one of my latest themes this short demo video might be interesting for you.
When writing the post, scroll down; bellow the text-area you will notice a few extra fields: First you can choose which slideshow type you want to use and if autorotation for this post should be active. Once that is done you can add one or multiple Images and also set diffferent settings for each slide depending on which slideshow you have choosen (eg 3D Slideshows have the option to set a different transition for each slide )
First of all just click the upload button and add upload your image to your web-server. Click the "Use image as Feature Image" button and a thumbnail will be inserted. You then can add a caption title and a caption text if you want to. When uploading a picture all different thumbnail sizes needed for the theme are generated by WordPress. However this only happens if you add new pictures. if you are using pictures that were already uploaded before the Velvet theme was activated, WordPress cannot resize them.
Next you can add a caption or caption title if the slideshow you have choosen supports this. When using the Ken Burns slideshow like in this image you also have the option to set the extra options for image scaling and zooming.
While testing I noticed that the image slider looks best if start and end position are set to the same value, and the starting size is significant higher than the ending size. this leads to a smooth image transition that doesnt move too much. because of the resizing effect it still looks like the image would move as well, even if there are not starting and end points set.
Proabbly the best way to understand these settings is to set 3 or 4 images and then fool arround with the settings until you know what each one does :)
Clicking the small plus and minus icons at the right bottom of the page will let you add new feature images or remove old ones.
When using the Aviaslider you can choose how many blocks and slices you want to display and which direction should be used when transitioning the blocks.Other than with the ken burns slider this settings are set once for the whole slider.
When working with the image slider you can choose to display videos in 3 ways:
1.) When omitting the preview picture simply dont set any picutre, but set the field "apply link to image" to: "embed video when image is clicked"
2.) If you want to display a preview image that disapears when clicked and shows the video embedded do the same step as above, but simply also set a preview picture.
3.) If you want to open the video within a lightbox set the field "apply link to image" to: "Link Manually" and enter the video url into the input field that appears.
Which video files are supported?
Vimeo, Youtube and any other video service that works with Wordpress oembed. Self hosted videos are also supported and used the same way: just add the link to the video url into the input field.
If you want to display self hosted videos: that works as well, but only for HTML 5 compatible data types. The slideshow will automatically embed the movies as HTML5 movies with a fallback flash slider. Supported formats are .mp4, .webm and .ogv.
If you want to upload different formats for different browsers (some browsers support mp4, some ogv, some webm) feel free to do so by just linking to one of these files and uploading the others with the same name but different file format. The Slideshow will automatically check if the browser used to display the video is capable of displaying the content as HTML5 video, and if thats not the case serve a flash fallback. It is recommended to always at least provide a h264 encoded mp4 file.
You can also apply sepecial headings to each page. When writing a post, the section to create advanced headings is located bellow the regular textarea that holds your pages content. By default the heading is set to display only your page title, but you can choose to add a second and third row of information to this title.
What is a shortcode and how do i use it?
Shortcodes are small text snippets that get converted by WordPress. As an example:
Using shortcodes is very easy. To use one, create a new post (or edit an existing one), and in the the editor type a shortcode in brackets, such as:
[quote]This is a pull-quote.[/quote]
to generate a pull-quote. Other example would be the use of shortcodes to create columns within your post:
[one_half first]Content here.[/one_half] [one_half]Content here.[/one_half]
[one_third first]Content here.[/one_third] [one_third]Content here.[/one_third] [one_third]Content here.[/one_third]
[one_fourth first]Content[/one_fourth] [one_fourth]Content[/one_fourth] [one_fourth]Content[/one_fourth] [one_fourth]Content[/one_fourth]
[one_fourth first]Content here.[/one_fourth] [three_fourth]Content here.[/three_fourth]
[one_third first]Content here.[/one_third] [two_third]Content here.[/two_third]
Most shortcodes require you to enter additional information and then get generated by the theme on its own, starting from columns to content slider. You can also choose to nest various shortcodes. For example create 3 columns, and within each of them display a small slideshow. Or do it the other way round: create a single slideshow that slides multiple columns. The sky is the limit :)
Attention: Please make sure to always start new shortcodes on new lines. Most of the time you wont encounter any errors if you don't do that but unfortunately WordPress does mess up the html sometimes. This is true for all shortcodes but the inline ones like drop-caps buttons and icon links, those are the only ones that don't need a new paragraph.
In case you encounter odd behavior always make sure that all shortcodes are closed as expected. Also when trying to nest shortcodes please be aware that you cant wrap a shortcode with the same name around another one with that name: For example: [one_third first] [one_third first]Content here.[/one_third] [/one_third] would result in messed up html code since WordPress is not able to identify which opening tag belongs to which close tag. However what you can do is nest shortcodes within each other if they don't share a name. for example you could easily place a slideshow within a 3rd column tag. Just make sure to add new paragraphs between them ;)
Icon Box shortcodes: The theme comes with iconbox shortocdes (see at the bottom of this page). The Icons used are from the iconset "Iconsweets2" which has a lot more icons then we used. if you want to add some of them, or any other just upload your icons to the image/icons/iconbox/ folder. Once that is done, they will appear in the dropdown box of the visual shortcode generator if you create a new iconbox
Probably the best way to create stunning and complex pages is the Wordpress Template Builder that comes with the theme. Allthough you can of course choose to edit template files the old fashioned way, (by editing them in your HTML editor of choice) the dynamic template generator is a much more flexible solution. So how does that editor work? Before reading the how to you might want to check this short demo video which already describes a little how it is done.
First of all open the editor at Velvet-> Template Builder. You then get asked to enter a name for your new dynamic template. Do so by entering one without any special characters and at least 3 chars long. Hit the "Create Template" button and a blank default template is created.
It doesnt contain any elements yet but we will add some in a second, first lets apply the template to a post, page or portfolio entry of your choice. Simply open the entry you want the template to be applied to and look out for the "Dynamic Template" Sidebar. Here you can now select the template you have just created.
Once selected save the entry. If you look at it in the frontend now it should simply display a blank content area.
To change that we need to start elements to the dynamic template. So head back to the new Dynamic Template you just created and start adding elements. Once an element is added you can easily change the position via drag and drop. To make it as easy as possible we tried to reduce the elements available to the absolute necessary minmum. We ended up with7 "modules":
adds a horizontal ruler to the page to seperate content. Choose between several styles to fit your needs
Simple Text area
adds text to your page. This module is most often used to create a nice looking quote but you can also jsut fill in any html or even shortcodes to displaywhatever content you want.
adds the slideshow of the entry the template gets applied to. This way if you apply the template to different posts and pages it will still display the featured images of each individual entry.
adds a special heading to the dynamic template. either the special heading of the post/page displayed currently or a heading that you can enter diractly
This module behaves similar to the slidehsow: it will by default output the content of the entry the template got applied to. You can also choose to display a different post or page. If you choose to display a different post or page the content of that entry will be displayed instead. If the entry you have choosen is cut by the wordpress "read more" tag the module will output only the part before the read more tag and add a read more button.
adds a blog with sidebar to the template. You can choose which categories should be displayed, as well as how many entries and if a pagination should be displayed as well.
adds a portfolio to your page. You got the same options as in your portfolio section, only with the advantage that you can combine this portfolio with other modules to create unique portfolio pages.
adds one row with either 2,3,4 or 5 Columns to the Page. You can choose the width for each column as well as the content. The available options are:
Page: add page content of a single page
Post: add the latest post from a category. if you choose the same category a second, third, fourth or fifth time in another column the offset will be generated automatically so that you dont display the same post twice
Widget: Enter the name of a widget. the widget can then be used at appearance > widgets. Please be carefull when deleting widgets since the contents of a widget is stored by widget number and not by name. You can read more about it here.
Text:Add some text. html and wordpress shortcodes are allowed.
The Theme uses valid HTML 5 and comes with predefined classes for common elements needed in web design.
All templates share basic elements like header, footer, main, and entry so be carefull when editing those or adding/changing the CSS for those ids and classes :)
The CSS for the theme is split into various files: one that holds the basic markup for layout which is called style.css. We then got one file for the light and the dark sin in your css folder, as well as a shortcode css file. Last but not least we got an empty custom.css file which should be used by you to add your own modifications. Since we never touch the custom.css file when making updates you can easily update to later theme versions without beeing in danger of loosing stylesheet modifications.
The theme uses advanced jQuery functions. You do not need to know how to use jQuery to activate them, almost everything is controlled by WordPress. All the function calls as well as as the custom created jQuery plugins like the slideshows are located in the avia.js file.
Lightbox: a custom pretty photo skin
the lightbox gets automatically applied to links that contain images, youtube videos, vimeo videos, mov files and swf files. if you don't want to activate the lightbox on any of those links add the class 'noLightbox'. if you manually want to apply the lightbox to a link you can add the rel='lightbox' attribute to the <a> tag.
Better documentation can be found here:
Among with the theme come all psd files needed to edit the different skins. With these psds you can even create your own unique Velvet skin.
This is the image array used in functions.php to tell wordpress which image sizes to use. The preview images for dynamic templates at the bottom can be delted if you dont want to use dynamic template files of that size. that will save some performance while uploading and also some webspace on your server.
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36 ); // small preview pics eg sidebar news
$avia_config['imgSize']['related'] = array('width'=>136, 'height'=>114); // small images for related items
$avia_config['imgSize']['portfolio'] = array('width'=>210, 'height'=>150); // small preview pic for default portfolio (4 columns )
$avia_config['imgSize']['portfolio2'] = array('width'=>450, 'height'=>300); // medium preview pic for 2 column portfolio and small 3d slider
$avia_config['imgSize']['portfolio3'] = array('width'=>290, 'height'=>200); // medium preview pic for 3 column portfolio
$avia_config['imgSize']['page'] = array('width'=>690, 'height'=>200); // image for pages and one column portfolio
$avia_config['imgSize']['featured'] = array('width'=>930, 'height'=>390); // big images for fullsize pages and fullsize 2D & 3D slider
$avia_config['imgSize']['kenburns'] = array('width'=>1300, 'height'=>1300); // big images for ken burns slider
/*preview images for special column sizes of the dynamic template. you can remove those if you dont use them, it will save performance while uploading images and will also save ftp storage*/
$avia_config['imgSize']['grid6'] = array('width'=>450, 'height'=>150); // half sized images when using 4 columns
$avia_config['imgSize']['grid8'] = array('width'=>610, 'height'=>220); // two/third image
$avia_config['imgSize']['grid9'] = array('width'=>690, 'height'=>150); // three/fourth image
$avia_config['imgSize']['grid_fifth1'] = array('width'=>162, 'height'=>136); // one fifth
$avia_config['imgSize']['grid_fifth2'] = array('width'=>364, 'height'=>136); // two fifth
$avia_config['imgSize']['grid_fifth3'] = array('width'=>556, 'height'=>136); // three fifth
$avia_config['imgSize']['grid_fifth4'] = array('width'=>748, 'height'=>136); // four fift
you can change these settings in functions.php. the theme will then create different thumbnail sizes according to your changes on upload. You might need to reflect those changes within your CSS file, depending on what you have changed ;)
Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.