WordPress.org

Ready to get started?Download WordPress

Forums

ComicPress
Hide transcript in archive (10 posts)

  1. clarinetina
    Member
    Posted 7 months ago #

    When you click a date in the calendar widget - is there a way to stop the transcript appearing in the page that comes up?
    Example: http://koala-hugs.com.au/comic/2014/01/13/?post_type=comic

  2. Frumph
    Member
    Theme Author

    Posted 7 months ago #

    Looks like you figured out a way?

  3. clarinetina
    Member
    Posted 7 months ago #

    No, sorry, I didn't. It's the bit at the bottom just after the arrow that starts TranscriptCyn:. (If you really can't see it, I wonder why I can...?!)
    There isn't any formatting - which is my problem. If it had a class on the p, or a div around it or something, I could hide it with CSS. If you know where that bit is in the PHP that could help me and I could pop that in myself. Or you could do it for future generations :-) If you have a better way, I'm happy to hear it!

  4. Frumph
    Member
    Theme Author

    Posted 7 months ago #

    huh, yeah I can't see it .. you're talking the archive pages right? I don't see anything passed the click here to read more link

  5. Frumph
    Member
    Theme Author

    Posted 7 months ago #

    try not being logged on and see if you see it on that page you linked ?

  6. Frumph
    Member
    Theme Author

    Posted 7 months ago #

    You could put this into your child themes functions.php (or main themes functions.php if you're not using a child theme)

    global $wp_query;
    if (is_search() || is_archive()) remove_filter('the_content', 'ceo_insert_comic_transcript_into_posts');

    and see if that removes it completely from being seen on search and archive pages

  7. clarinetina
    Member
    Posted 6 months ago #

    I created a new functions.php for my child theme, and just put that code in it (with <?php and ?> around it).

    Sigh, sorry, still there.
    I can definitely see it, logged in or not (fresh browser too).
    Hmf.

    Anyway, it's not really important, just cosmetic. Thanks for trying anyway ;-)

  8. Frumph
    Member
    Theme Author

    Posted 6 months ago #

    i'll just make sure in the next release of comic easel that it doesn't show on the search / archive pages

  9. clarinetina
    Member
    Posted 6 months ago #

    Well now, that would be extremely nice of you. Thanks Frumph! :-)

  10. Frumph
    Member
    Theme Author

    Posted 6 months ago #

    whoops, forgot about this, ..

    can you post it as an issue on github ? http://github.com/frumph/comic-easel/

Reply

You must log in to post.

About this Theme

About this Topic