WordPress-Christmas-2010-15

Enqueue comment-reply.js – The Right Way

Since Google takes the loading time of a page as a ranking factor, it is always important for a theme designer to incorporate the required resources correctly. In Xtreme One WordPress Framework our JavaScripts are loaded only when they are really needed. Do you have a slider widget on the home page, then the JavaScript for the slider included only on the homepage.

Also including comment-reply.js can be optimized. In the Theme TwentyEleven we can find it in header.php (Line 58):

if ( is_singular() && get_option( 'thread_comments' ) )
	wp_enqueue_script( 'comment-reply' );

That means, if "Enable threaded (nested) comments" in the Discussion Settings is activated and if it's on a single page, then load the script comments-reply.js.
But we also don't need the script on pages where there is no comment form and not on the homepage if it's a page. Neither do we need the script if comments are closed or not allowed.
Or easier to say: We only need it, if "Enable threaded comments" is activated and a comment form is displayed.

Using the example of TwentyEleven I show now how to do it better. First, we delete from the header.php the lines

if ( is_singular() && get_option( 'thread_comments' ) )
	wp_enqueue_script( 'comment-reply' );

In the functions.php we implement the enqueue function of the script

function xtreme_enqueue_comments_reply() {
	if( get_option( 'thread_comments' ) )  {
		wp_enqueue_script( 'comment-reply' );
	}
}

Now we get to the important part. We add to the function twentyeleven_setup() this line:

add_action( 'comment_form_before', 'xtreme_enqueue_comments_reply' );

The Hook comment_form_before is only there when the comment form is loaded and we are adding the enqueue function for the script. A positive side effect, the script is now loaded at the end of the document and does not hinder the loading of the site.
At best, you create a Child Theme, so the changes are protected against overwriting when you update WordPress the next time. Maybe the WordPress Dev team will use this approach in a future version of their default Theme TwentyEleven.

xtreme-one-wordpress-framework

Win 5 Licenses Of The New WordPress Framework Xtreme One Version – Including Awesome New Features!

With version 1.3 many features were added to improve the workflow and significantly improve page performance. An overview of all the special features of Xtreme Theme can be seen here:

Besides many small changes under the hood, the new Widget System Extensions is one of the biggest innovation in Xtreme One.

  • For multisite installations widgets can be declared as a side wide widgets, which means they appear on all existing and future blogs.
  • Widget Manager to manage various features as well as turning on or off the widgets.
  • Extremely comfortable widget filtering logic, see video: Different sliders for different categories including conditional editor with drag and drop and syntax check.
  • Quick duplication of widgets for multiple use.
  • Simple combining multiple widgets to a tabber, see video: Create a tabber from widgets.
  • Scripts will only load when they are needed.

Also new are the jFancy Mediaslider and a Carousel Slider, which are available for posts and as a media slider. With the media slider you can just insert images from your media library instead of choosing an image of a post. You can link these images either to the attachment page, the corresponding article or a user defined link.

The Xtreme Social Widget added the new Google+.

Another feature are the subtitles for posts, pages and custom post format.

Xtreme One Framework supports post formats. Thus it is possible with any Childtheme, to operate a Tumblr-like blog.

The selectable positions of the navigation has been increased to 12.

Xtreme One costs only $79,95 and is available here.

How can you win a license?

We are giving away 5 licenses for the Xtreme One Framework with a Childtheme of your choice. One license will be given away among the commentators in our comment area. 2 more will be raffled among those who tweet with the Hashtag #xtremeonewpe about Xtreme One and two licenses will be raffled among all the bloggers who write about Xtreme One in their blog and leave a trackback here. The raffle will run until September 23rd 2011, 23:59:59 PST Time.

The winner will be announced on September 24th at the end of our Xtreme One session at the WordCamp Germany in Cologne.

Good Luck to everyone!

We just announced the winner of the licenses here:

Congrats to the winner!

Everybody else can grab a 20% discount for Xtreme One until October 3rd 2011 with the coupon code: WCK11

Launching WordPress Framework Xtreme One!

We are very happy and proud to announce the international launch of Xtreme One WordPress Framework today. After a very successful one month pre-launch in Germany we are excited to offer Xtreme One for only $79,95 worldwide now. Xtreme One was programmed by Heiko and I, Alex is responsible for the design.

Why another WordPress Framework?

My idea of a WordPress Framework starts where most of the others are given up - to give the user the complete control of his layout. That's why Xtreme One is worldwide the only WordPress Framework, which is able to create fixed, fluid and flexible layouts. Create in a matter of minutes your own desired website layout with just a few mouse clicks! Check out the video and get convinced by Xtreme One.

Focus on the most important thing – your vision!

Efficient functions enables you to work extremely fast, without writing code. Hence, you have more time to create your design.

It's the details that matter

  • 6 layout variations in content area.
  • Widths of sidebars flexible adjustable in px, em or %
  • Free positionable navigations with 4 different stylesheets for WP Menus, page or categories
  • Able to add teaser and footer with dynamical created widget areas in 28 layout variations and up to 5 columns.
  • Layoutmanager  - different layouts and sidebars
  • 12 additional widgets: 3 slider widgets, 5 widgets for column and row based output of your articles and pages, printable and accessible tabber, last tweets, newsletter and social links.
  • 3 comment form layouts, additional text fields, adjustable avatar size and alignment
  • Combining of stylesheets and stylesheet compression.
  • Multisite and Localization ready, in English and German.
  • Extensive documentation, support forum, knowledgebase, free updates
  • and a lot more

Launch rebate until December 13th

To celebrate the launch of Xtreme One Framework, we will give you a $10 rebate until December 13th. Just type in LAUNCH in the Discount Coupon field when you check out.

And that's only the beginning!

In the coming months, we will come up with many more innovative ideas for Xtreme One and we will try to make Xtreme One the best WordPress Framework out there. I know it's tough goal, but we will try to deliver!

Buy it now for a limited time for $69,95 and receive free updates with even more features in the future. We hope you will enjoy Xtreme One!

We are looking forward to hear your feedback!