PeopleVine

Outputting to the console

When a web developer comes to your site, first thing they're probably going to do is check your code. Why not greet them with a message!

In order to output to the console, in the footer of your Page Layout, insert a pair of

<script></script>

tags. In between them, you can now add a console.log to output text.

<script>console.log('Hello Developer! Visit our careers page at http://yourcompany.com/careers')</script>

Now if you want to get more advanced with your message, console.log supports CSS as well, below is an example!

<script>console.log('%c Hello Developer! Visit our careers page at http://yourcompany.com/careers', 'background: #263238; color: #99dc33; font-size:16px; font-family: sans-serif; padding: 2px;')</script>
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.