Support » Plugin: Rich Reviews by Starfish » Labels Not Showing

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Nuanced Media

    (@nuanced-media)

    John,

    That is because the theme has styles written into it to specifically not display these labels. Below is a screenshot of the lines in your styles.css file to which I am referencing.

    Screenshot

    Given that your form is styled full width, you likely don’t want labels, but rather placeholders (in the fields themselves, and removed when clicked into). If this is what you are looking for, let me know and I can point you in the right direction. Otherwise, you will simply have to adjust those styles in your theme that are currently overriding Rich Review defaults.

    Let me know,
    Thanks,
    Charlie Maxwell
    [NM_Developer]

    Thread Starter JohnLauber

    (@johnlauber)

    Yes, I believe they would like placeholders instead of labels. Please let me know how to accomplish this with your plugin.

    Thank you.

    Plugin Contributor Nuanced Media

    (@nuanced-media)

    Given how you have already modified the styles of the form, really all that you need to do is remove the label elements from the php output and move the output of the $label variable to a placeholder attribute on the form element. So for each of these fields, you will find their output in a form folder @ views/frontend/form. ‘star-input.php’, text-input.php, and 'textarea-input.php are the three files you will want to modify. For rating you will likely want to simply remove the label element, as the stars are self explanatory and don’t have any way of implementing a placeholder. For the text and text area inputs you’ll want to do something along the lines of this.

    Change:
    screenshot

    to

    screenshot

    Notice I didn’t actually remove the label element, as I a am note sure if the css you have written relies on the current table structure.

    Let me know if this makes sense.

    Thanks,
    Charlie Maxwell
    [NM_Developer]

    Thread Starter JohnLauber

    (@johnlauber)

    Thank you for the direction. It definitely makes sense.

    Thank you again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Labels Not Showing’ is closed to new replies.