WordPress.org

Forums

Accesspress Lite
[resolved] How to delete the published date on latest event? (4 posts)

  1. weiz
    Member
    Posted 1 year ago #

    How to delete the published date on latest event above featured image? I tried deleting it from appearance>editor>sidebar-left.php and sidebar-right.php, but it seems not work.

    Thanks

  2. Access Keys
    Member
    Theme Author

    Posted 1 year ago #

    The code for it is in index-one.php
    Make sure you make child theme and work..
    Thanks

  3. bridt17
    Member
    Posted 8 months ago #

    Which code do I have to delete from the index-one.php and the sidebar.php to delete de date on de events..

  4. Access Keys
    Member
    Theme Author

    Posted 7 months ago #

    Hi there,
    Please delete following code from the index-one.php

    <?php						if($accesspresslite_settings['show_eventdate'] == 1){
    if(!empty($accesspresslite_event_day) || empty($accesspresslite_event_month) || !empty($accesspresslite_event_year)){ ?>						<div class="event-date">
    <span class="event-date-day"><?php echo $accesspresslite_event_day; ?> <?php echo $accesspresslite_event_month; ?></span>
    <span class="event-date-month"><?php echo $accesspresslite_event_year; ?></span>
    </div>
    <?php }else {?>
    <div class="event-date">
    <span class="event-date-day"><?php echo get_the_date('j'); ?></span>
    <span class="event-date-month"><?php echo get_the_date('M'); ?></span>
    </div>
    <?php }
    }?>

    Note: Please make you make changes in Child theme. When theme is updated the changes will be replaced
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags