WordPress.org

Ready to get started?Download WordPress

Forums

Oxygen
[resolved] Slider: How to remove publishing dates? (8 posts)

  1. Safrane01
    Member
    Posted 1 year ago #

    Beside the title of the featured article, there is also the date, when this article was published, displayed. As I am planing to have a quite static side, I want to hide this date at least in the slider.
    Could you please tell me, how this is possible?

    Best regards

    Thomas

  2. emaravelia
    Member
    Posted 1 year ago #

    Hello,

    I wanted to remove the publishing dates and here is how I did it:
    Edit the featured-content.php file by removing this:

    <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-published]', 'oxygen' ) . '</div>' ); ?>

    If for some reason you also want to remove the text you see you can delete this:

    <h2 class="post-title entry-title">
    							<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    						</h2>

    Hope this helps.

  3. Griden
    Member
    Theme Author

    Posted 1 year ago #

    That's a nice solution, but please copy featured-content.php to a child theme before editing. Otherwise the next update will overwrite your customisation.

    http://codex.wordpress.org/Child_Themes

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Edit: @Griden >:(
    If you haven't already, you probably want to make changes using a Child Theme, so you don't run the risk of losing your changes when the theme updates.

  5. emaravelia
    Member
    Posted 1 year ago #

    You are right both of you. I should have mentioned I always work on child themes. Learned the hard way :)

  6. Safrane01
    Member
    Posted 1 year ago #

    Thank you, it works great!
    http://www.kirche-am-rhein.de

  7. zoedor
    Member
    Posted 1 year ago #

    I have trouble working with a child theme.. hope someone can help me.

    I would like to delete the date in the featured header also.
    I made a child theme with the plugin one click child theme and my child theme is now active.

    When I open the editor of my child theme, i only find style.css, but that is not the css where you find the line you have to delete here. Where do I delete the line? Do i need to import the featured-content.css somehow.

    Hope someone can help.

  8. zoedor
    Member
    Posted 1 year ago #

    ok, after a lot of reading i found it. Don't know how to delete the comment

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic