Bootstrap Templates Bundle

Tuesday, May 19, 2015

Themeforest HTML Soft-Rejection Reasons

1. Please avoid trailing commas at the end of JS Objects. For example: { value_1: 5, value_2: 5, };

2. Make sure the CSS file is well documented with proper table of contents. ex:http://www.smashingmagazine.com/2008/05/02/improving-code-readability-with-css-styleguides/


3. There is a lot of redundant code in your JavaScript. For example, the following:

http://envato.d.pr/1hm91

There are multiple uses of SEAFs that all pass in the $. These can all be remove and replaced with a single SEAF.

4. http://envato.d.pr/1baOJ Avoid trailing commas in JS objects
http://envato.d.pr/15n6U
There are multiple version of jquery included in this item, please only include a single version of jquery.

5. Some of your files contain validation errors that will need to be fixed. Please be sure that all files validate before resubmitting.
You can validate HTML at http://validator.w3.org

6. Your jQuery code can benefit from some performance tweaks. Please read:http://code.tutsplus.com/tutorials/10-ways-to-instantly-increase-your-jquery-performance--net-5551

7. 404 error in any link.  Check Browser Console. http://envato.d.pr/1hwqh/2fZnA9LU

8. Please use "nav" tags for all navigation in the template.
http://www.html-5-tutorial.com/nav-element.htm

9. Parts of your design are either difficult to read or have contrast issues. Please make sure all sections of your design have adequate contrast and all text is easily readable.

10. Please delete the images from the main file and replace them with placeholders. http://placehold.it - Please mention this in the item description so buyers understand that they are not included in the download.

11. JavaScript files need to be placed at the bottom, barring critical exclusion. [Modernizr, for instance]

12. There are currently redundant events in your JavaScript. For example, you have multiple $(document).ready() events or multiple $(window).load() events. Please consolidate all code that should occur within a single event.

13. Consider using the preferred .on() rather than .click(), .bind(), .hover(), etc.

14. All JavaScript should be written with “use strict” mode on.

15. Your jQuery code can benefit from some performance tweaks. Please read: http://code.tutsplus.com/tutorials/10-ways-to-instantly-increase-your-jquery-performance--net-5551

16. Please have the original author open a support ticket to verify the partnership. Reference the ticket ID when resubmitting. (If the original item author is different person)

17. There is excessive blank space between your code blocks. Please fix this. http://envato.d.pr/1fwqV/5GdnjUPA

18. Inline CSS is not permitted. Please remove all inline CSS.




For WordPress Soft rejection: http://hasibtutorial.blogspot.com/2015/06/themeforest-wordpress-soft-rejection.html

How to add frontend post / content addition option in WordPress

Step 1. Create a new page with this page template
Step 2. Fill the form, to create a post
Step 3. Check Dashboard, post added or not.

Note: You can change post type and status from here

  1.  'post_type' => 'post',
  2.  'post_status' => 'publish'





  1. <?php
  2. /**
  3.  * Template Name: Front End Submission
  4.  */
  5. get_header(); ?>
  6. <div id="primary" class="site-content">
  7.         <div id="content" role="main">
  8.                 <?php
  9.                 /*
  10.                  * If sent, analyze form data and store them in variables
  11.                  */
  12.                 if (isset($_POST['submit'])) {
  13.                         $name = htmlspecialchars($_POST['myname']);
  14.                         $email = sanitize_email($_POST['myemail']);
  15.                         $message = wp_kses_post($_POST['mymessage']);
  16.                 /*
  17.                  * Create a post for post type "post"
  18.                  */
  19.                 $contact_post = array(
  20.                         'post_title' => $name . ' | ' . $email,
  21.                         'post_content' => $message,
  22.                         'post_type' => 'post',
  23.                         'post_status' => 'publish'
  24.                 );
  25.                 if (wp_insert_post($contact_post)) echo 'Post Added for admin review.<br>';
  26.                 else echo 'Try again: fill the fields';
  27.                 /*
  28.                  * Displaying the basic form
  29.                  */
  30.                 } else { ?>
  31.                         <form action="<?php echo the_permalink(); ?>" method="post">
  32.                                 <label for="name">Nom complet</label>
  33.                                 <input type="text" name="myname" id="name" placeholder="Votre nom" />
  34.                                 <hr>
  35.                                 <label for="email">Adresse e-mail</label>
  36.                                 <input type="email" name="myemail" id="email" placeholder="Votre e-mail" />
  37.                                 <hr>
  38.                                 <label for="message">Message</label>
  39.                                 <textarea cols="50" rows="10" name="mymessage" id="message" placeholder="Votre message..."></textarea>
  40.                                 <br>
  41.                                 <input type="submit" name="submit" value="Envoyer votre message" />
  42.                         </form>
  43.                 <?php } ?>
  44.         </div><!-- #content -->
  45. </div><!-- #primary -->
  46. <?php get_sidebar(); ?>
  47. <?php get_footer(); ?>

Nightery - Night Club WordPress Theme

Nightery - Night Club WordPress Theme Nightery – Night Club WordPress Theme is an awesome design idea for your Night Club, Conce...