BLOG | news, information and tips

Website Tweaks

Anyone looking for a website oil change? It can give you better performance and better mileage in the long run. Sometimes little tweaks bring great results.

If you need website maintenance Codeshed can be of assistance with:

Content updates/edits
Graphic tweaks like buttons
Newsletter management
Hosting stuff like emails, domain support, subdomain setup
Site backups
Google Analytics
SEO Monitoring

Contact us to get tweaked up! tweaks@codedshed.net

LeapTV Loves Codeshed

Check out this episode on LeapTV

Pagination and WordPress

Paginating your website content is a must do if your content on the page is growing. Sometimes the WordPress pagination code doesn’t quite do the trick. If you are looking for a simple solution to customize your site’s pagination have a look at the wp-pagnavi plug-in.  This plug-in offers back-end administration to easily customize the way the pagination works and looks.  Combine this with some style sheet tweaks and you have great solution.

Adding wp-pagenavi to your site is as simple as installing the plug-in and adding the following code to the appropriate spot in your theme template. The footer.php file might be a good option:

<?php wp_pagenavi(); ?>

you can see it in action on this site LeapTV

We went the extra mile with this implementation and created a special thumbnail that links to the next page, if your interested check out this code:

<?php if (have_posts()) : $postcounter=0; while (have_posts()) : the_post(); $postcounter++; ?>

/// output your main content

<?php endwhile; ?>

 <?php
 $total_pages = absint( $wp_query->max_num_pages );
 $page = get_query_var('paged') ? get_query_var('paged') : 1;
 if (($postcounter== 14) &&  ($total_pages > $page) ){
 ?>

 <div>
 <a href="<?php echo get_pagenum_link( $page+1 ); ?>" title="next page"><!-- nothing to see here --></a>
 <?php echo wp_get_attachment_image( 420,'full'); ?>
 </div>
 <?php }?>

 <?php endif; ?>

You can adjust the code and styles as needed and then insert this code into your theme template.

Interview with Isabelle Mercier of Leapzone Strategies

Listen to the interview with our client, Isabelle Mercier of Leapzone Strategies. She chats about her experience working with Codeshed and shares some tips she has gleaned to help drive traffic to her web sites.

Play

Do you use shorthand PHP scripting blocks?

We recently started working on a new php based project that was originally built by a 3rd party development group. Once we moved the site to our standard development environment to begin coding we found that some parts of the site would not run. After checking  settings and confirming the associated database was working and connected, we discovered that some areas of the site used shorthand php scripting blocks,  generallythis is not a great idea if you want your site to be portable. Read more