Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1369143

    Hi there!
    Is there any possibility of removing the time of the blogs but keeping the date?
    Thanks in advance
    Arantza

    #1369263
    This reply has been marked as private.
    #1369281

    Hi,
    Thanks for your patience, I assume that you are referring to the Latest News & Latest Portfolio widgets:
    2022-10-18_006.png
    Try adding this code to the end of your functions.php file in Appearance ▸ Editor:

    add_filter('avia_widget_time', 'change_avia_date_format', 10, 2);
    function change_avia_date_format($date, $function) {
      $output = get_option('date_format');
      return $output;
    }

    the expected results:
    2022-10-18_007.png

    Best regards,
    Mike

    #1369284

    Thank you, but it doesn’t work :(

    #1369312

    Hi asociacionespanolaaustria,

    Please add this CSS code in Enfold > General Styling > Quick CSS:

    #top .news-time {
        display: none;
    }

    If that does not help, please give us a link so we can check it.

    Best regards,
    Nikko

    #1369328

    Hi, Nikko!
    Thank you, but it doesn’t work. This deletes both date and time, and I want to keep the date.
    Best regards
    Arantza

    #1369333

    Hi Arantza,

    Thanks for giving us admin access.
    I have removed the code I have given in Quick CSS and have installed and activated this plugin: WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager then added Mike’s code and saved it (named it: Remove Time from Enfold Latest News Widget) and it worked well.
    I have also removed this code in your Quick CSS:

    /* link logo para idiomas diferentes */
    
    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    $lang = pll_current_language(‘locale’);
    switch ($lang) {
    case 'de_AT':
    $logo = “/wp-content/uploads/2022/07/Aespa-Logo_ES.png”;
    break;
        case 'es_ES':
    $logo = “/wp-content/uploads/2022/10/Aespa-Logo_DE.png”;
    break;
    }
    
    return $logo;
    }

    This code will not run since it’s not CSS and may cause unintentional behavior.

    Best regards,
    Nikko

    #1369348

    Awesome! Thank you very much :)
    Arantza

    #1369355

    Hi,

    Great, I’m glad that we could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1369363

    You can close!
    Thank you

    #1369371

    Hi,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Remove time from Sidebar-Blog’ is closed to new replies.