c-m
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blurry images in WordPressHere’s another comparison.
This is medium sized thumbnail resized by wordpress with quality at 100%
http://defylife.co.uk/assets/images/posts/KTM-950-adventure-beach-867×578.jpg
This is one outputted from lightroom at 867×578
http://defylife.co.uk/assets/images/posts/DSC00445.jpg
If you open them in a different tabs and switch back and forth the differences become very apparent. Looks at the front tyre, the number on the front, and the grass.
It’s not make or break on this image due to it’s subject and composition, but on others it is.
Forum: Fixing WordPress
In reply to: Blurry images in WordPressYes I see the same thing, except I see the sized I set i.e medium is 867 width with no entry for height.
I added the code in the post above because I want an image called medium-thumb with those dimensions. I call it in my theme at certain points.
In the actual media settings I don’t set a height, otherwise it’ll screw up any images taken in portrait.
Quality is set to 100, and sharpening is turned on for re-sampled images.
Still a big quality loss. It has to be something that PHPthumb is doing when it creates the various image sizes.
Forum: Fixing WordPress
In reply to: Blurry images in WordPressThat’s what this code does:
add_image_size( 'medium-thumb', 867, 578, false);I then select ‘medium-thumb’ as my image size when adding the image to the post.
Forum: Plugins
In reply to: [Simple Lightbox] Not working on all postsAh. Yes it was WP tiles causing a problem.
Thank you very much.
Forum: Plugins
In reply to: [WP Tiles] Comprehensive documentation?Also got multiple things I can’t solve with the current documentation particularly the template tags.
What did you use instead?
Forum: Plugins
In reply to: WordPress jQuery version issuesSolved.
It’s due to wordpress loading jQuery in no conflict mode.
Either replacing $ with jQuery, or setting $ as a function of jQuery on document ready works.
Forum: Fixing WordPress
In reply to: Ordered lists with paragraphsAh yes. that does work.
I’m not sure I’ll be able to stay out of the visual editor though as this is a post I edit often. I suppose I can roll back a revision if I make a mistake.
Thanks
Forum: Fixing WordPress
In reply to: Ordered lists with paragraphsThanks. I know ordered lists aren’t really supposed to be used this way.
Forum: Fixing WordPress
In reply to: Ordered lists with paragraphsI’m trying to do this in the editor. But as soon as you hit return it thinks the next line is line number 2 of the ordered list.
If I manually enter the html like:
<ol><li>Title number one</li> <p>My first paragraph that talks about something related to the point number</p> <li>Title number two</li> <p>My second paragraph that talks about something related to the point number</p> </ol>Then when I click back into the visual editor is changes my manually entered HTML to:
<ol> <ol> <li>Title number one</li> </ol> </ol> My first paragraph that talks about something related to the point number <ol> <ol> <li>Title number two</li> </ol> </ol> My second paragraph that talks about something related to the point numberI can work in the text editor but if I accidentally click over the visual editor my post is screwed up and I’d need to manually fix it each time.
Forum: Plugins
In reply to: [WP Tiles] Display images from certain page onlyThis one must be pretty straightforward.
Curse my lack of PHP knowledge.
Anyone?
Thanks
Forum: Plugins
In reply to: [WP Tiles] Gallery not tiledI thought this might be a jquery problem but it’s same whether I load jQuery v1 or v2, whether it’s enqueued or not.
It just seems that WP_tiles for some reason only wants to load the images load the images at a certain size.
Forum: Fixing WordPress
In reply to: Loading jQueryYeah it’s misc1.js that was just typo in the post. Thanks I’ll look as the stackoverflow link and see what I can come up with.
Forum: Fixing WordPress
In reply to: Loading jQueryI posted the wrong script.
I think it’s the defer script that doesn’t work.
<script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script"); element.src = "<?php bloginfo('template_directory'); ?>/js/misc1.js"; document.body.appendChild(element); } if (window.addEventListener) window.addEventListener("load", downloadJSAtOnload, false); else if (window.attachEvent) window.attachEvent("onload", downloadJSAtOnload); else window.onload = downloadJSAtOnload; </script>I use this to defer loading misc.js that contains all of my custom js.
Forum: Fixing WordPress
In reply to: Loading jQueryah so wordpress 4.2.1 is only tested with jquery 1 which is old. But my code below won’t work unless I add jquery 2 to the head of my theme.
$(document).ready(function () { $(window).scroll(function () { if ($(this).scrollTop() > 500) { $('.scrollup').fadeIn(); } else { $('.scrollup').fadeOut(); } }); $('.scrollup').click(function () { $("html, body").animate({ scrollTop: 0 }, 900); return false; }); });If de-registering jquery 1 is so bad, what are people to do?
Forum: Plugins
In reply to: [WP Tiles] Choosing the grid layout with template tags and limiting resourcesOk I’ve made some more progress with:
<?php $query = new WP_Query(array( 'post_type' => 'post', 'posts_per_page' => 4, 'paged' => 1 ) ); // WP Tiles arguments $args = array( 'grids' => plain ); // Display the tiles the_wp_tiles( $query, $args ); ?>All I need to now to limit the output to images from my gallery category or pages.