Question Title not showing
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?
1 2 3 | .anspress h 1 .entry-title { display : block !important ; } |
Thanks,
Andre
Question is closed for new answers.
lightstyle Selected answer as best
Hi Rahul,
I imagine you’re after single-question.php located at /wp-content/plugins/anspress-question-answer/templates? If not please specify the file and path and I’ll send it, otherwise here’s the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | <?php /** * This file is responsible for displaying question page * This file can be overridden by creating a anspress directory in active theme folder. * * @package AnsPress * @subpackage Templates * @license https://www.gnu.org/licenses/gpl-2.0.txt GNU Public License * @author Rahul Aryan <support@anspress.io> * * @since 0.0.1 * @since 4.1.0 Renamed file from question.php. * @since 4.1.2 Removed @see ap_recent_post_activity(). * @since 4.1.5 Fixed date grammar when post is not published. */ ?> <div id= "ap-single" class = "ap-q clearfix" > <div class = "ap-q-left <?php echo ( is_active_sidebar( 'ap-qsidebar' ) ) ? 'ap-col-8' : 'ap-col-12'; ?>" > <?php /** * Action hook triggered before question meta in single question. * * @since 4.1.2 */ do_action( 'ap_before_question_meta' ); ?> <div class = "ap-question-meta clearfix" > <?php ap_question_metas(); // xss ok. ?> </div> <?php /** * Action hook triggered after single question meta. * * @since 4.1.5 */ do_action( 'ap_after_question_meta' ); ?> <div ap= "question" apid= "<?php the_ID(); ?>" > <div id= "question" role= "main" class = "ap-content" > <div class = "ap-single-vote" ><?php ap_vote_btn(); ?></div> <?php /** * Action triggered before question title. * * @since 2.0 */ do_action( 'ap_before_question_title' ); ?> <div class = "ap-avatar" > <a href= "<?php ap_profile_link(); ?>" > <?php ap_author_avatar( ap_opt( 'avatar_size_qquestion' ) ); ?> </a> </div> <div class = "ap-cell clearfix" > <div class = "ap-cell-inner" > <div class = "ap-q-metas" > <?php echo ap_user_display_name( [ 'html' => true ] ); ?> </span> <a href= "<?php the_permalink(); ?>" class = "ap-posted" > <?php $posted = 'future' === get_post_status() ? __( 'Scheduled for' , 'anspress-question-answer' ) : __( 'Published' , 'anspress-question-answer' ); $time = ap_get_time( get_the_ID(), 'U' ); if ( 'future' !== get_post_status() ) { $time = ap_human_time( $time ); } printf( '<time itemprop="datePublished" datetime="%1$s">%2$s</time>' , ap_get_time( get_the_ID(), 'c' ), $time ); ?> </a> <span class = "ap-comments-count" > <?php $comment_count = get_comments_number(); ?> <?php printf( _n( '%s Comment' , '%s Comments' , $comment_count , 'anspress-question-answer' ), '<span itemprop="commentCount">' . (int) $comment_count . '</span>' ); ?> </span> </div> <!-- Start ap-content-inner --> <div class = "ap-q-inner" > <?php /** * Action triggered before question content. * * @since 2.0.0 */ do_action( 'ap_before_question_content' ); ?> <div class = "question-content ap-q-content" itemprop= "text" > <?php the_content(); ?> </div> <?php /** * Action triggered after question content. * * @since 2.0.0 */ do_action( 'ap_after_question_content' ); ?> </div> <div class = "ap-post-footer clearfix" > <?php ap_post_actions_buttons(); ?> <?php do_action( 'ap_post_footer' ); ?> </div> </div> <?php ap_post_comments(); ?> </div> </div> </div> <?php /** * Action triggered before answers. * * @since 4.1.8 */ do_action( 'ap_before_answers' ); ?> <?php // Get answers. ap_answers(); // Get answer form. ap_get_template_part( 'answer-form' ); ?> </div> <?php if ( is_active_sidebar( 'ap-qsidebar' ) ) { ?> <div class = "ap-question-right ap-col-4" > <div class = "ap-question-info" > <?php dynamic_sidebar( 'ap-qsidebar' ); ?> </div> </div> <?php } ?> </div> </div> |
Rahul Aryan Posted new comment
no, from your theme not from AnsPress. Check for single-question.php in your theme or just share single.php from your theme