# Adtrak ## Stapleton's widget on tyres-ewd boilerplates --- ### on ./page-tyre-booking.php > modify the iframe src to your iframe URL and keep the `/tyres/vrn/<?php echo $_POST['vrn']; ?>` at the end ``` <?php /** * Template name: Tyre Booking */ get_header(); include locate_template('parts/hero.php'); ?> <div class="online-order__wrapper"> <a id="tyre-finder"></a> <div class="nd-service nd-tyre-booking"></div> <?php // widget ?> <script type="text/javascript" src="https://wembleytyres-embed.tyresurf.co.uk/js/embed.js"></script> <iframe src="https://wembleytyres-embed.tyresurf.co.uk/tyres/vrn/<?php echo $_POST['vrn']; ?>" data-origin="https://wembleytyres-embed.tyresurf.co.uk" id="ts-embed" width="100%" height="auto" scrolling="no" style="overflow:auto;" frameborder="0" data-offset=”200”></iframe> <?php // end widget ?> </div> <?php //include locate_template('parts/article-w-image.php'); //include locate_template('parts/tyre-brands.php'); if( get_field('rev_carousel','option') == true ): ?> <div class="rev-carousel__wrapper"> <?php include locate_template('parts/rev-carousel.php'); ?> </div> <?php endif; include locate_template('parts/garage-finder.php'); get_footer(); ``` ### on ./parts/ob-reg-lookup.php > from the original we change the method to POST and delete ```name="vrn"``` from <form> ``` <form id="TyresVrn" method="POST" action="<?php echo site_url(); ?>/tyre-booking/" class="ob--reg-lookup"> <div class="ob--gb-tag"></div> <input type="text" name="vrn" value="" placeholder="ENTER REG" class="ob--reg"> <button type="submit" form="TyresVrn" value="Submit" class="ob--submit">GO</button> </form> <p class="text-center"><a href="<?php echo site_url(); ?>/tyre-booking" class="ob--lookup-link">or search by size.</a></p> ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up