[Resolved] Category and Tag headings

Home Forums Support [Resolved] Category and Tag headings

Home Forums Support Category and Tag headings

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #55954
    Heath

    Hi! Just bought all your add-ons, thanks for this resource! For reference, my site is http://notwrittenby.com/

    I have two questions…

    1) When someone clicks on a tag (I’ve placed a tag widget in my footer), how can I make it so that the tag title/header does not show up?

    2) My navigation menu is set to redirect to the various categories. When a category is selected, instead of just the generic text heading, can I show an uploaded image banner instead of the category title?

    Thanks!!

    #55960
    Tom
    Lead Developer
    Lead Developer

    Hi Heath,

    1. This CSS should work:

    .page-header {
          display: none;
    }

    2. You can do this using GP Hooks and some PHP if conditionals – if you’d like me to give you some sample code, let me know ๐Ÿ™‚

    #55963
    Heath

    I would love any help and/or code you’re able and willing to provide! I’m VERY new to all this…

    #56076
    Heath

    So… I went into GP Hooks (inside content container) and tried putting in:

    <?php if(“category name”) ?><img_src=”image.jpg” /><?php } ?>

    But, it’s not coming out right. I get a Parse Error. Do you know what I’m doing wrong? Sorry for my ignorance. Thanks!!!

    #56098
    Tom
    Lead Developer
    Lead Developer

    You’re looking for this function: http://codex.wordpress.org/Function_Reference/is_category

    So:

    <?php if ( is_category( 'Category name' ) ) : ?>
    <img src="..." />
    <?php endif; ?>
    #56205
    Heath

    Thanks!!

    #56257
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.