Thursday 27 February 2014

Adding a Mobile Redirect to Wordpress

At present most of my changes to change the website display on mobile devices is through @media .

Which lead me to my first questions

can I use @media to force to new URL

how to put a url redirect in css


There is a well recommended plugin Equivalent Mobile Redirect

However I could get this to work on Wordpress 3.8.1

So I found this plugin which works fine Mobi Redirect


Thursday 20 February 2014

Excluding a certain category when using Wordpress's have_posts function

Using Wordpress's 'have_posts' function is pretty darn cool.  It fetches a list of your most recent post; the number of which is set in
Admin -> Settings -> Reading -> 'Blog pages show at most'

This array can then be iterated through thus


  while (have_posts()) {   // WP function that gets post
                    the_post( ); 


what I wanted to do is eliminate a certain category from being returned in the have_posts

and thought I could get away with something like

foreach(get_the_category() as $category) {
$cat_ID = $category->cat_ID;
}
if($cat_ID == '81' || $cat_ID == '82') {} else {


in the while statement to solve this.  However this would change the number of posts I was displaying.  Something I didn't want.    The solution was to use query_posts  which adds to the have posts function.  It's not ideal in all situations but fine for what I was doing.

query_posts( 'cat=83&cat=84' );
            if (have_posts()) {


Wordpress Development Cornwall

Changing the Product page image size onWordpress WP E-commerce

If you want to make the image bigger on product pages then here's the page you need to change. 

Please note that first of all you'll need to go into

Administrator > Store > Presentation ( last tab )

On the right handside you have a box named 'Advanced Theme Settings'   - Clicking on 'Move Template Files'  will move the files you need into your theme.

OPEN /wp-content/themes/yourtheme/wpsc-single_product.php

FIND

if ( wpsc_the_product_thumbnail()


Underneath you can effect the image here. 

For my hack all I needed to do was display the full sized image.

so replaced

 
         <?php echo wpsc_the_product_title(); ?>
        


for

<?php echo wpsc_the_product_title(); ?>
        

Tuesday 18 February 2014

Wordpress Development Price List

Here's a general guide to my prices to build a Wordpress website.  It's worthy of note that using Wordpress we can provide a very cost effective website; however the thing that can push the price up rapidly is customisations to both themes and plugins.

Worpress Installation : includes the neccesary Security, SEO and website speed plugins.  Wordpress Installation Checklist

> Configure Permalinks
> Security Checks on installation
> SEO - Yoast plugin
> Social Media bar
> Contact Form
> Google Maps Plugin
> Help Pages Plugin
> Super Cache
> Gzip compression

8hrs @ £35 = £280


Installing a Theme : Once a theme has been chosen it will be purchased and installed. 

The following list includes the changes that are normally requested as a minimum when a client installs a theme.  However we do not wish to inhibit you're creativity, and you are welcome to request further quotes on changes you'd like to make.  The price here includes the purchase of the theme.  The theme will be tested on the main devices as listed on the Web Design contract.

> Change of logo
> CSS changes including Color and Fonts.
> Change of Artwork
> Theme set up and Widget, Menu allocation.

6hrs @ £35 +theme estimated.  £270


Adding Content.
__________________

Often content is taken off an existing website, if the existing website is another CMS the chances are we can use a transfer plugin. 
The following guide is based on a fairly small sized website that wants the basic pages; with content and images provided. 

News
Prices
About Us
Contact Us
How to find Us

7hrs @ £35  = £245


Hosting
_________

Your hosts will need to meet these minimum requirements

http://www.rafaytutorials.com/2013/11/minimum-requirements-to-install.html 

If you host we us then the annual charges are here http://www.heartinternet.co.uk/web-hosting

The package I normally recommend is £90 annually.


Site transfer
______________

if the website needs to be made in a testing folder or test web address then the website will need to transferred when ready.  This is 2 hours work

2hrs @ £35 = £70


Website design Contract

When things don't go right on a web development project then you'll need one of these to fall back on.   Any way here at Littleripples.com  here's mine.


Contract for web design  - What both parties agree to do.

You: You have the authority to enter into this contract on behalf of yourself, your company or your organisation. You’ll give us with everything we need to complete the project as and when and in the format we need it. You’ll review our work, provide feedback and approval in a timely manner too. Deadlines work two ways, so you’ll also be bound by dates we set together. You also agree to stick to the payment schedule set out at the end of this contract.

Us: We have the experience and ability to do everything we’ve agreed with you and we’ll do it all in a professional and timely manner. We’ll endeavour to meet every deadline that’s set and on top of that we’ll maintain the confidentiality of everything you give us.
We create look-and-feel designs, and flexible layouts that adapt to the capabilities of many devices and screen sizes. We create designs iteratively and use predominantly PHP, HTML and CSS so we won’t waste time mocking up every template as a static visual. We may use static visuals to indicate a look-and-feel direction (colour, texture and typography.)
You’ll have two or more weekly opportunities to review our work and provide feedback. If, at any stage, you’re not happy with the direction our work is taking, you’ll pay us in full for everything we’ve produced until that point and cancel this contract.
We know from experience that fixed-price contracts are rarely beneficial to you, as they often limit you to your earliest ideas. I don’t want to limit your ability to change your mind. The price at the beginning of this contract is based on the length of time we estimate we’ll need to accomplish everything you’ve told us you want to achieve, but we’re happy to be flexible. If you want to change your mind or add anything new, that won’t be a problem as we’ll provide a list of standard charges for extra's or quote.  If a template has been agreed on and your request is additional to anything that appears on the template then it will be additional to the quote.

Languages and Platforms
We deliver websites developed in PHP 5 and HTML5 markup, CSS2.1 + 3 stylesheets for styling and unobtrusive Javascript for feature detection, poly-fills and behaviours. As this is the latest languages it is hoped this will work on the widest range of devices. 
Desktop Browser Testing
We test our work in current versions of major desktop browsers including those made by Apple (Safari), Google (Chrome), Microsoft (Internet Explorer), Mozilla Firefox and Opera. We’ll also test to ensure Microsoft Internet Explorer 8 for Windows users get an appropriate, possibly different, experience. We’ll implement a single column design for Internet Explorer 7 and below for Windows and we won’t test in other older browsers unless you specify otherwise. If you need an enhanced design for an older browser, we can provide a separate estimate for that.
Mobile Browser Testing
Testing popular small-screen devices is essential in ensuring that a person’s experience of a design is appropriate to the capabilities of the device they’re using. We test our work in:
  • iOS: Safari, Google Chrome and Opera Mini
  • Android 4.1: Google Chrome, Firefox and Opera Mini
  • Android 3.2: Browser, Firefox and Opera Mini
We currently don’t test Blackberry OS or Blackberry QNX, Opera Mobile, Symbian or other mobile browsers. If you need us to test using these, we can provide a separate estimate for that.
Ownership
First, you guarantee that all elements of text, images or other artwork you provide are either owned by your good selves, or that you’ve permission to use them.
Then, when your final payment has cleared, copyright will be automatically assigned to yourselves for any customizations made to the theme.

Any code developed is written for an Open Source environment.

We love to show off our work and share what we’ve learned with other people, so we reserve the right, with your permission, to display and link to your project as part of our portfolio and to write about it on websites, in magazine articles and in books.
Showcasing

We love to show off our work and share what we’ve learned with other people, so we reserve the right, with your permission, to display and link to your project as part of our portfolio and to write about it on websites, in magazine articles and in books.



Guarantee
We can’t guarantee that our work will be error-free and so we can’t be liable to you or any third-party for damages, including lost profits, lost savings or other incidental, consequential or special damages, even if you’ve advised us of them. Finally, if any provision of this contract shall be unlawful, void, or for any reason unenforceable, then that provision shall be deemed severable from this contract and shall not affect the validity and enforceability of any remaining provisions.
Just like a parking ticket, you can’t transfer this contract to anyone else without our permission. This contract stays in place and need not be renewed. If for some reason one part of this contract becomes invalid or unenforceable, the remaining parts of it remain in place.
Payment is requested:
50% on project start.
40% on completion.
10% to released after the website has been live for 28 days in case any bugs need to be ironed out.




Wednesday 12 February 2014

How to make a child theme in Joomla

One of the most usefull tools of Wordpress is using Child themes.  If you're looking for this feature in Joomla too, it is there just less publicized.
Child templates for Joomla .

Navigate to  Administrator-> Extensions->template Manager and selecting the template you wish to change.  Once you've checked the box next to the template, you can click the 'Duplicate' button to create a second copy of the template.  This will become the Override while the primary copy of the template remains the designated Master.

Cornwall Joomla development

Wednesday 5 February 2014

Finding the Joomla URL address for an article

If you're used to using Wordpress then you're probably wandering where you can view your article; as there's no easy to find preview button here.

Firstly find out what your article ID is

You can find this at the end of the URL when you are editing.  As pictured here.


Then all you need to do is add that number to the end of this URL ; changing the domain of course.

www.yourdomain.com/index.php?option=com_content&view=article&id=

If you're using SEF then you'll also need to make a Menu Item; and use the alias. Which is much better for being found by search engines.

Wordpress Menu item issue on Domain referenced website transfer.

After transferring to a testing area ( Domain Referenced site ie webXX.yourhost.com/yourdomain.co.uk )
I was getting this message

Forbidden  You don't have permission to access /index.php on this server.
The issue here is in that we are using a domain referenced site. . 

OPEN .htaccess

online 8 FIND

RewriteRule . index.php

AND REPLACE WITH

RewriteRule . yourdomain.co.uk/index.php