- First create your form in google drive
- Now from the top menu select Form and then click Embed form in a webpage. After which you will get a code like this:
- Now simply edit your post and go to html mode and paste anywhere you want the form to appear.
Welcome to Home.
<iframe src="https://docs.google.com/forms/d/MyFormKey/viewform?embedded=true" height="500" width="760" frameborder="0" marginwidth="0" marginheight="0"></iframe> |

1 2 3 4 5 6 7 8 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".btn-slide").click(function(){ $("#slide-panel").slideToggle("slow"); }); }); </script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <div id="slide-panel"><!--SLIDE PANEL STARTS--> <?php if ( ! is_user_logged_in() ){ ?> <h2>Login</h2> <div class="loginform"> <div class="formdetails"> <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> <label for="log">Username : </label><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" /> <label for="pwd">Password : </label><input type="password" name="pwd" id="pwd" size="20" /> <input type="submit" name="submit" value="Login" class="button" /> <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> </form> </div> <div class="loginregister"> <a href="<?php echo get_option('home'); ?>/wp-register.php">Register</a> | <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a> </div> </div><!--loginform ends--> <?php } else { ?> <div class="loginform"> <h2>Control Panel</h2><ul> <li><a href="<?php echo get_option('home'); ?>/wp-admin/">Dashboard</a></li> | <li><a href="<?php echo get_option('home'); ?>/wp-admin/post-new.php">Write new Post</a></li> | <li><a href="<?php echo get_option('home'); ?>/wp-admin/page-new.php">Write new Page</a></li> | <li><a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>" title="Logout">Logout</a></li></ul> </div><!--loginform ends--> <?php }?> </div><!--SLIDE PANEL ENDS--> <div class="slide"><a href="#" class="btn-slide"><?php if ( ! is_user_logged_in() ){ ?>Login<?php } else { ?>Logout<?php }?></a></div><!--LOGIN BUTTON TEXT--> |
1 2 3 4 5 6 7 8 9 10 11 12 | * {margin:0; padding:0; outline:0;} #slide-panel{ background-color:#000;border-bottom-style:solid;border-bottom-width:2px;display:none;height:100px;margin:auto;} .slide {width:950px; margin:auto;} .btn-slide:link, .btn-slide:visited{color:#fff; float:right; display:block;font-size:14px; text-transform:uppercase; font-weight:bold;height:26px; padding:3px 0 3px 0;line-height:22px;text-align:center;text-decoration:none;width:100px; background-color:#000; font-family:Arial;} .loginform {width:950px; margin:auto; color:#999; font-family:Arial, Helvetica, sans-serif;} .formdetails {color:#FFF; font-size:12px;padding:5px;} .formdetails input{border:none; padding:2px 5px 2px 5px; background-color:#EFEFEF;} .loginregister {color:#999; padding:5px;} .loginregister a:link, .loginregister a:visited {color:#FFF; font-size:11px; text-decoration:underline;} .loginform h2 {padding:10px 10px 10px 0; font-size:18px; font-weight:normal; text-transform:uppercase;} .loginform ul li {display:inline;} .loginform ul li a:link, .loginform ul li a:visited {color:#FFF; font-size:12px; text-decoration:underline;} |
{
margin:0;
height:21px;
width:146px;
background:url(login_bg.gif) no-repeat bottom;
}
.loginbox
{
background:none;
border:none;
width:134px;
height:15px;
margin:0;
padding: 2px 7px 0px 7px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
}
* {margin: 0; padding: 0}
img { border: 0; }
a img { border: 0; }
a:active, a:focus { outline: 0; }
html { background : url(null) fixed no-repeat; }
a{ white-space:nowrap;}
element { overflow:hidden; }
element { margin:0 auto; }
element { text-align: center; }
html{ overflow:-moz-scrollbars-vertical; }
textarea{ overflow:auto; }