Display Question in the Header

4.41K viewsThemes
0

I looked for it in the whole site here. I could not find an easy answer. I am using askbug theme. I would like to know how can I display questions and category on the header like anspress.io.

Thank you in advance.

0

Override question.php, add this at top:

<div class="page-header questions-header clearfix">
	<div class="container">
		<h1 class="entry-title"><?php the_title(); ?></h1>
		<div class="ap-question-meta clearfix">
			<?php echo ap_display_question_metas() ?>
		</div>
	</div>
</div>

Add this in you theme style.css

.page-header.questions-header {
    background-image: url("/wp-content/themes/site/images/code.jpg?1aa825");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.46);
}