<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>front-end Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<atom:link href="https://stampede-design.com/blog/tag/front-end-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://stampede-design.com/blog/tag/front-end-2/</link>
	<description>We are creating better worlds though thoughtful design and technology. Connect with us!</description>
	<lastBuildDate>Tue, 07 Apr 2026 09:09:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://stampede-design.com/wp-content/uploads/2024/02/cropped-Stampede-Favicon-old-32x32.png</url>
	<title>front-end Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<link>https://stampede-design.com/blog/tag/front-end-2/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Running Stampede Constructs</title>
		<link>https://stampede-design.com/blog/running-stampede-constructs/</link>
					<comments>https://stampede-design.com/blog/running-stampede-constructs/#respond</comments>
		
		<dc:creator><![CDATA[Sani Halid]]></dc:creator>
		<pubDate>Sat, 11 Oct 2014 05:15:31 +0000</pubDate>
				<category><![CDATA[Inside Stampede]]></category>
		<category><![CDATA[community building]]></category>
		<category><![CDATA[constructs]]></category>
		<category><![CDATA[curation]]></category>
		<category><![CDATA[design blog]]></category>
		<category><![CDATA[front-end]]></category>
		<guid isPermaLink="false">http://dev.stampedelabs.com/client/v3/wp/?p=6254</guid>

					<description><![CDATA[<p>Staying true to our culture of knowledge sharing and giving, Sani shares his experience of running Constructs, our resident curated content miniblog on front-end development.</p>
<p>The post <a href="https://stampede-design.com/blog/running-stampede-constructs/">Running Stampede Constructs</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead" class="lead">Constructs, our resident curated content miniblog on front-end development was born out of the idea that we at Stampede, of course, love sharing every bit of knowledge we have hoarded. Created in May 2014 and was shared to public 2 weeks later, <a href="http://constructs.stampede-design.com/" target="_blank" >Constructs</a> is updated daily with tips, tricks, articles and demos from brilliant web developers from all around the world.</p>
<div class="full"><img fetchpriority="high" decoding="async" width="598" height="483" class="alignnone size-full wp-image-6255" src="https://stampede-design.com/wp-content/uploads/2016/06/constructs-featured.jpg" alt="constructs-featured" srcset="https://stampede-design.com/wp-content/uploads/2016/06/constructs-featured.jpg 598w, https://stampede-design.com/wp-content/uploads/2016/06/constructs-featured-300x242.jpg 300w" sizes="(max-width: 598px) 100vw, 598px" /></div>
<p>I was tasked to update and curate the content daily at <a href="http://constructs.stampede-design.com/" target="_blank" >Constructs</a>, which is really exciting. Here&#8217;s why.</p>
<h2>Sharing &amp; Learning</h2>
<p>Before this, the designers and developers at Stampede are always Googling for solutions whenever we encounter any roadblocks. When we found the solutions, often times we just set it aside in our own bookmarking tools. One day, we decide, &#8220;hey, why not share the solutions we found with everyone too?&#8221; and that was how Constructs was born &#8211; to compile all the tricks, hacks and trips every one of us have collected from amazing people.</p>
<p>But just taking in the advice would not be right &#8211; we want to give as well.</p>
<h2>Guest Post</h2>
<p>Stampede is a team of brilliant people who do brilliant work and solving a number of user experience design and development every day, sometimes effortlessly. We decided what better than this than to create a Guest Post section to feature tips from favourite front-end developer, <a href="https://stampede-design.com/author/syazwan/">Syazwan Hakim</a> and web analyst, <a href="https://stampede-design.com/author/shaiful/">Shaiful Borhan</a>.</p>
<p>These guest posts are easy to identify, there is a little badge located at the most right along the article headers.</p>
<div class="full"><img decoding="async" class="alignnone wp-image-6124" src="https://stampede-design.com/wp-content/uploads/2014/10/guestpost.jpg" alt="guestpost" /></div>
<h2>Top Posts</h2>
<p>Here are some of the top posts in Constructs:</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6107" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-css-parallax.jpg" alt="blog-constructs-css-parallax" /><div class="full"></div></p>
<h4><a href="http://constructs.stampede-design.com/2014/08/pure-css-parallax-effect/" target="_blank" >Pure CSS Parallax Effect</a></h4>
<p>Parallax effects are almost always handled with JavaScript and, more often than not, the result is not very impressive. In his blog post, Keith Clark found a way to achieve purely CSS parallax effect thus removing all the web performance issues. The result is consistent frame rates and perfectly smooth scrolling. You can also combine the effect with other CSS features such as media queries or supports. When used for the right purpose, CSS parallax effect engages user better and gives them that extra delight while scrolling down your website.</p>
<p><div class="full"></div><img decoding="async" class="alignnone size-full wp-image-6104" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-bootstrap-vs-foundation.jpg" alt="blog-constructs-bootstrap-vs-foundation" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/09/bootstrap-vs-foundation/" target="_blank" >Bootstrap VS Foundation</a></h4>
<p>At scotch.io, Chris Sevilleja loves to talk about Foundation 5 framework by ZURB. Foundation 5 is a great front-end framework that is a solid alternative to Bootstrap. It does have a few features that Bootstrap doesn’t, hence it deserves a look at the features before being dismissed. In this post, Chris outlined a cheatsheet about the difference of Bootstrap vs Foundation in terms of CSS elements, class names and also grid names.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6105" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-css-animation-effect-libraries.jpg" alt="blog-constructs-css-animation-effect-libraries" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/09/css-animation-effect-libraries/" target="_blank" >CSS Animation Effect Libraries</a></h4>
<p>Clever use of animation on websites can certainly make them look more attractive and eye-catching to end users. However, poorly coded animations can easily hog down system resources especially on mobile devices causing the page to feel laggy. Codegeekz author Gavin has compiled a list of 18 CSS animation effect libraries that should help you get started with animating your websites or simply for poking around.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6106" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-css-glitch-effect.png" alt="blog-constructs-css-glitch-effect" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/09/css-glitch-effect/" target="_blank" >CSS Glitch Effect</a></h4>
<p>Chris Coyier showed us the mechanics behind Lucas Bebber’s stunning CSS effect called Glitch. Chris created three copies of the desired area via pseudo elements and these copies are positioned right on top of each other and they can be controlled individually. View more to see his complete guide to create the CSS glitch effect.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6108" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-pure-css-cartoon-character.png" alt="blog-constructs-pure-css-cartoon-character" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/09/pure-css-drawings-cartoon-character/" target="_blank" >Pure CSS Drawings Cartoon Character</a></h4>
<p>Front-end developers’ creativity in “drawing” using CSS never cease to amaze me. This is not limited to static illustration only but also includes animated CSS drawings. Check out the link below to view a collection of cool CSS drawings of cartoon characters by cssdesignawards. Love the pixelated Son Goku!</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6110" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-step-to-draw-with-css.jpg" alt="blog-constructs-step-to-draw-with-css" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/09/steps-to-draw-with-css/" target="_blank" >Steps To Draw With CSS</a></h4>
<p>With the latest advancements in CSS, creating images or icons is no longer a rare thing. By using only one div, you can pretty much “draw” purely in CSS. In this article by Lynn Fisher and Robert Nyman, the authors walk through the basic steps to draw with CSS. As mentioned in this related post, CSS pseudo classes are the basis of this technique in addition to using various borders, background colors or gradients and shadow combination to produce generic shapes.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6102" src="https://stampede-design.com/wp-content/uploads/2018/02/blog-constructs-5-things-front-end-developer-should-learn-in-2014.jpg" alt="blog-constructs-5-things-front-end-developer-should-learn-in-2014" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/08/5-things-front-end-developer-learn-2014/" target="_blank" >5 Thing Front-End Developers Should Learn In 2014</a></h4>
<p>The web industry operates at a breakneck speed and so all front-end developers must continue to learn and keep up to date with the latest trends, methodologies, languages and techniques. In this compact yet excellent article by Joe Howard, you will find 5 useful skills you could master this year that will help you remain at the forefront of the latest web development know-how. Think SASS, Grunt, SVG, CSS animation and custom parallax.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6109" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-slider-comparison.jpg" alt="blog-constructs-slider-comparison" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/08/pure-css-image-comparison-slider/" target="_blank" >Pure CSS Image Comparison Slider</a></h4>
<p>An image comparison slider is a good design approach allowing user to compare differences between two images. After seeing post about “Before and After” by Dudley Storey, Lea Verou has created an experiment to create the same effect by using minimal and purely CSS code without JavaScript. The original markup shows images as CSS backgrounds, so it posed a problem for screen readers. Instead, Lea overlaid a div on an image and made it horizontally resizable through the resize property.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-6103" src="https://stampede-design.com/wp-content/uploads/2014/10/blog-constructs-alternative-to-float.png" alt="blog-constructs-alternative-to-float" /></div>
<h4><a href="http://constructs.stampede-design.com/2014/09/alternative-using-css-float-properties/" target="_blank" >Alternative Using CSS Float Properties</a></h4>
<p>If you have been designing for the Web at all over the past decade you are undoubtedly familiar with the CSS float property. Since the industry adopted the principle of tableless layouts, floats have been the weapon of choice most of us use to lay out our web pages, but is it the best choice?</p>
<h2>Conclusion</h2>
<p>Over a few months of running <a href="http://constructs.stampede-design.com/" target="_blank" >Constructs</a>, I have learned a lot from the articles and demos scoured around the Internet as well as those shared by Syazwan and Shaiful. It also inspires me to be experimental and apply some of the ideas into my projects. We also share our Constructs posts in <a href="https://plus.google.com/u/0/+StampededesignMY/posts" target="_blank" >our Google+ page </a>and some of them have received so many positive feedback. It really made me happy to be able to also inspire people in our industry as well.</p>
<p>Feel free to visit our <a href="http://constructs.stampede-design.com/" target="_blank" >Constructs</a> and tell us what you think!</p>
<p>The post <a href="https://stampede-design.com/blog/running-stampede-constructs/">Running Stampede Constructs</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/running-stampede-constructs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Debugging mobile website through user agents</title>
		<link>https://stampede-design.com/blog/inspecting-element-for-mobile-site-using-desktop/</link>
					<comments>https://stampede-design.com/blog/inspecting-element-for-mobile-site-using-desktop/#comments</comments>
		
		<dc:creator><![CDATA[Syazwan Hakim]]></dc:creator>
		<pubDate>Fri, 04 Jan 2013 23:44:56 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[development tools]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[mobile debugging]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[user agents]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=3264</guid>

					<description><![CDATA[<p>Iwan's wishful thinking was to have the 'inspect element' option available on his mobile browser, until he found a better solution.</p>
<p>The post <a href="https://stampede-design.com/blog/inspecting-element-for-mobile-site-using-desktop/">Debugging mobile website through user agents</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="full"><img decoding="async" class="alignnone" src="https://stampede-design.com/wp-content/uploads/2013/01/inspect-element-stampede.jpg" /></div>
<h2>The situation</h2>
<p class="lead">While working on one of my projects, I encountered an issue to render a mobile website on my desktop for debugging purposes. The task was to restyle the mobile version of the site. To make it even more complicated, the requirement includes no html structure change &#8211; only CSS.</p>
<p>I found it difficult to debug the styling on mobile since instead of being a responsive template, I was working with an adaptive template. Minimising the browser to mobile size and using mobile emulator didn&#8217;t help either &#8211; it still shows the desktop version of the site. But if the site is viewed using a mobile device, it will render the mobile version.</p>
<p>The first thing that came into my mind was, &#8220;<em>Wouldn&#8217;t it be good if we have &#8216;inspect element&#8217; option on our mobile browser?</em>&#8221;</p>
<p>Assuming the wish comes true &#8211; it might work on your mobile device, but not on others. Let&#8217;s not forget there is an abundance of mobile devices in the market nowadays. No developer will want to purchase every single mobile device just to debug the mobile issue.</p>
<h2>The solution</h2>
<p>There is this quote from Henry Louis Mencken of which he says, <em>&#8220;For every complex problem, there is a solution that is simple, neat and wrong&#8221;</em>.</p>
<p>Wrong is not how I would say my solution would be, but definitely better. It comes in the form of the browser&#8217;s user agent. By having the browser change its user agent to act as a mobile browser, we can proceed to safely debug mobile issues. We can also change browser user agents very easily too.</p>
<p>Taking Firefox for example, there are add-ons or extensions to switch between user agents. The <a href="https://addons.mozilla.org/en-US/firefox/addon/override-user-agent/?src=search" target="_blank">Override User Agent</a> extension is particularly useful.</p>
<div class="full"><img decoding="async" width="321" height="71" src="https://stampede-design.com/wp-content/uploads/2013/01/firefox-user-agent.jpg" alt="Default user agent for Firefox" class="size-full wp-image-3286" srcset="https://stampede-design.com/wp-content/uploads/2013/01/firefox-user-agent.jpg 321w, https://stampede-design.com/wp-content/uploads/2013/01/firefox-user-agent-300x66.jpg 300w" sizes="(max-width: 321px) 100vw, 321px" /><p class="capt_block">Default user agent for Firefox</p></div>
<div class="full"><img decoding="async" width="321" height="105" src="https://stampede-design.com/wp-content/uploads/2013/01/android-user-agent.jpg" alt="Android user agent" class="size-full wp-image-3290" srcset="https://stampede-design.com/wp-content/uploads/2013/01/android-user-agent.jpg 321w, https://stampede-design.com/wp-content/uploads/2013/01/android-user-agent-300x98.jpg 300w" sizes="(max-width: 321px) 100vw, 321px" /><p class="capt_block">Android user agent</p></div>
<div class="full"><img loading="lazy" decoding="async" width="321" height="105" src="https://stampede-design.com/wp-content/uploads/2013/01/iphone-user-agent.jpg" alt="iPhone user agent" class="size-full wp-image-3293" srcset="https://stampede-design.com/wp-content/uploads/2013/01/iphone-user-agent.jpg 321w, https://stampede-design.com/wp-content/uploads/2013/01/iphone-user-agent-300x98.jpg 300w" sizes="(max-width: 321px) 100vw, 321px" /><p class="capt_block">iPhone user agent</p></div>
<h2>Conclusion</h2>
<p>In short, you may find that you are able to debug mobile sites using your favourite web developer tools that you have been using on a daily basis &#8211; which goes the very same for me.</p>
<p>Have you got any other solutions to debug the mobile issues? Always happy to hear your thoughts.</p>
<p>The post <a href="https://stampede-design.com/blog/inspecting-element-for-mobile-site-using-desktop/">Debugging mobile website through user agents</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/inspecting-element-for-mobile-site-using-desktop/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Supermassive Custom Template</title>
		<link>https://stampede-design.com/blog/supermassive-custom-template/</link>
					<comments>https://stampede-design.com/blog/supermassive-custom-template/#respond</comments>
		
		<dc:creator><![CDATA[Syazwan Hakim]]></dc:creator>
		<pubDate>Thu, 05 May 2011 12:31:36 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[custom templates]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[theme development]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=1052</guid>

					<description><![CDATA[<p>Supermassive is this powerful, professional WordPress theme, dubbed in their own marketing phrase "the next generation WordPress theme". It could help you to create a great looking theme that allows you to make your own unique and abstract layouts in minutes. Syazwan gladly shares his experience working on this Supermassive custom template.</p>
<p>The post <a href="https://stampede-design.com/blog/supermassive-custom-template/">Supermassive Custom Template</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">Back in December 2010, I&#8217;ve been given a task to code for a design based on the Supermassive templates. For your information, <a href="http://themeforest.net/item/supermassive-a-next-generation-wordpress-theme/132454" target="_blank">Supermassive</a> is a powerful, professional WordPress theme. In their own marketing phrase, it is &#8220;a next generation WordPress theme&#8221;.</p>
<p>
Supermassive can help you to create a great looking theme that allows you to make your own unique and abstract layouts in minutes. You can easily change the position of a particular element since the <code>&lt;div&gt;</code>s are fluid. Imagine you have two horizontal boxes, named Box Left and Box Right. You can easily make Box Right in 100% width by just removing Box Left completely.</p>
<p>
I find this task to code based on Supermassive template really puts my XHTML/CSS skills to the test. I need to optimize everything that I&#8217;ve learned about building reliable yet semantic XHTML/CSS template which works on IE6, IE7, IE8, Chrome, Opera, Firefox and Safari. Working with a custom design on an existing theme requires a different set of considerations.</p>
<p>
The first thing I needed to consider is where to do the front-end coding for the custom design. This is because we want to be able to update Supermassive template in the future when a new version is released. Therefore, I need to consider where to add my front-end codes. After some discussions, we decided to code on a Supermassive Child Theme. It&#8217;s the easiest yet very reliable way to keep the ability to update to new Supermassive version in the future. When updating Supermassive original template, it will only replace the parent theme which is the original Supermassive Theme. In this case, updating the original template won&#8217;t affect the child theme.</p>
<p>
Second thing to consider is the HTML structure. Since Supermassive uses shortcode heavily for its layout based on <code>&lt;div&gt;</code>, I can&#8217;t simply code custom HTML structure. What I need to do is to create each Supermassive element using the shortcode first. Once all elements are created, I can start styling the elements based on design without making changes on the HTML element or structure. Using this method, I can still use any Supermassive shortcode without having to worry about the styling even if the shortcode will never be used.</p>
<p>
The last thing to consider is how to make the template styled according to my custom CSS instead of the original CSS. This is the trickiest part. I need to make sure everything on the custom CSS has the highest priority, so the website will be styled according to it. We can&#8217;t simply remove the original CSS because we still need some styling from it such as the administration interface, sliding effect and JavaScript element.</p>
<p>
For me, the easiest way is to add <code>!important</code> syntax at the end of the styling, e.g. <code>div a {text-decoration:hover !important;}</code>. With that, it will have higher priority. I recommend not to define any font size on the CSS because on current version of Supermassive template, there is a specific panel to change the font size directly.
</p>
<p>
Supermassive is a great tool for WordPresser because it comes with its own JavaScript snippets which includes sliding effect, tabs, and image manipulation. It also has a very user-friendly interface for administration. I&#8217;m sure Supermassive shortcode list will come in handy for beginners.</p>
<p>The post <a href="https://stampede-design.com/blog/supermassive-custom-template/">Supermassive Custom Template</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/supermassive-custom-template/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable HTML Auto-Formatting in WordPress</title>
		<link>https://stampede-design.com/blog/disable-html-auto-formatting-in-wordpress/</link>
					<comments>https://stampede-design.com/blog/disable-html-auto-formatting-in-wordpress/#comments</comments>
		
		<dc:creator><![CDATA[Shaiful Borhan]]></dc:creator>
		<pubDate>Wed, 08 Dec 2010 17:25:04 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[HTML formatting]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=788</guid>

					<description><![CDATA[<p>The "HTML mode" in the WordPress editor doesn't really provide you with total control of the HTML being generated on the frontend. Some of the auto-formatting it does are for instance wrapping your inline elements with &#60;p&#62; and line breaks are also interpreted as &#60;p&#62;. If you're someone who likes full control over the HTML of your content in WordPress, this simple solution might interest you. Shaiful shows you how.</p>
<p>The post <a href="https://stampede-design.com/blog/disable-html-auto-formatting-in-wordpress/">Disable HTML Auto-Formatting in WordPress</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">I find that the &ldquo;HTML mode&rdquo; in the WordPress editor doesn&rsquo;t really provide you with total control of the HTML being generated on the frontend.  Some of the auto-formatting it does are for instance wrapping your inline elements with a &lt;p&gt; and line breaks are also interpreted as &lt;p&gt;.</p>
<p>While this is not a bad thing at all, it is however quite cumbersome if you&rsquo;re using custom shortcodes (that generate divs) in your content creation and you&rsquo;re planning to arrange them nicely in the editor by giving a couple of line breaks for better readability. They will end up in the frontend as &lt;div&gt; wrapped inside a &lt;p&gt;, and you&#8217;ll get some unwanted &lt;br /&gt; as well. Certainly not pretty.
</p>
<p>The auto-formatting function will still run even if you disabled the visual editor entirely because it is not part of the TinyMCE editor. In fact it is performed via a function in WordPress called <a href="http://codex.wordpress.org/Function_Reference/wpautop" target="_blank">wpautop</a> that runs before the content is displayed on the frontend. Thus it is possible to bypass this feature by using the remove_filter function in our theme function.php file. The simple code for a global site-wide effect is:
</p>
<pre class="brush: php; title: ; notranslate"> 
   remove_filter('the_content', 'wpautop');
</pre>
<p>A more elegant approach would be to use a custom field to control which content will bypass wpautop and which not. This way we can still take advantage of the usefulness of the wpautop function for pages that doesn&rsquo;t require fancy HTML. The code below also goes in the function.php file.
</p>
<pre class="brush: php; title: ; notranslate">
function WP_auto_formatting($content) {
    global $post;
    if(get_post_meta($post-&gt;ID, 'disable_auto_formatting', true) == 1) {
        remove_filter('the_content', 'wpautop');
    } 
    return $content;	
}
add_filter( &quot;the_content&quot;, &quot;WP_auto_formatting&quot;, 1 );
</pre>
<p>Using this method, you simply have to add a custom field in your post/page called disable_auto_formatting and give it a value of 1 to bypass the wpautop function. To enable auto formatting, simply change the value to 0 or delete the custom field.   </p>
<p>Have a nice day! </p>
<p>The post <a href="https://stampede-design.com/blog/disable-html-auto-formatting-in-wordpress/">Disable HTML Auto-Formatting in WordPress</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/disable-html-auto-formatting-in-wordpress/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Spam Prevention Alternatives to CAPTCHA</title>
		<link>https://stampede-design.com/blog/spam-prevention-alternatives-to-captcha/</link>
					<comments>https://stampede-design.com/blog/spam-prevention-alternatives-to-captcha/#comments</comments>
		
		<dc:creator><![CDATA[Shaiful Borhan]]></dc:creator>
		<pubDate>Fri, 04 Jun 2010 16:29:40 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[spam prevention]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web security]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=687</guid>

					<description><![CDATA[<p>One of the rules in today's web is if you have forms on your website, you need to have some kind of spam prevention measure implemented. Here Shaiful will talk us through the several methods that can be used and why CAPTCHA isn't one.</p>
<p>The post <a href="https://stampede-design.com/blog/spam-prevention-alternatives-to-captcha/">Spam Prevention Alternatives to CAPTCHA</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">One of the rules in today’s web is if you have  forms on your  website, you need to have some kind of spam prevention measure  implemented.  Here I will talk us through the several methods that can be used and  why  CAPTCHA isn’t one.</p>
<h2>Why not CAPTCHA?</h2>
<p>Well, spam prevention wise CAPTCHA challenge works. But the main problem is it considerably lowers the  user  experience by requiring extra effort and time to read the garbled image  that  may deter the user from completing the form altogether. To overcome  that, they  came out with the audio version of CAPTCHA which seriously, is even  more  troublesome. On top of that, having a CAPTCHA image certainly cripples  the  aesthetics of a well-designed form. With all these shortcomings  however,  CAPTCHA might be the best method to counter manual spammers (humans)  because  they would get too annoyed to do the CAPTCHA challenge.</p>
<p>Apart from image CAPTCHA, we could use a different  version of  challenge question method. One of the popular approaches is to present  users  with simple arithmetic operations e.g. “What is 4 + 2?”   As with CAPTCHA, it is also randomized each  time the form reloads. Another variant is to use questions that  requires  textual answers such as “What animal meows?”. It should be noted that  questions  like these should be made simplistic as it introduces language barriers  between  the users and the system and to prevent the user from taking extra  efforts.</p>
<h2>Alternative &#8220;Are You Human?&#8221; Tests</h2>
<p>The methods described above require user input in  order to  distinguish humans from spambots. This additional step can be  eliminated by  using a little bit of programming logic to validate the form submission  on the  server side. </p>
<p>Spambots usually love to fill out every field on  the form.  We can take advantage of this behaviour to trap the bots by setting up  a field  that is hidden from the user’s view, assuming it would not be filled by  a  legitimate human user. This field has to be a normal type=“text” with a  tempting name like ‘email’ or ‘website’ except it has a CSS “display:none”  property. The  idea is to flag the form submission as spam if this field was filled.  To cater  screen reader users without CSS support, adequate label should be  applied  telling them to leave this field blank. Additionally, bots also have  the  tendency to post links and irrelevant keywords in textarea fields. A  carefully  crafted regex validation on these fields would help prevent faulty form  submissions substantially.</p>
<p>Another advanced approach is to attach a unique,  dynamically-generated token as a hidden field on your form and then  check its  validity upon submission. These tokens can be produced using session  IDs or  simply timestamps. The idea behind this method is to ensure the user  viewing  the form is essentially the same user submitting it. The timestamp  method can  be used to calculate the time elapsed between the page being viewed and  submitted.</p>
<h2>Modern Day Solutions</h2>
<p>In order to stay concurrent with the advancement  of  spambots, the measures taken to combat spammers have also been taken a  step  further by using a collaborative, distributed and intelligent approach  as can  be seen in <a href="http://akismet.com" target="_blank">Akismet</a> and <a href="http://projecthoneypot.org" target="_blank">Project Honey Pot</a>. The Akismet service is fairly  popular  because it comes natively with WordPress, arguably the most used  blogging  platform in the world. What it actually does is it runs numerous tests  on the form  submission data against its own huge collection of black/white list and  returns  the status with a thumbs up or thumbs down. The filter works by  combining  information about spam captured on all participating sites, and then  using  those spam rules to block future spam.</p>
<p>All in all, there will not be a silver bullet for  solving  web form spamming. Spambots will always become smarter and we quite  surely  couldn’t stop manual spamming. Nevertheless, with modern services like  Akismet and Project Honey Pot the prospects certainly  look promising.</p>
<p>The post <a href="https://stampede-design.com/blog/spam-prevention-alternatives-to-captcha/">Spam Prevention Alternatives to CAPTCHA</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/spam-prevention-alternatives-to-captcha/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>My Take on HTML 5</title>
		<link>https://stampede-design.com/blog/my-take-on-html-5/</link>
					<comments>https://stampede-design.com/blog/my-take-on-html-5/#respond</comments>
		
		<dc:creator><![CDATA[Syazwan Hakim]]></dc:creator>
		<pubDate>Sun, 07 Feb 2010 20:19:36 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=254</guid>

					<description><![CDATA[<p>HTML5 is packed with cool new features, code slimming advantage and a few slick solution to the current way we build front-end components of a website. Syazwan gets up, close and personal about the appeal of HTML5.</p>
<p>The post <a href="https://stampede-design.com/blog/my-take-on-html-5/">My Take on HTML 5</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">Because I&#8217;m new to HTML 5, an introduction is perhaps in order &#8211; more for my sake than my readers.</p>
<p>HTML 5 is an extension of <abbr>HTML</abbr> 4 and <abbr>XHTML</abbr> 1. It gives web developers new functionalities for a more dynamic and improved user experience. This bit is interesting to me because the emphasis is now given to users, not only us developers.</p>
<div class="full"><img decoding="async" style="margin-right:0;" src="https://stampede-design.com/wp-content/uploads/2010/02/html5.jpg" alt="head and body" /></div>
<p>It allows for better cross browser compatibility between mobile, desktop, netbook, pda, e-reader and whatever gadget there is in the future with the ability to display a web page.</p>
<p>Kevin Purdy from the <a href="http://lifehacker.com/5416100/how-html5-will-change-the-way-you-use-the-web" target="_blank">Lifehacker</a> sums it all rather neatly:</p>
<blockquote><p>HTML 5 is a specification for how the web&#8217;s core language, HTML, should be formatted and utilized to deliver text, images, multimedia, web apps, search forms, and anything else you see in your browser. In some ways, it&#8217;s mostly a core set of standards that only web developers really need to know. In other ways, it&#8217;s a major revision to how the web is put together. Not every web site will use it, but those that do will have better support across modern desktop and mobile browsers (that is, everything except Internet Explorer).</p></blockquote>
<h2>The Technicalities</h2>
<p>We often define class or id to any major &lt;div&gt; for styling on CSS such as <code>&lt;div id="header"&gt;</code> or <code>&lt;div id="footer"&gt;</code>. In HTML5, most common div like header, footer and side content now have their very own element: <code>&lt;header&gt;</code> (for header block), <code>&lt;nav&gt;</code> ( for navigation menu ), <code>&lt;article&gt;</code> (for content), <code>&lt;section&gt;</code> (for generic document inside content), <code>&lt;aside&gt;</code> ( for side content ), and <code>&lt;footer&gt;</code> (for footer block). For a developer like me, this simplifies the entire development process and reduces page load time without the need to assign class or id to your markup.</p>
<p>Remember the long url and <code>&lt;object&gt;</code> or <code>&lt;iframe&gt;</code> tag for fitting video into your website? HTML5 comes with a nifty solution &#8211; the <code>&lt;video&gt;</code> element. It can now easily embed video without using the object element. There is some debate about the codec we should use as default, though. You will find an interesting attempt at breaking down the codec debate <a href="http://arstechnica.com/open-source/news/2009/07/decoding-the-html-5-video-codec-debate.ars" target="_blank">here</a>.</p>
<p>For the table-base web site, the<code> &lt;td&gt;</code> element is no longer allowed in <code>&lt;thead&gt;</code>. Besides improving page load, I find it useful for the tricky bit when I need to add emphasis to a certain content. I have been using <code>&lt;span&gt;</code> frequently, ranging from font and font color change to adding a different hue to background. HTML5 utilizes <code>&lt;mark&gt;</code> instead of <code>&lt;span&gt;</code> to highlight these content. I look forward to this.</p>
<p>The most stunning thing for me about HTML 5 is the contenteditable attribute. Any element with contenteditable attribute will allow the designated user to add and edit text on the web page, without having to use an editor. And it&#8217;s all LIVE.</p>
<p>HTML 5 also packed up the input element with more control, one of which is <code>&lt;input type="tel"&gt;</code>. This will automatically change the input box format for telephone number. For the large input box such as comment box, i often use &#8220;textarea&#8221;. But there are new member of &#8220;textarea&#8221; in HTML5 called &#8220;textLength&#8221;. So that, we can easily define the length of the text inside the input box no matter how big the box is. Another cool thing about HTML5 is the capability to drag and drop pretty much anything. It allows you to drag and drop information block on a web site such as URLs, files, bookmarklets and anything into a drop zone. This was achieved by javascript before. To be able to do this with only markup is a refreshing change.</p>
<p>Another new element worth a mention is <code>&lt;nav&gt;</code>. Current HTML relies heavily on CSS to get navigation to work with <code>&lt;ul&gt;</code> or <code>&lt;ol&gt;</code>. In HTML5, <code>&lt;nav&gt;</code> will float the links side by side automatically.</p>
<p>It is also a lot easier to arrange the layout with HTML5. The <code>&lt;hgroup&gt;</code> allows you to group headings, letting you manage headers more effectively. If your content is heavily embedded with video, table or photo, you might want to give <code>&lt;figure&gt;</code> a try. This elements will allow you to add caption for your embedded content. You also can used <code>&lt;figure&gt;</code> element in conjunction with the &lt;legend&gt; element to provide a caption for the contents of your <code>&lt;figure&gt;</code>; element.</p>
<h2>Dropped</h2>
<p>Apart of the new elements, I noticed that a few deprecated elements have not made it to the latest version. They are <code>&lt;acronym&gt;</code>,<code> &lt;applet&gt;</code>, <code>&lt;basefont&gt;</code>, <code>&lt;big&gt;</code>, <code>&lt;center&gt;</code>, <code>&lt;dir&gt;</code>, <code>&lt;font&gt;</code>, <code>&lt;frame&gt;</code>, <code>&lt;frameset&gt;</code>, <code>&lt;noframes&gt;</code>, <code>&lt;s&gt;</code>, <code>&lt;strike&gt;</code>, <code>&lt;tt&gt;</code>,<code> &lt;u&gt;</code> and <code>&lt;xmp&gt;</code>.</p>
<p>All in all, HTML5 is packed with cool new features, code slimming advantage and a few slick solution to the current way we build front-end. While it attempts to solve issues found in earlier iterations of HTML, HTML5 also addresses the needs of Web Applications &#8211; an area previously not adequately covered by HTML. To end with an understatement, it will also change the way we use the web in the future.</p>
<p>(Photo by <a href="http://strunamitraljezz.deviantart.com/art/HTML-145162455" target="_blank">Anja</a>)</p>
<p>The post <a href="https://stampede-design.com/blog/my-take-on-html-5/">My Take on HTML 5</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/my-take-on-html-5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
