WordPress.org

Ready to get started?Download WordPress

Forums

Live Blogging
[resolved] tip: styling the "Live Blog" text/button on top of rich editor (3 posts)

  1. maxgx
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/live-blogging/

  2. chrisnorthwood
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks - this'll be included in the next release of the plugin

  3. maxgx
    Member
    Posted 1 year ago #

    you're welcome!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic