Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author designsimply

    (@designsimply)

    The “empty” line is there so that you will have something to click on to add tags if you’d like when you are logged in with editing rights.

    Does it make a difference to you that the “empty” word is only shown if you are logged in with rights to edit? Regular visitors won’t see it.

    Thread Starter envieme

    (@envieme)

    Hello @designsimply

    Thanks for supporting. This is a great plugin.

    In my site, I have Buddypress installed almost everyone is an author / editor. In fact I noticed the [empty] only after one of my members pointed out they saw it on their post and it did not look good.

    Understood it is a placeholder for enabling editing but I would really like to change it to something like [edit this] or depending on tags / categories / something else tell the author [Add some tags]

    I went through the code but am unable to find a way to edit this.

    Plugin Author designsimply

    (@designsimply)

    Using CSS might work as a workaround. ?? Here is a CSS example that hides the empty field completely:

    [title="Tags"].fee-field {
    	display: none;
    }

    Or here is a CSS example that changes “[empty]” to “[edit tags]”

    [title="Tags"].fee-field {
    	visibility: hidden;
    }
    [title="Tags"].fee-field:before {
    	content: "[edit tags]";
    	visibility: visible;
    }

    Or another option would be to edit the plugin code directly, however, it’s not advised because any changes will get overwritten when the plugin is updated and you should always keep your plugins updated.

    In php/fields/base.php, you can change the placeholder text for all cases from “empty” to “edit this” by changing this line:

    return '[' . __( 'empty', 'front-end-editor' ) . ']';

    to this:

    return '[' . __( 'edit this', 'front-end-editor' ) . ']';

    Or, in php/fields/post.php, you can change the placeholder text for tags only by replacing this line:

    $content = $this->placehold( $content );

    with this one instead:

    $content = '[Add some tags]';

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[empty] being shown when no tags for a post’ is closed to new replies.