• Resolved sonofwitz

    (@sonofwitz)


    Hi,
    This seems like a really nice plugin.

    I’ve uploaded large retina size images (2048px on the long edge) and webcomic outputs the full image, not the Large size I have which is 1024px max.

    I thought it should honor my media settings and use the Large size, and I’d do some other dance to make sure the 2048 only shows on retina devices.

    Is this the expected behavior? the instructions seem to say i can just set the media settings and regenerate, but that has not changed the output of the image, which has class=”attachment-full”

    How can I get it to use the Large size by default?
    I don’t know which template bit to edit.
    Can anyone point me to it?
    Thanks.

    https://www.ads-software.com/plugins/webcomic/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike

    (@mgsisk)

    Hi sonofwitz! Apologies for the trouble; it sounds like things are working as expected, though. Webcomic displays the full-size uploaded image when using the the_webcomic template tag. The first argument of that template tag lets you control this, however, so it shouldn’t be too much trouble to fix. If you’re using Inkblot, open up inkblot/webcomic/display.php and change line 37:

    <?php the_webcomic('full', get_theme_mod('webcomic_nav_link', false)); ?>

    to:

    <?php the_webcomic('large', get_theme_mod('webcomic_nav_link', false)); ?>

    If you’re using Webcomic’s Integrate feature, copy /wp-content/plugins/webcomic/-/php/integrate/loop_start.php into wp/content/themes/YOURTHEME/webcomic/loop_start.php, then change line 79:

    <div class="webcomic-img"><?php the_webcomic( "full", "next" ); ?></div><!-- .webcomic-img -->

    to:

    <div class="webcomic-img"><?php the_webcomic( "large", "next" ); ?></div><!-- .webcomic-img -->

    Thread Starter sonofwitz

    (@sonofwitz)

    Hi Mike,
    Thanks so much for your prompt response.
    Certainly no apologies needed. This thing rocks.

    Thank you for pointing me to the relevant php. That will be easy enough.

    So I’m just starting out and I have your Archimedes Child Theme running.
    I suppose that means I make a copy of the display.php and put it in the Archimedes/webcomic folder. Is that right? Do I need that subfolder, or do I put it right in the “archimedes-master” folder.

    Or heck, should I be making a child theme of Archimedes if I’m modifying it?
    Or will Archimedes be updated, or only Inkblot? I don’t want to break anything in there.

    Sorry for the noob questions.
    Thanks,
    (also) Mike

    Thread Starter sonofwitz

    (@sonofwitz)

    Hi Mike,

    Ok, so I duplicated display.php into the “archimedes-master” folder at it’s root level and with the edit to large it did not change. I created a subfolder called webcomic and put that sucker in there, now it’s all good.

    Thanks so much!

    Plugin Author Mike

    (@mgsisk)

    No problem, sonofwitz; glad I could help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I get image size to display class "large" instead of "full"?’ is closed to new replies.