Questions regarding Posts, Categories, and Transcripts
-
With regard to 9. the specific post text doesn’t get loaded, either, which I’d like to fix.
All right, I fixed #1 myself:
.webcomic-img {
text-align: center;
}in the stylesheet, for anybody who needs it.
Still haven’t figured out the rest, yet.
- Looks like you got this one.
- Add this code to the top of
archive.php, just afterget_header(); - Adding
h2.webcomic-collection-title {display:none}to the theme stylesheet should hide the collection title at the top of collection archive pages. - The exact CSS required to do this will vary from theme to theme, but this should get you started.
- Adding
select.webcomic_terms {background: black; color: white;}to the theme stylesheet should make the select dark with light text. - Swapping out transcripts can get a bit complicated; I can’t fully explain how to do it here, but you might look at The Young Protectors to see how it’s being done there.
- You can fully customize how webcomics display in the Dynamic Browser – and most other aspects of Webcomic – by adding an appropriate template to your theme. To start, you may want to copy Webcomic’s own dynamic template from
webcomic/-/php/integrate/dynamic.phptowebcomic/dynamic.phpin your active themes directory. To that, you can add Webcomic’s default transcript template to the bottom. - Webcomic’s
loop_start.phpintegrate template doesn’t include all of the meta data Inkblot displays by default. You can adjust this by adding awebcomic/loop_start.phptemplate (probably copied fromwebcomic/-/php/integrate/loop_start.php) to your active themes directory and tweaking it to your liking. - You can adjust this by editing
dynamic.phpso thatcomments_popup_link( 0, 1, "%" )iscomments_popup_link(). - You’ll want to edit
loop_start.phpand add this between lines 74 (</article><!-- #post-<?php the_ID(); ?> -->) and 75 (</div>).
- Yup, thanks.
- Worked.
- I managed to figure it out shortly before you posted, but I didn’t have the preceding h2, which I assume makes it more specific so it doesn’t mess with other parts. Thanks!
- It seems I either inserted it incorrectly or the code doesn’t work with my theme. I guess I’ll have to contact the theme creators directly?
- That code snippet unfortunately didn’t work, but it pointed me in the right direction, so I got it to work with .webcomic-transcript-languages select {background: black; color: white;}
- The Young Protectors example is exactly how I would like it to work. My problem is that all Transcripts are displayed simultaneously by default, and only after select from the drop-down does it filter to a single language.
- I followed your instructions, but perhaps I did something wrong, as I don’t see any changes on the Home Page. For clarity: I first created a “webcomic” directory in my active Theme’s directory, then I copied over “dynamic.php” from integrate and then added your code to the very bottom. I assume the code was supposed to add a standard Transcription drop-down menu to the Dynamic Browser, but nothing changed.
- I don’t really know enough to add the relevant code for the metadata myself, could you point me in to the Inkblot code where it does that?
- That almost worked. Now, when browsing with the Dynamic Browser, it’ll display “No Comments on …”, but when directly going to the Home Page, it’ll just display “0” by default, until you browse to the next post. Maybe it just doesn’t integrate well with Disqus?
Edit: Looks like it did work, once I added at least one comment to the post. - I’m afraid adding the code between those two lines just displays it as plaintext on the Home Page.
Thanks a lot for the quick response and addressing all of my issues, I really appreciate it.
4 – You may have to contact the theme authors for the tag and category icons. I can’t seem to find the code that displays those in Vantage. They are, presumably, wrapped in a container of some kind, though, so if you can find the class or ID on the container you can swap
.post-tagsout for that and the code should work.5 – Here’s The Young Protector’s transcript code; try putting this in the theme
footer.phpfile (at the bottom, just before the</body>tag):jQuery(function($){ // hide the transcribe form $('.webcomic-transcribe form').hide(); // hide transcripts until a language has been selected $('.webcomic-transcripts-header select').on('change',function(){ $('#webcomic-transcripts article').hide(); if ($(this).val()) { $('#webcomic-transcripts article.'+$(this).val()).show(); } }).trigger('change'); // toggle the transcribe form $('.webcomic-transcribe-header').on('click',function() { $('.webcomic-transcribe form').toggle(); }); });7 – There’s a missing
<?phpat the beginning of the transcript code snippet I shared; the complete first line should be<?php if ( $transcripts = get_webcomic_transcripts() ) : ?>. That may be why it wasn’t working properly.8 – You’ll probably want to copy Webcomic’s existing
loop_start.phptemplate. From there, addingthe_category();andthe_tags();just beforethe_webcomic_collections();(line 61) should get tags and categories displaying.9 – In your
loop_start.phpchange line 49 from<?php comments_popup_link( 0, 1, "%" ); ?>to<?php comments_popup_link(); ?>. That should make the comment links consistent.10 – For the comments, you’ll have to wrap the code like:
<?php $withcomments = true; comments_template(); $withcomments = false; ?>4. Will do, thanks.
5. I assume this has to be wrapped somehow, but <script> or <?php ?> don’t seem to do the trick.
7. Worked, thank you!
8. Still has nothing showing up. I suppose I should ask the Theme creators about that, as well.
9. Yup, thanks.
10. Worked.
Sorry to bug you so much, but thank you very much for all the help.
The topic ‘Questions regarding Posts, Categories, and Transcripts’ is closed to new replies.
(@rhayve)
11 years ago
Hello! I’ve been tinkering with the plugin quite a bit in the past few days, and I’ve got almost everything to work properly, but some parts still elude me, unfortunately. I realize these are a lot of questions and some are probably general CSS or Theme questions and not directly related to the plugin, but I hope you don’t mind, as I haven’t been able to fix them myself.
I’m using Webcomic 4.3.1 with the “Vantage” theme.
I hope this isn’t too much all at once. Feel free to skip any questions if you like. In any case, thank you very much for your work on this excellent plugin.
https://ww.wp.xz.cn/plugins/webcomic/