I can’t remember how I hid the header image from my edited default Kubrick theme or if I did at all, but now I need a static header image above my blog posts. To do this, I’ve used some code that basically makes a new category into a sticky that hangs out above all my posts. Here it is:
That works perfectly (http://www.huntermadeit.com/?page_id=309), except I don’t want the date, the link to the archive for that category, or a link to it’s comments in the “post”. Although I’m harnessing the power of a blog category to hold my image, I don’t want viewers to know it’s a separate blog. Seamless, you know?
So far I’ve tried this:
-Edited my single.php file to call different templates to different categories:
where “archiveblogheader.php” is a copied “archive.php” file with the call to post metadata (timestamp, archive link, view comments) deleted, but nothing is changing.
Any ideas?
The topic ‘Using Separate Category to Hold Static Image Above Blog’ is closed to new replies.
(@huntermadeit)
14 years, 9 months ago
Hey everybody!
I can’t remember how I hid the header image from my edited default Kubrick theme or if I did at all, but now I need a static header image above my blog posts. To do this, I’ve used some code that basically makes a new category into a sticky that hangs out above all my posts. Here it is:
That works perfectly (http://www.huntermadeit.com/?page_id=309), except I don’t want the date, the link to the archive for that category, or a link to it’s comments in the “post”. Although I’m harnessing the power of a blog category to hold my image, I don’t want viewers to know it’s a separate blog. Seamless, you know?
So far I’ve tried this:
-Edited my single.php file to call different templates to different categories:
where “archiveblogheader.php” is a copied “archive.php” file with the call to post metadata (timestamp, archive link, view comments) deleted, but nothing is changing.
Any ideas?