Brought to you by
2BlueSolutions Creative Web Design

Sunday, February 14, 2016

Disable on-screen keyboard that appears in Adobe products

So, I had an issue with Adobe inDesign on my Windows 10 PC. The onscreen keyboard kept popping up whenever I tried to edit text because the program couldn't tell that while I am on a touch screen enabled device, I do not have touch screens nor do I want an onscreen keyboard.

To disable:

  • Run: services.msc (windows key + R)
  • Find the service called: Touch Keyboard and Handwriting Panel Service (TabletInputService)
  • Double click it to open up the Properties dialog
  • You will want to not just stop the service, but disable it.

  • Now, I still ran into a problem with the service restarting.  To fix this, click on the Recovery tab and change all the failure actions to Take No Action

Monday, March 16, 2015

Divi Theme - Remove pause 'on hover' of the full width slider

In the Divi theme, open up /js/custom.js

Comment out the following code (around line 144)
if ( settings.slideshow && et_slides_number > 1 ) {
   $et_slider.hover( function() {
       $et_slider.addClass( 'et_slider_hovered' );
       if ( typeof et_slider_timer != 'undefined' ) {
    clearInterval( et_slider_timer );
 }
     }, function() {
 $et_slider.removeClass( 'et_slider_hovered' );
           et_slider_auto_rotate();
 } );
   }


Monday, February 9, 2015

Removing comments from the Wordpress Twenty Fourteen theme

To permanently remove comments from the Wordpress Twenty Fourteen theme, the file you will want to edit is:

/themes/twentyfourteen/single.php

Within this file, you will find the following code which you can either delete or comment out:


// If comments are open or we have at least one comment, load up the comment template.
 if ( comments_open() || get_comments_number() ) {
  comments_template();
 }
 
Now, there is also meta info for each content type which will list the number of comments next to the date the post was posted on under the title of each post.  You'll like want to remove this reference as well (otherwise, they will all say 0 comments).

To do so, open up the content-.php file in the theme folder.  For example, on a site I did this on, I edited the content-image.php file.

Look for the div with the class "entry-meta" and delete the line referencing "comments" within that div.  Just cull those lines.


Thursday, March 6, 2014

Wordpress Plugin - Lightbox Gallery: Separate Galleries on page

If you are using the Lightbox Gallery plugin for Wordpress and want to enable it on a "blog roll" type page (where all your posts show up on one page), you will find that the lightbox pop up will actually include all the images on the page when you only want it to include the images from that specific post.

The solution is a quick code change in /wp-content/plugins/lightbox-gallery/lightbox-gallery.php

Search for:

'class'      => "'" . $post->ID . "'",

 and replace with:

'class'      => 'gallery1',

Friday, February 14, 2014

How To Set Default Attachment Display Settings In WordPress

This is a pretty quick fix.

Add this to your functions.php for your theme and then you can set the default for the image attachment settings


function mytheme_setup() {
 // Set default values for the upload media box
 update_option('image_default_align', 'center' );
 update_option('image_default_link_type', 'media' );
 update_option('image_default_size', 'large' );

}
add_action('after_setup_theme', 'mytheme_setup');
Obviously changing the values to what you want as the default.

Tuesday, November 19, 2013

Wordpress - Creating Pages On Site Setup

If you, like me, create a bunch of Wordpress sites and, while building your menu, create all the blank pages for placeholders, then this plugin is for you.

http://wordpress.org/plugins/bulk-page-creator/

The Bulk Page Creator lets you create all your pages on one single page using a little Ajax.  It's quite simple and saves you a ton of time.

Monday, September 2, 2013

Heart Shaped Social Icon for Instagram

A bit of a random post

I grabbed this icon set for a site: Heart Shaped Icons.

Unfortunately, it was missing the Instragam icon, so I made my own: