New Landing How can we help? Themeforest Theme Support Dante How to delete Posted by at the top of an article

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #294112
    Marine
    Member
    Post count: 151

    Hello,

    On my blog, at the top of an article, I’d like to remove “Posted by” but to keep the date and the categories.
    Now : Posté par 3 octobre 2016 dans ROI Satisfaction
    Wanted : 3 octobre 2016 dans ROI Satisfaction
    Tx !!

    #294134
    David Martin – Support
    Moderator
    Post count: 20834

    Please install and activate the supplied child theme, copy the file single.php from the parent theme to child theme.

    Inside the child theme single.php locate this which starts on line 213:

    					<?php if ($single_author && !$remove_dates) { ?>
    						<span><?php echo sprintf(__('Posted on <span class="date updated">%1$s</span> in %2$s', 'swiftframework'), $post_date, $post_categories); ?></span>
    					<?php } else if ($single_author && $remove_dates) { ?>
    						<span><?php echo sprintf(__('Posted in %1$s', 'swiftframework'), $post_categories); ?></span>
    					<?php } else if ($remove_dates) { ?>
    						<span class="vcard author"><?php echo sprintf(__('Posted by <span itemprop="author" class="fn">%1$s</span> in %2$s', 'swiftframework'), $post_author, $post_categories); ?></span>
    					<?php } else { ?>
    						<span class="vcard author"><?php echo sprintf(__('Posted by <span itemprop="author" class="fn">%1$s</span> on <span class="date updated">%2$s</span> in %3$s', 'swiftframework'), $post_author, $post_date, $post_categories); ?></span>
    					<?php } ?>
    					<?php if ( comments_open() ) { ?>
    					<div class="comments-likes">
    						<div class="comments-wrapper"><a href="#comments"><i class="ss-chat"></i><span><?php comments_number(__('0 Comments', 'swiftframework'), __('1 Comment', 'swiftframework'), __('% Comments', 'swiftframework')); ?></span></a></div>
    					</div>
    					<?php } ?>

    And remove the “Posted on” or “Posted by“.

    Thanks.

    #294150
    Marine
    Member
    Post count: 151

    Perfect ! tx !!

    #294158
    David Martin – Support
    Moderator
    Post count: 20834

    Happy to help.

    – David.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register