• Resolved maxgx

    (@maxgx)


    the “Live Blog” button that appears next to the “Add Image” button on top of the rich editor is not quite so evident, because it appears just as text.
    adding the standard WP class “button” to the a tag makes it stand out more.
    in live-blogging.php i replaced the code

    // Insert live blog button on rich editor
    function live_blogging_insert_liveblog_button($context) {
        $additional = '<a style="cursor:pointer;" onclick="live_blog_insert_shortcode();">Live Blog</a>';
        return $context . $additional;
    }
    add_action('media_buttons_context', 'live_blogging_insert_liveblog_button');

    to

    // Insert live blog button on rich editor
    function live_blogging_insert_liveblog_button($context) {
        $additional = '<a class="button" style="cursor:pointer;" onclick="live_blog_insert_shortcode();">Live Blog</a>';
        return $context . $additional;
    }
    add_action('media_buttons_context', 'live_blogging_insert_liveblog_button');

    now the “Live Blog” text appears similar to a standard WP button.

    https://www.ads-software.com/extend/plugins/live-blogging/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘tip: styling the "Live Blog" text/button on top of rich editor’ is closed to new replies.