• Hi,

    I’d like to alter the font used by Fast Secure Contact form for the “E-mail Address:”, “CAPATCHA”, and etc. fields.

    Does anyone know how I can do this?

    Cheers,

    Laurie

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi jahmin!

    maybe this topic help you resolve your problem:

    http://wordpress.org/support/topic/plugin-fast-and-secure-contact-form-fonts?replies=2

    Mike Challis answered:

    You can edit your theme to fix it.

    or you can edit the css in the form advanced options to add font styling.

    How to change the color or font styling for the input titles on the contact form:
    Go to the contact form settings page, click on Advanced Options, look
    for the setting “CSS style for form input titles on the contact form:”.
    edit as needed.

    good luck!

    Thread Starter jahmin

    (@jahmin)

    hi ash88,

    cheers, but I tried this but nothing I do seems to effect the output which stubbornly maintains both its size and font-face, ignoring my additional styling…

    font-face:'Georgia'; font-size:1em; text-align:left; padding-top:5px;

    ta again though!

    Need URL to see how your theme is interacting with it. Your theme may be the cause.

    Thread Starter jahmin

    (@jahmin)

    hi mike

    the url is: http://www.jahmin.org

    the theme is atahualpa

    i’m fairly sure it’s an interaction of the two, assuming the syntax i’m using (above) isn’t a problem.

    thanks

    laurie

    try font-family instead of font-face
    font-family:'Georgia'; font-size:1em; text-align:left; padding-top:5px;

    Thread Starter jahmin

    (@jahmin)

    ta mike… still no dice.
    thanks for your suggestions though

    I have the same issue. Using atahualpa too. I can change the fonts for everything except “CSS style for form input titles on the contact form:” located in the advanced settings of Fast Secure Contact Form. It is weird. I can change the color, size…just not the font.

    Dan

    Thread Starter jahmin

    (@jahmin)

    Yeah it’s a bugger. I haven’t solved it, gave up in the end.

    Hi,
    try to add !important to each rule you define in your theme’s style.css (!) for si_CTF, but you have to add a lot of extra code then …

    Assuming it’s your form No.1, try adding the following code to Atahualpa’s style.css:

    `form#si_contact_form1 * label {
    font-family: Georgia, "Times New Roman", "Bitstream Vera Serif", serif !important;
    font-size:1em !important;
    text-align:left !important;
    padding-top:5px !important;
    color: red !important; /* just to see the effekt quickly - delete when done */
    }`

    (Adjust the form number in case … BTW, defining only one font is not a good idea - always define some alternatives as well.)

    The better (quick and dirty ) way:
    To easier get the si_CTF styles matching your theme's styles, you can disable the inline styles generated by si_CTF by simply commenting out some lines in the si-contact-form-display.php and do the whole styling in your theme's CSS.

    Find the file in the plugin's folder:
    ../wp-content/plugins/si-contact-form/si-contact-form-display.php

    Now find the block of lines beginning with
    $this->ctf_form_style =
    (~ line 9-16) and mark any desired or all of them as comments by adding // at the beginning of each line:
    //$this->ctf_form_style =

    Now si_CTF won’t print the inline styles, so your theme’s styles won’t get overwritten by the inline-styles. (Thus, the affected si_CTF admin CSS settings won’t take effect anymore!! So be sure to define extra styles in your style.css if needed.)

    Of course you could strip down the whole ..display.php by deleting any code concerning styles 😉

    For easier styling, I also added an ID for the div containing the form (line 28):
    <div id="si_ctf" '.$this->ctf_form_style.'>

    … and I changed the “required” message div (line 82/84 in the original file) into a paragraph (and applied a class .small to it):
    $string .= '<div '.$this->ctf_required_style.'>'; ... </div>
    became
    $string .= '<p class="small" '.$this->ctf_required_style.'>'; ... </p>

    @ Mike:
    It would be really great to have a switch in the admin panel, though, to chose between inline styling via the panel and external styling via the theme. (It would allow a much smaller – alternative? – ..display.php as well.)

    talpa

    Thread Starter jahmin

    (@jahmin)

    hi talpa, you;’re a genius, that worked!

    thanks

    and again, thank you!

    Hi jahmin, you’re very welcome – I’m glad to read that my somewhat dilettant messing around with the code helped 😉

    If I knew a bit more of PHP, I’d write that stripped down version of the ..display.php (I suggested above) myself …

    So if, by chance, someone well acquainted with PHP stumbles accross this thread … maybe?

    talpa

    Can I use an external stylesheet instead of the inline css in advanced
    options?

    External vs. internal it has pros and cons.
    I made it inline because the settings survive plugin upgrades and can be easily tweaked.

    You can bypass the inline style and make your own stylesheet, here is how:
    Look in the advanced options where you have the Inline CSS settings.
    Each setting can be changed to a class property if you prefer.
    For example:
    The setting “CSS style for form input fields DIV on the contact form:”
    can be changed from:
    text-align:left;
    to:
    class=”input”

    Now you can use the input class of an external stylesheet.
    You can repeat this for each CSS setting.

    Mike

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[Plugin: Fast Secure Contact Form] Fonts’ is closed to new replies.