Forum Replies Created

Viewing 15 replies - 16 through 30 (of 67 total)
  • Thread Starter c-m

    (@c-m)

    Here’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.

    Thread Starter c-m

    (@c-m)

    Yes 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.

    Thread Starter c-m

    (@c-m)

    That’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.

    Thread Starter c-m

    (@c-m)

    Ah. Yes it was WP tiles causing a problem.

    Thank you very much.

    Also got multiple things I can’t solve with the current documentation particularly the template tags.

    What did you use instead?

    Thread Starter c-m

    (@c-m)

    Solved.

    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.

    Thread Starter c-m

    (@c-m)

    Ah 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

    Thread Starter c-m

    (@c-m)

    Thanks. I know ordered lists aren’t really supposed to be used this way.

    Thread Starter c-m

    (@c-m)

    I’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 number

    I 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.

    Thread Starter c-m

    (@c-m)

    This one must be pretty straightforward.

    Curse my lack of PHP knowledge.

    Anyone?

    Thanks

    Thread Starter c-m

    (@c-m)

    I 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 jQuery
    Thread Starter c-m

    (@c-m)

    Yeah 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 jQuery
    Thread Starter c-m

    (@c-m)

    I 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 jQuery
    Thread Starter c-m

    (@c-m)

    ah 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?

    Thread Starter c-m

    (@c-m)

    Ok 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.

Viewing 15 replies - 16 through 30 (of 67 total)