Thursday 28 February 2013

My Wingnut Surfboard

Conditions here recently have been perfect to dig out my Wingnut. You can go pretty short on this model; my performance board is a 6'2" and I've went for a 5'8" Wingnut that suits me fine; even in under waist high waves. Having it set up as a quad enable me to flip the tail round much much more than I can on my other boards. And as set up as a thruster I find it fine in shoulder high plus waves. Here's the board description and a nice little photo I took yesterday on it. This model has a Convert fin set up for maximum versatility. Ride as a twin ,thruster ,quad or 5 fin add to that all the different size fins its endless. The Wingnut is gonna pick up on loads of waves and make small wave surfing fun. It has lots of foam to it and keeps the width through the board until its drawn in with the double wing. The wings just pull in the tail so it will have a bit more performance and hold. This board like the Peanut will still keep going even in mushy waves floating you through flat spots and weak sections. It's a fantastic board for intermediate surfers looking to step straight from a first board to something short, manoeuvrable and responsive. Also for an experienced surfer looking for a fun skatie board that finned right can also hammer it down the line in bigger conditions. This board comes with a set of FCS M thruster fins and a set of sides to quad it. Fin upgrades available just call or email. Its a compact fun board that will surprise you and keep you keen. Buy the Wingnut now.

Friday 15 February 2013

Wordpress how to force the landing page to be a certain page ?

I was looking to get wordpress to open my homepage on another page I had created.  Is real easy but for me didn't seem like the logical area of admin for it to be in. 

In wordpress admin go to 'Settings' on the left hand side.


then click on the 'static page' radio button. 

and choose your page from the 'Front Page' drop down. 

Here's an image. 


Thursday 14 February 2013

Wordpress Eshop Plugin - shorten description in shortcode

Using Wordpress's Eshop plugin; I'm making category pages for my products and I'm using the eshop_list_subpages shortcode. 

What I'd like to do is shorted the description down and add a price.

Adding a price is easy all you need to do is change the shortcode to

[eshop_list_subpages price="yes"]

However I couldn't find an attribute for the text length so added this hack. 

If you want it wouldn't be too difficult to make a new attribute for the shortcode. Although due to time constrictions on this job, a quick fix had to do.

OPEN

wp-content/plugins/eshop/eshop-shortcodes.php

FIND

 $echo .= apply_filters('eshop_list_excerpt',apply_filters('the_excerpt', get_the_excerpt()), $post->ID);
       

REPLACE WITH

/* littleripples.com changes  - the below line has been replaced to shorten the description
         $echo .= apply_filters('eshop_list_excerpt',apply_filters('the_excerpt', get_the_excerpt()), $post->ID);
         with -> */
        $desc =  apply_filters('eshop_list_excerpt',apply_filters('the_excerpt', get_the_excerpt()), $post->ID);
        list($shortdesc) = explode("\n",wordwrap($desc,100));
         $echo .= $shortdesc.'

';
// end of littleripples.com changes.

Wednesday 6 February 2013

Wordpress theme location not working in child theme


I was having an issue with calling the 'theme_location' in the function 'wp_nav_menu'  in a child theme I've created. Let me explain.

I am working on a website that has been created by someone else.  On the 'header.php' page in their template they are using this call to bring up a drop down menu.

    wp_nav_menu(array(
                                        'menu_class' => '',
                                        'menu_id' => '',
                                        'theme_location' => 'farm',
                                        'container' => '',
                                        ));



AND IN FUNCTIONS.PHP

register_nav_menus( array(
        'farm' => __( 'Farm World', 'dairyland-2012' ),
        ));




however once I used a child theme the 'theme_location' does'nt work. 

The solution to this was that I needed to reassign the menu items in Theme Locations in admin > appearance > menus

As pictured





Tuesday 5 February 2013

Why I won't be installing WooCommerce as my shopping cart on Wordpress.

I've just wasted 3 hours of working time on researching, uploading and testing the Wordpress e-commerce plugin WooCommerce and believe it is not suitable for my use. At least not without a fair bit of work. 

So here's a quick blog on it; incase reading this can save you some time.

When is WooCommerce not the right solution ?

Basically if you already have an existing website; where you don't want to change the theme then I would recommend against it.

This is the thing ->  Once you've loaded in the plugin you then need to upload a Theme from WooCommerce. 

This theme will give you a new tab.  From here you get a heap of Customization options including Layout options - Footer options.




To install this theme you do it in the same way as you would a normal theme - overiding your Theme at present.   

In short it looks like theres going to be a fair bit of leg work to get your existing Theme to look right on WooCommerce.  

Is there anyone who has done this process who can give more information on this.  I'd certainly be interested in reading the views of others

Sunday 3 February 2013

Wordpress Child Themes

Recently I've written a whole heap of blogs about fixes and changes to themes.  However I've ploughed ahead fixing and making things without sufficiently researching good practises of writing code for Wordpress.  My apologies, i will go through all the blogs that are wrong and ammend them.

Please refer to this page for more information  codex.wordpress.org/Child_Themes