Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #279473

    Hey there,

    first of all your theme is fantastic! It has lot of options and is incredibly flexible! Thank you!

    But, to achieve the PERFECT website, we have small request – would like to remove:

    1. Time only of “Latest News’-widget
    2. Time AND date of “Latest Portfolio”-widget

    Tried using sort of “.news-time {display: none; }”, but that removes time and date of both widgets. Can you help?

    Thanks a lot in advance!
    Pede

    #279754

    Hi Pede,

    Can you post the link to your website please?

    Regards,
    Josue

    #280093
    This reply has been marked as private.
    #280134

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #portfoliobox-2 span.news-time {
    display: none;
    }

    Please go to wp-content\themes\enfold\framework\php folder and open class-framework-widgets.php file and find

    get_the_time($time_format)

    and change them to

    get_the_date()

    Cheers!
    Yigit

    #280155

    Hey!

    Try adding this code to the Quick CSS:

    #portfoliobox-2 .news-time {
        display: none;
    }

    And this to the theme functions.php:

    function custom_widget_time($time_format, $location) {
    	$time_format = get_option('date_format');
    	return $time_format;
    				
    }
    add_filter('avia_widget_time', 'custom_widget_time');
    

    Cheers! 
    Josue

    #280761

    Dear all,

    thank you so much. I added second code given by Josue and it works! That’s what I wanted to achieve!

    Great – thank you, guys!

    Cheers
    Pede

    #280769

    You are welcome Pede, always glad to help :)

    Regards,
    Josue

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to remove time of ‘Latest News’-widget | Time and date of “Latest Portfolio”’ is closed to new replies.