danny
Forum Replies Created
-
Forum: Plugins
In reply to: [Video Thumbnails] Video Thumbnails Plugin Stopped Workingstopped working for me as well. youtube and vimeo. i havent changed my code in over a year
<!-- thumbs --> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo (get_post_meta($post->ID, "post-img-alt", true)) ? htmlspecialchars(get_post_meta($post->ID, "post-img-alt", true)) : the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) : echo video_thumbnail(); else : if ( has_post_thumbnail()) : $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'thumbnail_name'); echo $thumb[0]; else : if ( $iNumberOfPics > 0 ) : echo catch_that_image(); endif; endif; endif; ?>&h=142&w=222" alt="<?php echo (get_post_meta($post->ID, "post-img-alt", true)) ? htmlspecialchars(get_post_meta($post->ID, "post-img-alt", true)) : the_title(); ?>" width="222" height="142" /></a> <!-- /end thumbs -->
If anybody ends up getting this to work with Masonry, please let me know
Dev site with new infinite scroll
add_theme_support( 'infinite-scroll', array( 'type' => 'scroll', 'footer_widgets' => false, 'container' => 'content', 'wrapper' => true, 'render' => false, 'posts_per_page' => false ) );
Live site
<?php if ( is_home() || is_category() ) { ?> $container.infinitescroll({ navSelector : '#nav-below', nextSelector : '#nav-below .nav-previous a', itemSelector : '.entries', bufferPx: 10000, loading: { img: "<?php echo get_template_directory_uri(); ?>/images/ajax-loader.gif", msgText: "<?php _e( 'Loading the next set of posts...', 'custom' ); ?>", finishedMsg: "<?php _e( 'All content loaded.', 'custom' ); ?>" }, debug: false, animate: false }, function( newElements ) { var $newElems = $( newElements ).css({ opacity: 0 }); $newElems.imagesLoaded(function(){ $newElems.animate({ opacity: 1 }); $container.masonry( 'appended', $newElems, true ); }); } ); <?php } ?>
Forum: Plugins
In reply to: [Connect Matomo (WP-Matomo, WP-Piwik)] PiWik and W3 Total Cache and/or CDNNo problem
Forum: Plugins
In reply to: [Connect Matomo (WP-Matomo, WP-Piwik)] PiWik and W3 Total Cache and/or CDNfunction var_piwik() { if (!is_admin()) { wp_register_script( 'piwik', get_template_directory_uri() . '/js/piwik.js','',null,true); wp_enqueue_script('piwik'); } } add_action('init', 'var_piwik');
<script type="text/javascript"> var _paq = _paq || []; (function(){ var u=(("https:" == document.location.protocol) ? "https://analytics.mysite.com/" : "https://analytics.mysite.com/"); _paq.push(['setSiteId', 1]); _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setVisitorCookieTimeout', '604800']); _paq.push(['setSessionCookieTimeout', '0']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; s.parentNode.insertBefore(g,s); })(); </script>
then add
wp-content/js/piwik.js
to W3 Total Cache MinifyForum: Plugins
In reply to: [Connect Matomo (WP-Matomo, WP-Piwik)] PiWik and W3 Total Cache and/or CDNI actually got it to work combining it
https://d.pr/5rFZ+1 is there any way to combine piwik with w3 total cache or use my cdn(maxcdn)?
Forum: Fixing WordPress
In reply to: how to Remove query strings from static resources[edit]replying to wrong thread
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] woo commerce and w3I’m having terrible issues. Customers can’t download files
Using W3TCForum: Fixing WordPress
In reply to: how to Remove query strings from static resourcesI don’t suppose the above can be done using a plugin that minifys such as better wp minify?
Forum: Plugins
In reply to: [Better WordPress Minify] [Plugin: Better WordPress Minify] Page Speed Errors“Friendly Minify URL: no more question mark!” is not true.
A query string is appended, and there is no option to change itForum: Plugins
In reply to: Using a separate domain as a CDN with MaxCDN and W3 Total CacheI dunno if you’ll ever be able to do that using MaxCDN.
I have the same question thoughForum: Plugins
In reply to: [Infinite-Scroll] [Plugin: Infinite-Scroll] Infinite scroll and Masonry issueI have the same issue.
I tried to use your code, but it isnt working. think you can help me out?
weird thing is that it works when i combine all my css
Here’s my code<script> jQuery(function($){ <?php if ( is_single() ) : ?> var $container = $('.gallery'); <?php else: ?> var $container = $('#article-grid'); <?php endif; ?> $container.imagesLoaded(function(){ $container.masonry({ <?php if ( is_single() ) : ?> itemSelector: '.gallery-item', <?php else: ?> itemSelector: '.entries', <?php endif; ?> <?php if ( is_single() ) : ?> columnWidth: 3, <?php else: ?> columnWidth: 20, gutterWidth: 20 <?php endif; ?> }); }); <?php if ( is_single() ) : ?> }); <?php else: ?> $container.infinitescroll({ navSelector : '#nav-below', nextSelector : '#nav-below .nav-previous a', itemSelector : '.entries', loadingText: 'Loading the next page', loadingMsgRevealSpeed: 0, bufferPx: 80, extraScrollPx: 0, donetext: 'No more pages to load', debug: false, animate: false, loadingImg: '/wp-content/uploads/2012/10/ajax-loader.gif' }, function( newElements ) { var $newElems = $( newElements ).css({ opacity: 0 }); $newElems.imagesLoaded(function(){ $newElems.animate({ opacity: 1 }); $container.masonry( 'appended', $newElems, true ); }); } ); }); <?php endif; ?> </script>
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] No files get minified‘one of the other’? can you link us?