DCP Partners

  • Home
  • About Us
  • WordPress
  • MAST
  • Hosting
  • Blog
    • Portfolio
    • Reference & Tutorials
    • Client News
    • Company News
    • Technology
  • Help Desk / Support
  • Contact Us

November 5, 2014 by John Donovan

Disable the iOS ‘long-touch’ pop-up/callout

A standard behavior / ‘feature’ of iOS provides a pop-up window (‘callout’) that provides links for “Open in New Tab”, “Copy Link URL”, etc.  when a link or input element is touched and held. While handy in some cases, it is quite annoying in web-based applications where you’re trying to push a slider or interact with any touch element that requires you to hold the element down.  One of my web-apps makes use of slider elements to enter a numeric value – so when the user touched and held the slider ‘handle’, the callout would pop-up and interfere with the operation of the input element.

This behavior can be disabled quite easily thru CSS, by simply setting the -webkit-touch-callout property to “none” for the element(s) … or for the entire page.  For instance:

body {-webkit-touch-callout: none;}

will disable the callout for all elements on the page.

 

Filed Under: Reference & Tutorials, Technology Tagged With: CSS, hacks, iOS

January 12, 2012 by John Donovan

Save WordPress Plugin CSS changes

WordPress plugins offer a great way to extend the functionality of your ‘standard’ WordPress implementation. Often the plugin author includes a CSS file that provides the style attributes for the content elements that the plugin creates. However, many authors do not provide a way to change the style of the elements, without having to change the plugin’s CSS file. This works fine – however, any changes will be lost when the plugin is upgraded and the bundled CSS file is replaced.

My solution for this problem is to place CSS changes in a separate “style-override.css” file in the Theme’s directory – including all of the selectors and attributes that I’d like to change.  CSS works on the ‘last one in wins’ rule – so the last definition of a given rule will over-ride any previous definitions.

You can load this ‘style-override.css’ file at the end of the page, over-riding any previous definitions, by using the following code in your functions.php:

//load the style-override.css file at the very end of the document
//allowing CSS for plugins to be altered and protected against overwrite by upgrade
add_action(‘wp_footer’, ‘loadOverrideCSS’);
function loadOverrideCSS() { ?>
<!– load style-override.css file –>
<link rel=’stylesheet’ type=’text/css’ media=’screen’ href='<?php echo get_bloginfo(‘stylesheet_directory’); ?>/style-override.css’ />
<?php }
//pcLoadOverrideCSS()

This will use the ‘wp_footer’ hook, which is one of the last things executed by WordPress when generating the content page.

 

Filed Under: Reference & Tutorials, Technology Tagged With: CSS, hacks, PHP, WordPress

Recent Posts

  • Clearing ERR_SPDY_PROTOCOL_ERROR
  • Pro-ACT Training Site and Database
  • FFCC implements MAST
  • MAST Featured on Marching Roundtable
  • DCP Partners Releases Now! Mobile App
  • Disable the iOS 'long-touch' pop-up/callout

What our Clients Say

Laverty Chacón CRE

DCP Partners was absolutely the right choice for our website development needs. John delivered on his original promise, worked great with our web designer, and has been an excellent resource for the ongoing updating and maintenance of our site. He gives great recommendations and puts up with our lack of knowledge and constant requests for explanations. I would definitely recommend DCP Partners to anyone who asked.

Tanner Laverty, CCIM
CEO/Managing BrokerLaverty Chacón Commercial Real Estate
WGASC/MBOS

DCP Partners has been exceptional from day one. The innovation and ability to think out of the box has allowed our members to receive the very best technology has to offer, while taking operational efficiency to a whole new level. We will be here for years to come.

Scott Bilbruck
Director of OperationsWinter Guard Assoc of Southern California
Pacific Crest

With DCP Partners, you don't need a translator. John and his team understand the end-user experience and know how to translate it into an IT solution.  Its not about a one-time solution, rather he'll coach you throughout the process to make sure the solution meets your need.

Stuart Pompel
Executive DirectorPacific Crest Youth Arts Organization

Terms

3.3 administrator Adobe Flash AJAX ASP.NET barcode Circuit Administration CMS collaboration content management CSS Custom App Customized Template Customized Theme Custom Plugins Donna Evans Drupal e-commerce Genesis Framework hacks handyman hosting IIS Javascript Joomla jQuery MAST Microsoft migration mySQL Open Source PHP Pods QR code quick response code SEO sitemap Tag Reader training tune-up update website update WordCamp WordPress Zen Cart

Copyright © 2006-2021 DCP Partners, LLC · All Rights Reserved

Copyright © 2021 · DCP Partners Child Theme on Genesis Framework · WordPress · Log in