Retina quality screenshots?

Increasing a non-retina screenshot to 2X size will not be any different than showing the original. Instead, alter your browser settings to emulate a retina display: Firefox: Go to about:config, and change layout.css.devPixelsPerPx from -1 to 2 Chrome: Zoom to 200% At the bottom of the JS console (Option-Command-J), click on “Emulation” Check the “Emulate … Read more

How are my own themes updated?

You can use this ThemeUpdateChecker class Basic outline of the process: Have a fixed spot on your server to both house a little bit of data about the current version and a zip of your theme files. Hook an action into pre_set_site_transient_update_themes In that action, ping your server (with something like curl) Compare the versions … Read more

Adding schema to text content in the loop, how?

Just add them to echo <?php if ( has_post_thumbnail() ) { the_post_thumbnail( ‘full’, array( ‘class’=>’post_thumbnail_common’, ‘alt’ => get_the_title() , ‘title’ => get_the_title(), ‘itemprop’=>’image’ ) ); echo ‘<div itemscope itemtype=”http://schema.org/BlogPosting”>’.contentnoimg(41).'</div>’; } else { echo content(41); } ?>

Nested Accordions For Taxonomies [closed]

I’m sure you can find accordion code samples anywhere. It might be helpful to convert terms into a structure that is more conducive to nested elements. <?php // Get terms as nested array function get_nested_terms ($taxonomy, $array=array(), $args=array() ) { $args = wp_parse_args($args, array( ‘orderby’ => ‘count’, ‘parent’ => 0, ‘hide_empty’ => true )); $terms … Read more

How can I use jQuery maphilight?

You could use this as a shortcode. Put this in your content. [maphilight] Register the shortcode. // Add Shortcode function maphilight_shortcode() { ?> <img id=”ImageMap1″ src=”https://wordpress.stackexchange.com/questions/211561/<?php echo get_stylesheet_directory_uri() .”/jq/cc.jpg’; ?>” border=”0″ width=”1212″ height=”812″ orgWidth=”1212″ orgHeight=”812″ usemap=”#image-maps-2015-12-08-070211″ alt=”” /> <map name=”image-maps-2015-12-08-070211″ id=”ImageMapsCom-image-maps-2015-12-08-070211″> <area shape=”rect” coords=”1210,810,1212,812″ alt=”Image Map” style=”outline:none;” title=”Image Map” href=”http://www.image-maps.com/index.php?aff=mapped_users_0″ /> <area alt=”as” title=”as” href=”http://www.image-maps.com/as” … Read more