Your Time:
Our Time:
← Back to discussions

Blog subheader displaying "&NSBP;" on both the demo and my installation

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 3 voices, and was last updated 10 years, 8 months ago by Anonymous.

  • 2016-01-07 at 9:22 am
    Support Expired
    #11964
    seth2958
    Participant
    • Topics: 10
    • Replies: 16
    • Total posts: 26
    • Post count: 22

    Hi, I noticed that on your demo and on my installation, the blog subheader displays something like this:

    October 22, 2013/By Yakub Khan/In News, Press/&nbsp0 Comment

    Notice the &nsbp; there?

    Can you please fix this? Thanks.

    2016-01-07 at 9:58 am
    #11965
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Go to musicplay-> framework-> common-> atp_generator.php. Replace “postmetaStyle” function with this,

    function postmetaStyle() {
    	global $format;
    	ob_start();
    	$out = '<div class="post-metadata">'; 
    	echo '<span>';
    	the_time(get_option('date_format'));
    	echo '</span>/<span>'. __('By', 'musicplay').'&nbsp;';
            the_author_posts_link(); 
    	echo '</span>/<span>'. __('In', 'musicplay').'&nbsp;';
    	the_category(', ') ; 
    	echo '</span>/<span>&nbsp';
    	comments_popup_link( __( '0 Comment', 'musicplay' ), __( '1 Comment', 'musicplay' ), __( '% Comments', 'musicplay' ) );
    	echo '</span>';
    	$out .= ob_get_clean();
    	$out .= '</div>';
    	return $out;
    }
    2016-01-07 at 6:40 pm
    Support Expired
    #12064
    seth2958
    Participant
    • Topics: 10
    • Replies: 16
    • Total posts: 26
    • Post count: 22

    Works perfectly, thank you!

    2016-01-08 at 9:54 am
    #12080
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic as resolved!

    2016-01-08 at 2:36 pm
    Support Expired
    #12104
    B
    Participant
    • Topics: 3
    • Replies: 21
    • Total posts: 24
    • Post count: 33

    Hi there,

    Will this be included in the next theme release? (If I’m modifying a file in the original theme, I just want to know it won’t be overwritten when I update the theme.)

    Thanks!

    2016-01-08 at 2:57 pm
    #12105
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Yeah, we’ll consider adding this in the coming updates.

You must be logged in to reply to this topic.