Search for: Log In Free Support [Support request] Default blog post header Home › Forums › Support › Default blog post header This topic has 3 replies, 2 voices, and was last updated 4 years ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 17, 2017 at 3:50 am #264924 BarnaB Hi, Is it possible OR how can I achieve a default blog posts header with: default background (a small 1kb png repeated)and post title as H1 aligned to center? http://prnt.sc/dwpzim But it would be default to all blog posts…. thanks https://wpress.zone Tutorials and tips for GeneratePress and Elementor January 17, 2017 at 9:48 am #265040 TomLead Developer Lead Developer GP Hooks would be your best bet. Something like this in the After Header hook: <?php if ( is_single() ) : ?> <div class="posts-hero-area"> <?php the_title(); ?> </div> <?php endif; ?> Then your CSS: .posts-hero-area { background-image: url('URL TO YOUR IMAGE'); background-repeat: repeat; padding: 7% 0; text-align: center; color: #FFF; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development January 30, 2017 at 5:51 am #271675 BarnaB Thank you, it worked amazingly well. One more thing if I may ask…how to add a category meta below the title? If not possible not an issue 🙂 < h1 > big 36px title text < /h1 > < h4 > smaller 20px category < /h4 > Thank you https://wpress.zone Tutorials and tips for GeneratePress and Elementor January 30, 2017 at 10:15 am #271796 TomLead Developer Lead Developer Something like this might work: http://stackoverflow.com/questions/17303840/get-category-name-from-post-id Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In