Question Title not showing

Solved9.34K viewsIssues
0

Hi Rahul,
I have search support, found a few answers however adding the code below didn’t work. Could you please inspect http://janszoon.lightstyle.co.nz/question/what-is-the-best-time-to-spot-dolphins-in-the-park/ and let me know how to fix this?

.anspress h1.entry-title {
    display: block!important;
}


Thanks,
Andre

Question is closed for new answers.
Selected answer as best
0

Code from single.php (/wp-content/themes/xxx) below:

<?php
get_header();
the_post();
$category = get_the_category();
?>
<div id="the-page-content">
     <?php
    if (isset($category) && ($category[0]->slug == 'wildlife' || $category[0]->slug == 'plants')) {
        get_template_part('partials/plants_wilflife_content');
    } else {
        ?>
        <div class="container-fluid single-post-container">
            <h2><?php the_title() ?></h2>
            <?php
            global $post;
            $cat = get_the_category();
            ?>
            <div id="post-meta-data">
                <?php echo date('d F Y',strtotime($post->post_date)) ?>
                <?php if(!empty($cat)):?>
                |
                <?php foreach($cat as $key=>$c):?>
                <?php echo $c->name ?>
                <?php if($key<count($cat)-1):?>
                &raquo;
                <?php endif ?>                
                <?php endforeach ?>
                <?php endif ?>
            </div>
            <?php
            //date + category + author
            ?>
            <div class="single-post-content">
            <?php
           the_content();
            ?>
                </div>
        </div>
      <div class="clearfix"></div>
    <div id="single-delimeter"></div>
        <?php
    }
    ?>
   </div>
  <?php get_footer() ?>

Posted new comment

This looks okay. simply create new file in your theme single-question.php and then copy this codes to it.

thank you I can confirm this is now solved. great support!

You are viewing 1 out of 5 answers, click here to view all answers.