Archive for the ‘Wordpress’ Category

Add onblur , onfocus attribute in contact form 7 text field

Tuesday, November 22nd, 2011

Problem: How to add onblur and onfocus attribute to contact form 7  wordpress plugin text field. Solutions: Add the below code  to line 70 of modules/text.php if ( $value != ” ) { $atts .= ‘ onfocus=”if (this.value == \” . esc_attr( $value ) . ‘\’) {this.value = \’\';}” onblur=”if (this.value == \’\') {this.value = [...]

>>read more

How to get category name and category id in product page loop jigoshop wordpress

Tuesday, October 25th, 2011

Issue:  How to get category name and id with in the loop of  jigoshop wordpress plugin. Solutions: Add this inside the loop: Category with link: $cat_name= $_product->get_categories( ‘, ‘, ”, ”); $str=$cat_name; echo $str; Category without link: $cat_name= $_product->get_categories( ‘, ‘, ”, ”); $str=$cat_name; preg_match_all(“!<a [^>]+>(.*?)</a>!”, $str, $matches); $cat_name =$matches[1][0]; echo $cat_name; To get category [...]

>>read more

How to put additional custom field in jigoshop add product page

Tuesday, October 18th, 2011

Issue:  My client wants a additional field in jigoshop add product page. Solutions : 1. Edit jigoshop/jigoshop_taxonomy.php 2. Look for ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘comments’/*, ‘page-attributes’*/ ), change to : ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘comments’,’custom-fields’ /*, ‘page-attributes’*/ ),

>>read more

WordPress as a manual manager – File manager

Friday, October 14th, 2011

I’m looking for a good manual manager where i can upload, view  and download pdf file. I end up using wordpress to do it. Check out the link below : Manuals for Commercial Laundry Equipment & Parts

>>read more

How to add product filter or sort product in jigoshop base on post_date, title, price, menu_order

Friday, October 14th, 2011

Issue: How to add filter in archive product page in jigoshop  to sort it by price, date that product inputed , by specified order, and title. Solutions: Buy this plugin. Demo: http://99tasks.com/browse-services

>>read more

How to add nice pagenation in jigoshop archives or category page

Thursday, October 13th, 2011

Problem: I want to add pagination in category page in jigoshop Solutions: 1. Install WP PageNavi plugin. 2. Add in your functions.php remove_action( ‘jigoshop_pagination’, ‘jigoshop_pagination’, 10 ); add_action( ‘jigoshop_pagination’, ‘my_jigoshop_pagination’, 10 ); function my_jigoshop_pagination() { if ( function_exists( ‘wp_pagenavi’ )) : wp_pagenavi(); else : jigoshop_pagination(); endif; }

>>read more

Fix Jigoshop & Thesis Theme Issue

Thursday, October 13th, 2011

Issue: Jigoshop plugin doesnt compatible with Thesis theme. When browses to a product listing the Thesis custom.css and custom_functions.php files are not loaded into the browser. Couple of IDs that may conflict with Thesis, like “content” and “container” and causing your theme to be broken. Solutions : 1. Modify jigoshop theme: archive-product.php , single-product.php and [...]

>>read more

Cant install new themes in bitnami(ubuntu) EC2 wordpress admin

Tuesday, October 11th, 2011

Issue: Can’t install themes using wordpress admin theme manager in EC2 bitnami. Solutions: 1. In your putty input this code –> sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs 2. Add the line below at the end of the wp-config.php file. define(‘FS_METHOD’,‘direct’); 3. Change permission “themes” to 777

>>read more

How to add more field in your wordpress registration page – Register Plus Redux

Tuesday, October 11th, 2011

Problem: My clients wants to gather more data in user registration and skin the registration same as the active theme. Solutions: 1. Install Register Plus Redux – enables the user registration process to be customized and enables the admin to add more field in the registration form 2. Install Theme My Login – themes the [...]

>>read more

How to display category list in wordpress

Monday, August 29th, 2011

Custom code on how to add category list in wordpress 3.x. $args=array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘exclude’=> ’11,6,12,7′ ); $categories=get_categories($args); foreach($categories as $category) { echo ‘ <div>  <div> <p><a href=”‘ . get_category_link( $category->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ [...]

>>read more