This topic is now archived and is closed to further replies.

Custom Category Headers

2 posts in this topic

I am attempting to get customized header images on 5 different blog categories within the same install. I've seen several workarounds (none of which adequately solve my problem) and am considering some alternatives.


For a non-Pagelines site, this code makes sense to show different images on different categories:




if (is_home()){
<img src="welcome.jpg">

echo '<img src="travels.jpg">';
echo '<img src="musings.jpg">';
echo '<img src="lunch.jpg">';


However, I'm not certain Pagelines gives me that functionality or doesn't have it hidden deep inside something.


Some pointers about which section(s)? to start editing? 


Do I just need to give up on Pagelines and get a regular theme and customize from there?



Share this post

Link to post
Share on other sites



You certainly have this functionality. However, you will need to use that code in the form of a hook, see here for more details and examples.

Share this post

Link to post
Share on other sites

  • Similar Content

    • Page Content Disappeared when Logged In
      By flourishdesignstudio+
      I am having a unique problem in which our website is appearing correctly when I am logged out of DMS but when I am logged in and view the front of the site the main content area disappears. The page content still exists in the WP editor in the backend but from the front everything disappears. This happens on almost all the main pages but not on every single one which made me think it was a template problem but this is happening across several templates, not just a single one. Any thoughts on what might be causing this?
      I am attaching screenshots of the same page when I am logged out versus when I am logged in. Thanks so much in advance for the help!

    • Remove or reduce margin (or padding) in header
      By richardjacruz+
      I'm building a site at:
      and I followed the instructions on building a "branding" area in the header:
      But, if you see the image I've attached, you'll see that there's a lot of space between the nav and the slider. Is this something I need to control with CSS in the Custom code section, or is there something else I can do that's part of the header section?

      Actually, what would also be nice is if I could put a divider line there... like an orange or a light gray.
    • Header formatting
      By richardjacruz+
      I saw this website build with PageLines DMS:
      I want to have a header that's VERY similar. However, with the fixed area, I'm struggling with how to do that. 
      I want to have a "super menu" under one of the tabs, and drop downs for others, a larger logo to the left like this, a search all the way to the right, and a call-to-action at the top like we see with "Donate" (I want "Request a Quote").
      What area (fixed or header) is best to use for this, and, within that area, what are the best sections to place?
    • Missing Header Region HELP!!!
      By 21thirteen
      We're using DMS2 to create the site
      The latest versions of DMS2 and WP are installed.
      We cloned the site using ManageWP and worked on it on our development server online, then cloned it back to (We've done this before with no problem).
      The Header region is now missing.
      Strangely enough, it can be seen in Chrome if you are logged in to wp-admin, both in preview mode and not, but if you log out, or look at the site in any other browser, the Header region is missing (it has a Media Box in it with links to the Chinese and Japanese versions of the site).
      Even more strange, I decided to try to disable and then re-enable the Header region in Site Settings/Advanced. The Header region was not disabled. I checked the disable box and refreshed the page, then when i tried to uncheck it, every time I refreshed it would be checked again. I finally managed to uncheck it after 6 or 8 tries. The same thing is going on with the Enable Debug checkbox. I checked it and I can't uncheck it now, but when I click on the "Click here" link for Debug Info, it says "WordPress Debug Disabled".
      I've attached screenshots.
      The client is understandably upset. Help would be GREATLY appreciated!
      Thank you,
      Perry Yeldham
      21Thirteen Design

    • Padding on Header image
      By natalielue
      HI All.
      I want to remove the padding on the header image, so that my full width header (1200Px) is sitting left aligned propely rather than with padding. I can't work out where this is styled. Can someone please advise.
      Thank you x