• Resolved RukuKabe

    (@rukukabe)


    Hey guys, so I’m trying to remove the header image from the page where my comic will be posted. Here’s the website where I’ll be hosting my comic:
    http://www.dragonstar-blog.com/?page_id=34

    I’d like to have my “Read” page look the same as the “About” page, without the header image. To do it for the “About page, I put this line of code in the header.php-
    <?php if (!is_page( array( 34, 43, )) ){ ?>

    -before where the header image code was. I want to add a line that will also make this apply whenever the current page is a comic. Something similar to this I think:

    <?php if ($post->post_type !== 'comic')

    I’m EXTREMELY new to WordPress (2 or 3 days) so there’s a lot I don’t know how to do. Is there a way to tag on a line like so to the end of what I put in the header.php that would apply the same effect to comic pages as to my About page?

    Thanks in advance.

    https://wordpress.org/plugins/comic-easel/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just had a similar problem. Finally found the is_singular() condition that fixed it. For your problem:

    <?php if (!is_singular(‘comic’)) ?>

    should do it.

    Thread Starter RukuKabe

    (@rukukabe)

    Doesn’t seem to be changing anything. Do I need to add an “and” condition of some sort? Currently I took the line of code you just posted and just added it directly under what I previously had in my header.php

    Thanks for the help!

    Thread Starter RukuKabe

    (@rukukabe)

    Alright, I managed to remove the header image by deleting the previous line and adding:
    <?php if (is_home() ){ ?>
    To the header.php instead, so that way the header will only show up on the homepage. However, now the gray entry header object that ‘does’ appear on the about page, doesn’t appear on the comic pages. Any idea what might be causing this?

    Thread Starter RukuKabe

    (@rukukabe)

    Solved that part. I seem to be able to figure things out once I just throw things around enough. Haha! XD

    I created a new page where I want to post the comic pages only (the home page will be used for regular blog posts). I added:

    <?php do_action('comic-area');

    to the single.php and index.php but I can’t seem to figure out how to get comic posts to show up on this page.

    EDIT: I’ll mark this thread solved and start a different thread as this seems to have diverged into an entirely different topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing Header Image from Comic Pages’ is closed to new replies.