PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Form preview vs. live form

  1. besseckstein
    Member

    This is my first web site so this may be obvious to everyone else, but...

    I created a form and embedded it using shortcode (http://buytime4u.com/mailing-list-form-2). My site uses the default theme, but does have multiple plug-ins.

    When I realized that it looked nothing like the rest of my site, I spent several hours in your forum trying to figure out how to fix it, and finally cobbled together this code, which I appended to the end of my stylesheet:
    <script src="http://pastebin.com/embed_js.php?i=afJMpAgf"></script>

    I then added "mailing" to the CSS Class Name. Sadly, no joy.

    I checked the html code for the page and there's nothing between the text at the top and the shortcode. I also tried to style the embedded shortcode several times but that didn't work either.

    I'm sure I've done several things incorrectly - can you advise?

    Thanks!

    Posted 14 years ago on Wednesday October 27, 2010 | Permalink
  2. besseckstein
    Member

    See what a NB I am? Here's the link to the code in Pastebin....

    http://pastebin.com/afJMpAgf

    <blush>

    Posted 14 years ago on Wednesday October 27, 2010 | Permalink
  3. Hi Bessekstein,

    Your styles aren't being applies because the class names specified on your form don't match up with the class names specified in your CSS.

    For example, on your form you have specified the class "mailing"; however, in your CSS you're attempting to target forms with a class of "mailingform". I've updated your pastebin code to match the class name you specified in your form. http://pastebin.com/VtqFfxV1

    One other note, if you are looking to update the styling on all your .gfields, I wouldn't worry about adding an additional class to those fields. That only becomes necessary when you want to target a specific field. Good luck!

    Posted 14 years ago on Thursday October 28, 2010 | Permalink
  4. besseckstein
    Member

    Thank you SO MUCH!!! It totally worked!!!

    Posted 14 years ago on Thursday October 28, 2010 | Permalink

This topic has been resolved and has been closed to new replies.