Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #946516

    Hello,
    I have 3 questions regarding my sidebar customisation, I hope you’ll be able to help me. Please find below the credentials cause my site is development mode.

    Enfold latest news widget:
    – I don’ want to display the time near the date. In the css, there’s only 1 class for date and time so I can’t apply a display: none; I went to WordPress settings / General and remove the text in custom time field. It works but I still have a “-” after the date, how can I remove it?
    – how can I increase the size of the image thumbnail? it’s currently 36*36, I’d like 64*64.

    Archives widget : I’d like to remove the months to keep only the years, how can I do this?

    Tx guys for your help and Enfold is still my favorite theme :-)
    Nice day
    Marine

    #947623

    Hey newki75,

    Thank you for using Enfold.

    This is possible but you need to modify the framework > php > class-framework-widgets.php file. Look for this code around line 557.

    				if($time_format)
    				{
    					echo "<span class='news-time'>".get_the_time($time_format)."</span>";	
    				}

    Replace the “$time_format” with your own. Example.

    				if($time_format)
    				{
    					echo "<span class='news-time'>".get_the_time('F j, Y')."</span>";	
    				}

    Best regards,
    Ismael

    #947745

    Hey Ismaël,

    Do I have to duplicate this file in my child theme to avoid loosing the modifications when I update the theme?
    Any answer for the 2 other questions?
    Txxxxxx

    #948876

    Hi,

    You have to copy the whole “avia_newsbox” class without the class_exists function inside the child theme’s functions.php file.

    Best regards,
    Ismael

    #948989

    Hey Ismaël,

    Sorry but I don’t understand you last answer.
    I’ve seen the framework > php > class-framework-widgets.php in my Parent theme. I don’t want to change the date format but ton remove the “-” after the date, cf Print screen, link attached.
    I also would like to increase the size of the thumbnail images.
    Tx a lot !

    #949919

    Hi,

    In that file, you’ll find the “avia_newsbox” class. Just copy that whole block of code in your child theme then edit it as much as you want.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.