Top Website Design Research

Top Website Design Research Points Use F-Shaped Pattern Use Z-Shaped Pattern Don’t let people more than 3 click to find their answer Too many options ensure NONE will be chosen Visitors read long widths of text faster, but prefer shorter widths Your headlines draw even more eyes than images! Image captions are the most consistently […]

Click Tracking [Google Analytics]

Event Tracking <script> /** * Function that tracks a click on a link in Google Analytics. * This function takes a valid URL string as an argument, and uses that URL string * as the event label. Setting the transport method to ‘beacon’ lets the hit be sent * using ‘navigator.sendBeacon’ in browser that support […]

Custom Fields in bbPress Topic Form

Creating Fields add_action ( ‘bbp_theme_before_topic_form_content’, ‘bbp_extra_fields’); function bbp_extra_fields() { $value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field1’, true); echo ‘<label for=”bbp_extra_field1″>Extra Field 1</label><br>’; echo “<input type=’text’ name=’bbp_extra_field1′ value='”.$value.”‘>”; $value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field2’, true); echo ‘<label for=”bbp_extra_field1″>Extra Field 2</label><br>’; echo “<input type=’text’ name=’bbp_extra_field2′ value='”.$value.”‘>”; } Saving Custom Fields add_action ( ‘bbp_new_topic’, ‘bbp_save_extra_fields’, 10, 1 ); add_action ( ‘bbp_edit_topic’, […]

Permanent 301 Redirect Setup in .htaccess

Redirect old domain to new domain RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.example.com [NC] RewriteRule ^(.*)$ http://example.org/$1 [L,R=301,NC] Force Redirect to NON-www version RewriteEngine on RewriteCond %{HTTP_HOST} ^www.example.com [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301,NC] Force Redirect to WWW version RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC] Redirect from HTTPS to HTTP […]

WordPress Robots.txt Sample

WordPress Robots.txt User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Adding Sitemaps to WordPress Robots.txt User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Sitemap: http://www.example.com/post-sitemap.xml Explanation Allowing all Bots Allowing any Bots to Crawl User-agent: * Disallow: Not Allowing any Bots Not Allowing any Bots to Crawl User-agent: * Disallow: / Block a Folder User-agent: * Disallow: /Folder/ Block a File User-agent: […]

Cross Domain Tracking [ Google Analytics ]

Cross Domain Tracking in Google Analytics is for tracking a Visitor across different domains Usage Tracking the same visitor navigating across Various Domain names Various Sub Domains http and https of the same/different domain 3rd Party Shopping Carts IFrame Linking ( Example ) Consider two domains : example-1.com : Primary Domain example-2.com : Secondary Domain Primary Domain […]