Need beta testers for the latest version of SWIFT

Hello Swiftler’s,
I need your help. I made some major changes to the back-end of the theme. Earlier each option of the SWIFT was stored in a separate variable, that’s 200+ records related to the swift in the options table. Though mysql database can handle such number of records easily, it’s not a good practice. So [...]

A complete guide to integrating wordpress and vBulletin

As your blog grows, you might want to build a community around it. If vBulletin is your choice, this guide is for you.
Importing WordPress users to vBulletin 4.0 forum
If there are lot of users already registered on your blog, It’s a good idea to start the forum with those users already registered on the forum. Unfortunately there are no [...]

SWIFT is now XHTML valid

Here are few reasons

  • Validation is a sign of professionalism.
  • Many engines cannot properly catalog or index a site that has serious HTML errors. This can greatly reduce the amount of traffic your web site receives from search engines. With SWIFT you don’t have that problem.

[...]

Prev 1 2 3 Next

Problem with height of div containing floats and inline lists.

Float is one of the most powerful property in CSS, they are the key for many useful layouts and CSS frameworks.  When we float a div, image or any other element, it’s taken out the regular document flow. The most common problem due to this property of float is, when we have a div containing a floated element whose height is larger than the height acquired by the containing div due to the elements in regular document flow, then our floated div falls out side container ( Check the screenshot below). In most cases this is not the result a developer / designer would be expecting.

Floated image flowing out of the container DIV

Floated image flowing out of the container DIV

A simple way to solve this problem of height is to add this piece of code to your style sheet, and apply the clearfix class to the div containing floated elements.


.clearfix:after {
 visibility: hidden;
 display: block;
 font-size: 0;
 content: " ";
 clear: both;
 height: 0;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */

The result of applying the clearfix class to the container div is shown below.

Now donald is with in the container DIV. Cool !!

Now Donald is with in the container DIV, Cool !!

More info about similar fixes can be found at pageAffairs
Explaining this clearfix fix for div’s containing floated is not the main purpose of writing this post, now that you know about this fix lets see how to solve the problem on which I was stuck for 2 days :( .

Problem

A div containing list elements with display:inline; property will not take the height equal to the height of the list element.

I have the following CSS and HTML code

CSS


#nav1-container,
 #nav2-container{background:#ff0;}
 #nav1-container {border-bottom:solid 5px #f00;}
 #nav2-container {border-top:solid 5px #f00}
 ul.navigation {margin-left:-10px;}
 ul.navigation li {display:inline;padding:.5em 1em;}
 ul.navigation li:hover {background:#000}

HTML

<div id="nav1-container">
	<div id="nav1" class="grid_16">

    <ul class="navigation top">
    			<li class="page_item current_page_item first"><a href="http://swiftthemes.com/swiftTest">Home</a></li>
        <li class="page_item page-item-2"><a href="http://swiftthemes.com/swiftTest/?page_id=2" title="About">About</a></li>
    </ul>

	</div><!--/nav1-->

</div><!--/nav1-container-->

<div id="header-container">
	<div id="header" class="grid_16">

        <div id="logo">
        		<h2 class="blogname"><a href="http://swiftthemes.com/swiftTest/">SwiftTheme Test Blog</a></h2>
				<h2 class="blog-title">Just another WordPress weblog</h2>
        </div><!--/logo-->

        <div id="header-ad">

        </div><!--/header-ad"-->

    </div><!--/header-->
</div><!--/header-container-->

<div id="nav2-container">
	<div id="nav2" class="grid_16">
    <ul class="navigation bottom">
    			<li class="page_item current_page_item first"><a href="http://swiftthemes.com/swiftTest">Home</a></li>
        <li class="page_item page-item-2"><a href="http://swiftthemes.com/swiftTest/?page_id=2" title="About">About</a></li>

    </ul>
	</div><!--/nav2-->
</div><!--/nav2-container-->

No matter what the padding of list elements be, the height of container div wouldnt change. Hard coding the height of containers is not an option for me as SWIFT will be used by lot of users, and some may have one row of links and others may 2 or 3 rows.

{ Problem with the height of inline list elements } You can see the home link flowing out of the container.

{ Problem with the height of inline list elements } You can see the home link flowing out of the container.

After trying different approaches to solve this problem, I finally realized that the display inline attribute is the culprit, so I removed the display:inline attribute and floated the list elements (li’s) towards left and used the clearfix class for the container and I finally got it the way I wanted it to look.

Here is what I exactly did..

Changed this

ul.navigation li {display:inline;padding:.5em 1em;}

to

ul.navigation li {float:left;padding:.5em 1em;}

and added clear fix class to both the containers

Changed

<div id="nav1-container">

to

<div id="nav1-container" class="clearfix">

and the result is shown below

See the home link after the fix.

See the home link after the fix.

PS

  • This problem delayed the release of SWIFT by 2 days.
  • Above code is from the v5.0 of SWIFT, isn’t that code poetry??
Design

[Help] Design a logo and mascot for SWIFT and Swiftlers

Hello Swiftlers,
I started working on v5.0, there are going to be lot of features than you can imagine. I would like to release it with a new logo and a mascot for Swiftlers. I need your help with some graphics and logo. I would appreciate if you can spare some time.

What you will get in [...]

SWIFT

Bug in version 4.1.3

Hello SWIFTLERS, there is a small bug in single.php file of version 4.1.3.
An extra div crept into single.php and it was breaking the layout on single post page. I corrected it and uploaded the new version on WordPress theme directory. Use the following download link until its updated on WordPress theme directory.
Sorry for the inconvenience [...]

News

Coming up in December

When I first created SWIFT it was just a simple theme to fit my needs with minimum features. I decided to put in a little more effort and release it under GPL licence for use by fellow WordPress users.It happened to be one of the best decision I ever made.It got good feedback and appreciation from the WordPress community right from the first release and the swift user base is growing monotonously.

Free Themes

version 4.0.1 is out with bug fixes and 2 new features which are not found even in premium themes

As there were several requests asking to support images from other hosts, I found a work around for it. SWIFT now downloads the first image in your post and saves it to wp-content/swift_uploads folder in case if its from other host and use it for generating thumbnails. A feature thats not present in any premium themes :D .

Free Themes

Much awaited SWIFT v4.0 is out.

SWIFT v4.0 is now available for download after much delay due to my personal commitments and academic work.

v4.0 includes

  1. 2 magazine layouts.
  2. 2 different header styles (SWIFT original and the new full width header)
  3. 468*60 ad in the header.
  4. Drop down navigation.
  5. Customizable background colour for the footer.
SEO Themes

Delay in release of SWIFT v4.0

Hello Swiftlers,
I’m going home today . It’s a 2 day journey from Guwahati to Palakollu,  I will not be having internet for the next two days and mostly no computer to , unless I’m lucky to have a plug point in my compartment.
If I’m lucky, v4.0 will be out on monday, else [...]

Free Themes

[Security Risk] Add this fix asap

There is an XSS vulnerability in SWIFT, you should fix it asap.
Even if you are not a swift user you should check your theme for the following vulnerability and fix it.

Feedback

Suggest features to be included SWIFT v4.0

SWIFT v3.2 is coming up with lot of new features like

  • Drop down navigation for categories and pages.
  • Magazine and newspaper layout option for home page.
  • Wide header option.

and a lot more.. Dont miss your chance to suggest a new feature.

SEO Themes

Swift v3.1.1 is out with new features and colour schemes

Swift v3.1.1 is out with more features,some bug fixes and two new colour schemes namely Wordpressed and OrangishBrown. Submit your own colour schemes and customizations using the contact form.

Hacks

Ultimate method to add post thumbanils to your wordpress theme

In this tutorial, I will show you the best method to add post thumbnail feature to your wordpress theme. This is what we are going to do.

We will check if there is any image set in custom fields, if yes we display that image.
Else we check if there is any image stored in the gallery [...]

Free Themes

Official launch of SWIFT v3.0

I’m very happy to announce the official stable release of SWIFT-v3.0.
Apart from the features announced in my previous post there are lot more improvements in v3.0.
Every element of theme is dealt with special care, to provide you with a free premium quality theme.
Here are a few improvements in v3.0

SWIFT is now smart enough to check [...]

Feedback

Preview of SWIFT v3.0.0, need your feedback.

I’m currently working on SWIFT v3.0.0, you can check it in action at GeniusHackers.Com. I would like to have your valuable suggestions and feedback to make it the best. Let us together make premium quality themes available for free.
Whats new in version 3.0.0

Cleaner code, customization will be more easy now.
Featured post slide show.
Tabed interface.
Better comment [...]

Page 2 of 3«123»
Get Help

Why are SwiftThemes server friendly..

SwiftTheme's use minumum number of images and minimum number of external files, thus reducing the number of HTTP reqests and thus reducing the load on server. This makes your site load faster.
Need help customizing SWIFT, Check out our support forum.

Support Forum

Testimonials

Thank you very much for having created a wonderful theme! We use Swift on www.narconon.ca/blog with a few modifications. We like it very much! A few weeks after we applied this theme, our visits increased drastically (+more 400 visits/week)!
-Eric