irislines web design
irislines web design

Author Archive

OSTraining Video Series

I’ve been recording Joomla training videos for OSTraining.com.

Joomla! Template Tricks

Joomla! Template Overrides

Migrating from Joomla! 1.5 to Joomla! 3.x

photo1

Blog images upside down on iPhone or iPad

Recently a client observed that photos she uploaded to her WordPress blog appeared fine on her computer, but were upside down when viewed on an iPhone or iPad.

This is NOT a problem if you prepare your images for use on the web by editing them on your computer. 

I have been recommending Webresizer.com  for patrons who don’t have photo editing software — or don’t know how to use what they’ve got. 

Images optimized at Webresizer.com retain the camera’s exif data and if you rotate the image in the edit process it will be fine in operating systems and software that ignores the EXIF data, but cause problems in iOS devices that DO pay attention and “correct” the image per the instructions saved in that data.

Continue Reading

yoo_master2 theme lacks support for “readmore” in WP

Solution:

in warp/systems/wordpress/layouts/_post.php  find this:

<?php the_content(''); ?>

and replace with :

<?php global $more; $more = 0; the_content('Read the full article...');?>

Then lower down in the document find and comment out the Continue Reading link which would appear whether you had added “more” break or not.

<!--<li><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
<?php _e('Continue Reading', 'warp'); ?></a></li>-->

 

 

WordPress 3.9 TinyMCE4 Custom Styles

WP 3.9 TINYMCE4   modifications:

I added this:

function mce_mod( $init ) {

   $init[‘block_formats’] = ‘Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4’;

   $style_formats = array (

       array( ‘title’ => ‘testimonial’, ‘block’ => ‘blockquote’, ‘classes’ => ‘testimonial’ ),

       array( ‘title’ => ‘bold but not LOUD text’, ‘inline’ => ‘span’, ‘styles’ => array( ‘font-weight’ => ‘bold’ ) ),

      

   );

   $init[‘style_formats’] = json_encode( $style_formats );

   $init[‘style_formats_merge’] = false;

   return $init;

}

add_filter(‘tiny_mce_before_init’, ‘mce_mod’);

function mce_add_buttons( $buttons ){

   array_splice( $buttons, 1, 0, ‘styleselect’ );

   return $buttons;

}

add_filter( ‘mce_buttons_2’, ‘mce_add_buttons’ );

to yoo_master/functions.php

I also added my styles to   wp-content.css   at

wp-includes/js/tinymce/skins/wordpress/wp-content.css

IrisLines LLC
101 Washington Street
Brattleboro, VT 05301

802 257 7391

info@irislines.com