• This plugin makes it possible to use Gravatars without compromising privacy (“Datenschutz” in German).

    Thanx for the plugin and I agree with other reviewers: This functionality should be in core.


    One suggestion:
    add an (unbreakable) space in the comment form option between the checkbox and the label.

    It’s in avatar-privacy/public/partials/comments/use-gravatar.php, line 60. I have added it, but will lose it again after the next plugin update ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author pepe

    (@pputzer)

    Thank you! I think I’ll offer a filter hook for the spacing in the next release (or something like this). The markup of the checkbox is modelled on what WordPress Core uses for other comment form checkboxes. Unfortunately, a lot of themes do not include proper styling for generic checkboxes. Adding .comment-form-use-gravatar label { padding-left: 10px; } to your style.css (or another loaded stylesheet) should fix the issue.

    Thread Starter Peter Müller

    (@pmmueller)

    Thank YOU for the plugin!

    On my comment form there is a checkbox right underneath yours and it does not have padding but a space inbetween. That’s why I added a space ??

    I think the line break in the HTML is converted to a space as label and input are inline or inline-block:

    <p class="wpgdprc-checkbox">
    <label>
    <input type="checkbox" name="wpgdprc" id="wpgdprc" value="1"> Diese Website darf diese Daten speichern und verarbeiten. <abbr class="wpgdprc-required" title="Sie müssen dieses Kontrollk?stchen akzeptieren.">*</abbr>
    </label>
    </p>

    You can see it in action on https://einstieg-in-wp.de/avatar-privacy/

    Plugin Author pepe

    (@pputzer)

    For the browser, any kind of whitespace is the same. That particular checkbox is created by another plugin, not from WordPress itself. Avatar Privacy uses the Core cookies checkbox as its model.

    Thread Starter Peter Müller

    (@pmmueller)

    Aaah, thanx for the info.

    • This reply was modified 5 years, 8 months ago by Peter Müller.
    Plugin Author pepe

    (@pputzer)

    Both markup variants are valid, but without the extra whitespace, you have more control over the rendered appearance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Perfect: Gravatar AND privacy’ is closed to new replies.