• Resolved alexb27

    (@alexb27)


    I am not wordpress savvy. Having trouble getting a custom text field that will allow users to type anything they want and have it display in various fonts.

    Please help!

    Thank you

    The page I need help with: [log in to see the link]

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

    (@kontur)

    Hey,

    on the page you linked there already are text input fields, just above the “letter spacing” slider. Try adding a default text to better see where the text input is. You can add several fonts to one Fontsampler and then activate the feature that lets users swap the font.

    Does this help?

    Best,
    Johannes

    Thread Starter alexb27

    (@alexb27)

    I want people to be able to type in their own custom text to display what that custom text would look like in various fonts, not a preset text with multiple fonts.

    Please advise,

    Thank you

    Thread Starter alexb27

    (@alexb27)

    Could I pay you to code this for me? Might need it to be more involved than the plugin allows.

    What’s a good email address?

    Plugin Author kontur

    (@kontur)

    Here is what you can do:

    Set up a Fontsampler for each of the fonts you want to use, and include those on the page, like so (change to your Fontsampler ids):

    [fontsampler id=1]
    [fontsampler id=2]

    [fontsampler id=10]

    Then add the following custom Javascript to your page. If you are not code-savy, you can look for plugins that allow you to add “custom javascript” to your WordPress, there is several. The code to add is this:

    jQuery(function () {
      jQuery("body").on("keyup", ".type-tester__content", function () {
        var $current = jQuery(this);
        jQuery(".type-tester__content").not($current).html($current.html());
      });
    });

    What this does is wait for any typed input in any of the Fontsampler text fields and automatically update that same text to any other Fontsampler text fields that are found on the current page.

    I believe this should do what you are looking to achieve. If you need a more sophisticated solution feel free to contact me at hello@johannesneumeier.com.

    If this does the trick, consider contributing a small donation to the plugin development or submit a review.

    Plugin Author kontur

    (@kontur)

    I’ll mark this topic as resolved. Please open a new topic for a specific issue you encounter, should you still need more help or have other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No field for custom text’ is closed to new replies.