• king

    (@sparofire)


    I want to change Liveblog on the title Prefix to something else and give it a red background. How do I do it

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeffrey van Rossum

    (@jeffreyvr)

    This is best achieved by adding some custom code to your theme (functions.php for example). You might do something like this:

    add_filter('elb_liveblog_title_prefix', function($prefix) {
        return '<span style="color: white; background: red;">'.$prefix.'</span>';
    });
    Thread Starter king

    (@sparofire)

    Is there how I can add the prefix in the home page as well if the blog post is a liveblogging

    Plugin Author Jeffrey van Rossum

    (@jeffreyvr)

    I’m not entirely sure if I understand what you are trying to achieve. But you could limit the above code example to the homepage like so:

    add_filter('elb_liveblog_title_prefix', function($prefix) {
        if(! is_front_page()) {
            return $prefix;
        }
        
        return '<span style="color: white; background: red;">'.$prefix.'</span>';
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Liveblog’ is closed to new replies.