Premium support

Please log in to post in these forums. If you didn't create an account when you purchased, please contact us.

Free support

If you haven't purchased GP Premium, support for the free theme can be found on WordPress.org.

themedleb

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 109 total)
  • Author
    Posts
  • in reply to: Insert html/php to author page #463187

    Thank you Leo.

    in reply to: Author posts page button shortcode #459783

    I’m sorry, don’t mind this, I did solve it, the issue was with the starting and ending of php markup in the functions.php file.

    Thanks.

    in reply to: Display "Time ago" #453353

    Thank you.

    in reply to: Display "Time ago" #452602

    Thanks, I made it like that:

    
    function time_ago_date(  $the_date) {
    
    return 'Since'. human_time_diff( get_the_time('U'), current_time('timestamp') );
    return 'Since'. human_time_diff( get_the_modified_time('U'), current_time('timestamp') );
    }
    add_filter( 'get_the_date', 'time_ago_date', 10, 1 );
    

    But it didn’t work.

    in reply to: Display "Time ago" #452558

    I get this, just wrote it like that and it worked:

    
    return 'Since'. human_time_diff( get_the_time('U'), current_time('timestamp') );
    
    

    Now can you tell me please how can I make this function filter work with updated time too?

    in reply to: Display "Time ago" #452398

    I have found this filter function:

    
    function time_ago_date(  $the_date) {
    
    return human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ' .__( 'since' );
    }
    add_filter( 'get_the_date', 'time_ago_date', 10, 1 );
    

    It works as needed in your theme, but I need to put the word “since” in the beginning of the sentence to look properly in Arabic, however I try to move it, it shows an error before things get saved.

    in reply to: Display "Time ago" #452370

    Sorry for the late reply.

    I know … because it was working, but in the last updates I think something changed in the theme or in the Page Header (in GPP) that made it stop working on just the Page Header.

    in reply to: Display "Time ago" #450961

    It’s working, but it is good for only Latin websites, for Arabic (and maybe Hebrew too) the syntax isn’t correct, in Latin we can say “1 minute/hour/day/week/month/year” and everything above 1 will be called “minutes/hours/days/weeks/months/years”, but in Arabic it’s different, for 1 we say minute, from 2 to 10 we call them minutes, and from 11 and above we call them minute.

    “The time ago” plugin doesn’t give this syntax, so the websites wouldn’t look translated properly, I already used the plugin “Meks Time Ago” and it worked so fine without any manual translation needed, I think because it uses the built-in “human time diff” of WordPress, this plugin works in archive pages and I think in everything else except the Page Headers, it stays with regular time, before the last updates of the theme it used to work even in Page Header using “Meks Time Ago” plugin, now it doesn’t.

    Thanks.

    in reply to: Search field placeholder #449940

    Thanks, it works.

    in reply to: Custom font size of sub-menus #449895

    Thank you Leo 🙂

    in reply to: Search field placeholder #449892

    Thank you, I think it is what I’m looking for, so far I understood this:

    
    add_filter( 'generate_search_placeholder', 'search_placeholder' );
    function search_placeholder()
    { 
        return 'hello';
    }
    

    Tried it but it showed nothing in the search field.

    By the way I’m talking about the search field that is in the menu.

    Thank you.

    in reply to: The horizontal scroll bar on the bottom still persist on RTL #449660

    Oh, that’s quick, thanks.

    in reply to: Style.css vs Additional CSS in the customizer #448032

    Don’t worry, and thank you, you are the best support I’ve ever had.

    in reply to: Style.css vs Additional CSS in the customizer #447910

    No (maybe not yet), but thank you either way.

    in reply to: Style.css vs Additional CSS in the customizer #447595

    Thank you Tom and Leo for help, much appreciated.

Viewing 15 posts - 1 through 15 (of 109 total)