Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter designeradam

    (@ajaxouch)

    Why would attachment page images be anything but full size in the first place? Wasn’t that the entire purpose of creating actual attachment pages?

    I’ve checked multiple files.

    The closest thing I have found is in the attachment.php
    $attachment_size = apply_filters( “tc_attachment_size” , array(960,960));

    I’ve messed around with this with no solution.

    I just tried replicating the problem and my images showed up fine, at full size (as they do on the demo site).

    However, once I used the filter:

    add_filter('tc_customizr_attachment_size' , 'my_customizr_attachment_size');
    function my_customizr_attachment_size() {
        return array( 2048, 2048 );
    }

    to change(?) the size, my images started getting cropped at 500px high, like yours. So there’s something not quite right in there. Are you running with the code on?

    If not, it looks like either:

    – there’s a bug somewhere (though it’s odd that noone else has problems with this–I don’t think this code has changed recently); or
    – it’s a plugin / child theme conflict.

    Could you:
    – deactivate all your plugins
    – activate the parent Customizr theme, not your child theme

    then add them the all the plugins back one by one, then the child theme, testing all the way to see which messes up your images.

    On the subject of plugins, I see that you are using “WEN’s Responsive Column Layout Shortcodes”, which is loading a second copy of bootstrap in addition to the one loaded by Customizr. This won’t help and may break other stuff.

    As you already have bootstrap loaded, you don’t need a plugin. You might want to look at this snippet which shows you how to get your layouts sorted and perhaps define your own formats for pictures.

    Let us know what happens with just Customizr running and which plugin is causing problems.

    Well since 2048×2048 isn’t a registered thumbnail size, wp_get_attachment_image will look for the closest sized image and probably it “thinks” that 1170×500 is the closest.
    I downloaded this image, http://designradam.com/wp-content/uploads/2014/05/advertising-design1.png , attached but I cannot reproduce the issue …

    Thread Starter designeradam

    (@ajaxouch)

    Thanks for the tip on the bootstrap @electricfeet, didn’t realize there was a way to do columns in the theme.

    I’m ALWAYS looking to use less plugins lol.

    Also, I have already tested and disabled all plugins with no change before I posted this. I will retry this though just to make sure it wasn’t cached or something.

    When you say,
    “Are you running with the code on?”

    Is there a checkbox somewhere that controls the attachment page image size using that filter? I have been checking and unchecking the image options in the customize panel and that doesn’t seem to make much difference either.

    Thread Starter designeradam

    (@ajaxouch)

    It does appear to be a plugin issue, my cache was tricking me.

    Thread Starter designeradam

    (@ajaxouch)

    The culprit plugin was SP Client Project & Document Manager, which is unfortunate because I was excited about providing a front end upload/download for my clients.

    Thread Starter designeradam

    (@ajaxouch)

    thanks for the help guys,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Attachment Page Image Size’ is closed to new replies.