• Hey guys,

    Do you know of a way to customize wordpress core widgets – specifically change the language of their titles, and align them from right to left instead of left to right. I have to stress that I cannot do it by changing the language of the website because it will make one of my plugins to stop functioning. Therefore the only option is to customize the widgets manually.

    Thanks in advance,

Viewing 1 replies (of 1 total)
  • Thread Starter sirhaver

    (@sirhaver)

    Ok I’m on to something, this snippet of code does it for me:

    function widget_new_title($title) {
    if ($title == ‘Recent Posts’) $title = “Greatest posts ever”;
    return $title;
    }

    add_filter ( ‘widget_title’ , ‘widget_new_title’, 10, 3);

Viewing 1 replies (of 1 total)
  • The topic ‘Customizing WordPress widgets’ is closed to new replies.