Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Comic thumbnail preview (possible feature request) #67

Open
ghost opened this issue Feb 20, 2018 · 2 comments
Open

Comic thumbnail preview (possible feature request) #67

ghost opened this issue Feb 20, 2018 · 2 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Feb 20, 2018

Hi Michael!

I'm designing a site for a friend and wanted to know if it's possible to show a thumbnail preview of the latest comic page using Inkblot, preferably in the content section where the webcomic would typically display.

@mgsisk mgsisk self-assigned this Feb 21, 2018
@mgsisk
Copy link
Owner

mgsisk commented Feb 21, 2018

Hey @camorgan! Would you just want this on the homepage? If so, the easiest way would be to open up /inkblot/webcomic/home.php and replace line 33:

get_template_part( 'webcomic/display', get_post_type() );

with:

last_webcomic_link( '%thumbnail' );

That will replace the standard comic display (and navigation) on the homepage with just a thumbnail link to the latest comic.

@ghost
Copy link
Author

ghost commented Feb 21, 2018

Thanks for the suggestion! I changed the line but it's still displaying a page. I'm using a child theme for Inkblot, will that interfere? The code below is what I have in the child theme for webcomics/home.php

< ?php
if ($webcomics and ! get_theme_mod('webcomic_content', false) and $webcomics->have_posts()) :
while ($webcomics->have_posts()) : $webcomics->the_post();
last_webcomic_link( '%thumbnail' );
endwhile;
$webcomics->rewind_posts();
endif;
?>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant