Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!
The Straightway - Coming soon unique creative Page is a simple, contrast, stylish and professional look. It suitable for Creative studio, visual portfolios, wedesign company, fashion, personal portfolio, Agencies and business type web site, It's a responsive template so it looks perfect in desktop, ipad and all mobile devices. Template comes with 4 module |
The folder named Straightway html contains all the main files to be implemented on your project. You can change the theme color easily by editing the single color-dark.css and color-light.css file. Inside each folder you see the following files:1. [CSS] folder -
2. [js] folder -
3. [images] folder -
4. [php] folder -
4. [font] folder - contain required fonts 6. html files - Required html pages
|
This template is developed by Bootstrap frame work. See the complete reference structure |
HTML code structure |
![]() |
|
In <head> tag, all the CSS, Javascript files are linked and required jQuery plug-ins are initialized.
The linked CSS and Javascript files are <!-- Included CSS files ================================================== --> ; <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> All source files are placed near the minified file In Header the following plug-ins are initialized:
- JQTWEET (Twitter initialize)
- supersized(Fullscreen image slideshow )
- Join Us form email related code
- Contact form email related code
They are explain in respective section
Other requierd plug-ins are initialize in custom.js file |
LOGOLogo image is placed inside the . logo class in header_content class div.1. Normal size (logo.png) 2. Retinal support size for (logo@2x.png) data-retina="yes"in img tag, than the script will load the retina size logo <div class="logo" > Font
In this template the google font PT Sans Caption, and ralewayextralight are used . <link href='http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700' rel='stylesheet' type='text/css'> |
Page Color/Style:The most important class to change the style of the page is darkStyle and lightStyle. It used to assign the dark style and light style to the particular div. You can combine both the style on same page. Change Background color:You can change the background color easily through color-dark.css and color-light.css file |
The full screen gallery is develop by the plug-in Supersized www.buildinternet.com/project/supersized The plug-in is initialize in header section near the comment line /* Create fullscreen slideshow function */ . See the below initialize code
/* Create fullscreen slideshow function */ Adding images:You can add the both low and High resolution image in this slideshow. The image attribute is used to load the High resolution image for desktop and image_small attribute is used to load the low resolution image for mobile device. This option is additionally added in this plugin Add Slideshow delay time for each slide:The each slide you can add the delay time by using slide_interval parameter
|
In custom.js file you see the belwo code neat the /* magnificPopup plugin Initialization */ comment line. see the below javascript code. Initialize Image$('.magnificPopup').each(function(){ Initialize video$('.magnificPopup-video').each(function(){
|
Countdown TimerThe count down timer is placed inside the counter_time class div To set the time just open the custom.min.js file and scroll down near /* set the Final date in YYYY/MM/DD HH:SEC:MIN formate */ comment line. The variable countdown_value is used to set the time and countdown_finish vaiable is used to display the text after the count down is finished |
TabYou see the tab example in Team page, Just add the nav nav-tabs class in ul tag. The each tab content is linked on li tag using href attribute. The class active is used to visible that tab content. Example:
GraphYou can see the graph example in about us page. To add the graph object simply add graph_container class to the div that hold the ul tag. Set the graph level of the each content using the data-level attribute. The graph animation is activate by graph_display function in main-fm.js file
Example:
Don't delete the <a></a> tag on each li tag, it used to show the graph level.
The design of the graph is control by color.css file. see the color.css file to edit the graph color
Accordion
You can see the accordion in features page. All styles are placed in base.css near the /* Accordion comment and jQuery coding are placed in custom.js
The below coding is the sample body code
<div class="accordion" data-autoHide="true" data-openFirstElement="true" > <!-- Accordion tab --> <dt> <a href="" class="normal"><span class="acc_heading"> <!-- Heading --> <strong>Heading Text panel 1</strong> </span></a> </dt> <dd> <span class="acc_content"> <!-- Tab content --> Lorem ipsum dolor sit a m et, consectetuer adipiscing elit, dolore magna aliquam erat volutpat. </span> </dd> </div> The below attributes are used to make the accordion autoHide and open the first tag element automatically when the accordion load
data-autoHide="true" - Make accordion Toggle/autohide
data-openFirstElement="true" - Open the first tag when the accordion load
Place the each tag Heading inside the <span> tag which the class name of acc_heading on <dt> tag
Place each tab content on inside the <span> tag which the class name of acc_content on <dd> tag |
In page header you see all coding for Email submit action and validation. The contact us email and joinus email are post by mailer.php and mailer.joinus.php file. You can see mailer.php and mailer.joinus.php inside the php folder
In mailer.php file the receiver email id is added by $email_to variable and email subject is set in $email_subject variable You can see the following code in mailer.php file // EDIT THE BELOW TWO LINES AS REQUIRED $email_to = "your@mailid.com"; $email_subject = "Your email subject";
In mailer.joinus.php file the receiver email id is added by $email_to variable and email subject is set in $email_subject variable You can see the following code in mailer.php file // EDIT THE BELOW TWO LINES AS REQUIRED $email_to = "your@mailid.com"; $email_subject = "Your email subject - Join us"; The email submit action placed in index.html file near // Email submit action in <head> tag // Email submit action $("#email_submit").click(function() { $('#reply_message').removeClass(); $('#reply_message').html('') var regEx = ""; // validate Name var name = $("input#name").val(); regEx=/^[A-Za-z .'-]+$/; if (name == "" || name == "Name" || !regEx.test(name)) { $("input#name").val(''); $("input#name").focus(); return false; } // validate Email var email = $("input#email").val(); regEx=/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+[A-Za-z]{2,4}$/; if (email == "" || email == "Email" || !regEx.test(email)) { $("input#email").val(''); $("input#email").focus(); return false; } // validate comment var comments = $("textarea#comments").val(); if (comments == "" || comments == "Comments..." || comments.length < 2) { $("textarea#comments").val(''); $("textarea#comments").focus(); return false; } var dataString = 'name='+ $("input#name").val() + '&email=' + $("input#email").val() + '&comments=' + $("textarea#comments").val(); $('#reply_message').addClass('email_loading'); // Send form data to mailer.php $.ajax({ type: "POST", url: "mailer.php", data: dataString, success: function() { $('#reply_message').removeClass('email_loading'); $('#reply_message').addClass('list3'); $('#reply_message').html("Mail sent sucessfully") .hide() .fadeIn(1500); } }); return false; });
The joinus email submit action placed in index.html file near // Joinus Email submit action in <head> tag // Joinus Email submit action $("#joinus_submit").click(function() {
Google MapThe Google map is palced inside the map_canvas id div. The map custom code is placed in custom.min.js near the comment line // Google map Code To add the location, just add the Latitude and Longitudes value to the variable The Logo is palced inside the map folder that placed inside the images folder. |
You can see the Twitter feed in Home page left area. Just use the below code to add the Twitter feed inside any div <div id="jstwitter" class="slideshow_tweet alignRight"> The cycle plugin is used to activate as a tweeter slideshow. The cycle slider is initialize in jquery.jstwitter.js file near the comment line // initilize the cycle plugin The twitter is initialize on the header of the page, near the comment line /* Twitter initilize */ see the below code $(function () { The following files is used for Twitter feed Set the Twitter account: To se the twitter account, just add the username in jquery.jstwitter.js file on 10th line |
There are six css files used in this template. They are
1. main.css = The template structure is design in this file All source files are placed near respective file |
Below js files used in this template. They are
1. jquery-1.7.1.min.js 3. bootstrap.js It's a main file which control whole web site. I gave explanation about the functionality of this file by adding comments in this file. I hope you understand the code. 5. jquery.magnific-popup.min.js Magnific popup coding 6. supersized.3.2.7.js and supersized.shutter.min.js Home page fullscreen gallery slideshow plug-in coding 7. jquery.jstwitter.js 8. jquery.nicescroll.min.js 9. jquery.comingsoon.min.js All source files are placed near respective file |
Inside PSD folder you can see the following files
1. Layout.psd- In Layout psd files all pages of the website are show on separate layer folder, you can view the page by hide/show the layer. see the below screen shot
|
The following Plug-ins are used in this file
bootstrap - http://twitter.github.io/bootstrap/index.html
jQuery Cycle - http://jquery.malsup.com/cycle/
Mouse wheel - http://brandonaaron.net/code/mousewheel/docs
Supersized - www.buildinternet.com/project/supersized
magnific-popup - http://dimsemenov.com/plugins/magnific-popup/documentation.html
nicescroll - http://areaaperta.com/nicescroll/
custom-content-scroller - http://manos.malihu.gr/jquery-custom-content-scroller/
Twitter - codebird -https://github.com/mynetx/codebird-php
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.
Thanks,
|