Title: I get code on frontpage
Last modified: June 16, 2020

---

# I get code on frontpage

 *  Resolved [sbraunm](https://wordpress.org/support/users/sbraunm/)
 * (@sbraunm)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/)
 * Hello,
 * I have been changing font colors and now the contact page has code fragments 
   on the top. How do I solve this?
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fi-get-code-on-frontpage%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * (@ethanchoi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13002891)
 * Hi [@sbraunm](https://wordpress.org/support/users/sbraunm/),
 * The issue could be due to how the custom CSS is added to your site. When you 
   get the chance, could share a screenshot of how the custom CSS has been added?
 * In case it helps, we recommend following [this tutorial from WPBeginner](http://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/)
   to add custom CSS to your site.
 * Hope this helps!
 *  Thread Starter [sbraunm](https://wordpress.org/support/users/sbraunm/)
 * (@sbraunm)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13003344)
 * Hi Ethan,
 * I pasted the custom code many weeks ago, and had no problem. This problem appeared
   a few days ago after changing font colors of the whole website. This is the custom
   code I have for wpforms:
 * boton wpforms
 * /* New button styles */
    div.wpforms-container-full .wpforms-form input[type=
   submit], div.wpforms-container-full .wpforms-form button[type=submit] { padding:
   15px; /* Increase distance between text and border */ width: 100%; /* Make the
   button full-width */ font-size: 1.5em; /* Increase text size */ background-color:#
   0099CC /* Red background */ color: #fff; /* White text */ border: 8px double #
   860b0b; /* Dark red, double-line border */ }
 * /* New button hover styles */
    div.wpforms-container-full .wpforms-form input[
   type=submit]:hover, div.wpforms-container-full .wpforms-form input[type=submit]:
   active, div.wpforms-container-full .wpforms-form button[type=submit]:hover, div.
   wpforms-container-full .wpforms-form button[type=submit]:active, div.wpforms-
   container-full .wpforms-form .wpforms-page-button:hover, div.wpforms-container-
   full .wpforms-form .wpforms-page-button:active { background-color: #860b0b; /*
   Dark red background */ border: 8px double #af0000; /* Red, double-line border*/}
 * Thanks for your help
 *  Plugin Support [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * (@ethanchoi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13008350)
 * Hi [@sbraunm](https://wordpress.org/support/users/sbraunm/),
 * When I used the browser’s ‘View Page Source’ option on your page ([see screenshot here](https://a.supportally.com/Nt8tIk)),
   it seems like the custom CSS were added to your site without the `<script>` and`
   </script>` tags.
 * When you get the chance, could you please try adding those tags to the CSS to
   see if it resolves the issue?
 * In case it helps to share, we recommend adding custom CSS snippets to specific
   locations that are designated for CSS snippets to avoid issues like this. Here
   are two options for your consideration:
 * 1) In your WordPress admin sidebar go to **Appearance > Customize**. Then in 
   the Customizer sidebar that appears, go to **Additional CSS** to paste the code
   in.
 * 2) Alternatively, you can install and activate the [Simple Custom CSS plugin](https://wordpress.org/plugins/simple-custom-css/).
   With this plugin, you can paste custom CSS into its field on your site.
 * For more details on the two options above, please see [WPBeginner’s article](https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/).
 * Hope this helps!
    -  This reply was modified 5 years, 10 months ago by [Ethan Choi](https://wordpress.org/support/users/ethanchoi/).
    -  This reply was modified 5 years, 10 months ago by [Ethan Choi](https://wordpress.org/support/users/ethanchoi/).
 *  Thread Starter [sbraunm](https://wordpress.org/support/users/sbraunm/)
 * (@sbraunm)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13009202)
 * Hello Ethan,
 * I added the custom CSS at additional CSS (the option 1), many weeks ago. It did
   not cause the problem. I even took it out, and the problem is still there. The
   problem is deffinitelly not coming form the custom CSS, but from WPForms itself
   for some reason.
 * If I deactivate WPForms the problem is still there.
 * Please help.
    -  This reply was modified 5 years, 10 months ago by [sbraunm](https://wordpress.org/support/users/sbraunm/).
    -  This reply was modified 5 years, 10 months ago by [sbraunm](https://wordpress.org/support/users/sbraunm/).
    -  This reply was modified 5 years, 10 months ago by [sbraunm](https://wordpress.org/support/users/sbraunm/).
 *  Thread Starter [sbraunm](https://wordpress.org/support/users/sbraunm/)
 * (@sbraunm)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13009467)
 * Nevermind. I duplicated the page and replace the old contact page for this one
   and it is fine now
 *  Plugin Support [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * (@ethanchoi)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13018198)
 * Hi [@sbraunm](https://wordpress.org/support/users/sbraunm/),
 * Glad to hear you’ve got that resolved, and thanks for the update!

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

The topic ‘I get code on frontpage’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/i-get-code-on-frontpage/#post-13018198)
 * Status: resolved