Vertimyst Posted February 19, 2020 Share Posted February 19, 2020 Hi all, First off, apologies if this is the wrong community for this; I wasn't sure where to post for template customization questions. I'm in the process of redesigning my site and updating the WHMCS template accordingly. I've got the main website design finished using Bootstrap 4. I managed to (mostly successfully) update the header.tpl with the design from my main site, but having trouble with the footer. Currently I've got my footer code in the footer.tpl but it's not working as a sticky footer the way it is on my main pages. I'm using a container for everything to keep the footer sticky (i.e on the bottom of every page regardless of content), but this is broken with the .tpl files. Does anyone know if there's a way to get the footer to behave the way I want with WHMCS, preferably with Bootstrap 4 code still there? I'm guessing the container code doesn't work because WHMCS and Smarty split the content up, but I'm no expert. Other things such as the navbar don't behave 100% correctly either, but I'm not as worried about that right now. The site in question is here: http://vertimystsolutions.com/v3/ (main site, how it's supposed to look) and http://vertimystsolutions.com/clients/ (WHMCS client page) My header.tpl code: <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" href="http://vertimystsolutions.com/v3/images/favicon-192.png"> <!-- Bootstrap CSS --> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="stylesheet" href="http://vertimystsolutions.com/v3/styles/vs_aqua.css"> <script src="https://kit.fontawesome.com/9cf0b2704e.js" crossorigin="anonymous"></script> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> {include file="$template/includes/head.tpl"} {$headoutput} <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title> </head> <body> {$headeroutput} <div class="d-flex flex-column sticky-footer-wrapper"> <!-- begin footer wrapper --> <nav class="navbar navbar-expand-xl navbar-light bg-light"> <a class="navbar-brand" href="#"><img src="http://vertimystsolutions.com/v3/images/v3_logo_295_56.png" alt="Vertimyst Solutions"></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNav"> <ul class="pr-0 navbar-nav"> <li class="nav-item active"> <a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="services.php">Services</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Register</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Support</a> </li> <li class="nav-item"> <a class="nav-link" href="contact.php">Contact</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Blog</a> </li> <li class="nav-item"> <a class="nav-link" href="about.php">About</a> </li> </ul> </div> </nav> {if $templatefile == 'homepage'} <section id="home-banner"> <div class="container text-center"> {if $registerdomainenabled || $transferdomainenabled} <h2>{$LANG.homebegin}</h2> <form method="post" action="domainchecker.php"> <div class="row"> <div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1"> <div class="input-group input-group-lg"> <input type="text" class="form-control" name="domain" placeholder="{$LANG.exampledomain}" autocapitalize="none" /> <span class="input-group-btn"> {if $registerdomainenabled} <input type="submit" class="btn search" value="{$LANG.search}" /> {/if} {if $transferdomainenabled} <input type="submit" name="transfer" class="btn transfer" value="{$LANG.domainstransfer}" /> {/if} </span> </div> </div> </div> {include file="$template/includes/captcha.tpl"} </form> {else} <h2>{$LANG.doToday}</h2> {/if} </div> </section> <div class="home-shortcuts"> <div class="container"> <div class="row"> <div class="col-md-4 hidden-sm hidden-xs text-center"> <p class="lead"> {$LANG.howcanwehelp} </p> </div> <div class="col-sm-12 col-md-8"> <ul> {if $registerdomainenabled || $transferdomainenabled} <li> <a id="btnBuyADomain" href="domainchecker.php"> <i class="fas fa-globe"></i> <p> {$LANG.buyadomain} <span>»</span> </p> </a> </li> {/if} <li> <a id="btnOrderHosting" href="cart.php"> <i class="far fa-hdd"></i> <p> {$LANG.orderhosting} <span>»</span> </p> </a> </li> <li> <a id="btnMakePayment" href="clientarea.php"> <i class="fas fa-credit-card"></i> <p> {$LANG.makepayment} <span>»</span> </p> </a> </li> <li> <a id="btnGetSupport" href="submitticket.php"> <i class="far fa-envelope"></i> <p> {$LANG.getsupport} <span>»</span> </p> </a> </li> </ul> </div> </div> </div> </div> {/if} {include file="$template/includes/verifyemail.tpl"} <section id="main-body"> <div class="container{if $skipMainBodyContainer}-fluid without-padding{/if}"> <div class="row"> {if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren())} {if $primarySidebar->hasChildren() && !$skipMainBodyContainer} <div class="col-md-9 pull-md-right"> {include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true} </div> {/if} <div class="col-md-3 pull-md-left sidebar"> {include file="$template/includes/sidebar.tpl" sidebar=$primarySidebar} </div> {/if} <!-- Container for main page display content --> <div class="{if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren())}col-md-9 pull-md-right{else}col-xs-12{/if} main-content"> {if !$primarySidebar->hasChildren() && !$showingLoginPage && !$inShoppingCart && $templatefile != 'homepage' && !$skipMainBodyContainer} {include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true} {/if} My footer.tpl code: </div><!-- /.main-content --> {if !$inShoppingCart && $secondarySidebar->hasChildren()} <div class="col-md-3 pull-md-left sidebar sidebar-secondary"> {include file="$template/includes/sidebar.tpl" sidebar=$secondarySidebar} </div> {/if} <div class="clearfix"></div> </div> </div> </section> <div class="modal system-modal fade" id="modalAjax" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content panel panel-primary"> <div class="modal-header panel-heading"> <button type="button" class="close" data-dismiss="modal"> <span aria-hidden="true">×</span> <span class="sr-only">Close</span> </button> <h4 class="modal-title">Title</h4> </div> <div class="modal-body panel-body"> Loading... </div> <div class="modal-footer panel-footer"> <div class="pull-left loader"> <i class="fas fa-circle-notch fa-spin"></i> Loading... </div> <button type="button" class="btn btn-default" data-dismiss="modal"> Close </button> <button type="button" class="btn btn-primary modal-submit"> Submit </button> </div> </div> </div> </div> {$footeroutput} <footer> <div class="container-fluid pt-0 px-0"> <!-- begin footer container--> <div class="row footer mt-auto pt-5 pb-5 no-gutters"> <!-- begin footer row --> <div class="col-md-3 text-center mx-auto px-5"> <h3>Quick Links</h3> <ul class="mx-auto" style="list-style: none"> <li><a href="services.php">Services</a></li> <li><a href="contact.php">Book an Appointment</a></li> <li><a href="#">Support</a></li> <li><a href="#">Blog</a></li> </ul> </div> <div class="col-md-3 text-center mx-auto"> <h3>Latest Blog Posts</h3> <!-- blog content goes here --> </div> <div class="col-md-3 text-center mx-auto"> <h3>Contact Us</h3> <ul class="mx-auto" style="list-style: none"> <li><i class="fas fa-phone-alt"></i> 613.663.2384</li> <li><i class="fas fa-at"></i> contact@vertimystsolutions.com</li> </ul> </div> <div class="col-md-3 text-center mx-auto"> <h3>Follow Us</h3> <ul class="mx-auto" style="list-style: none"> <li><a href="http://facebook.com/vertimystsolutions"><i class="fab fa-facebook"></i> Facebook</a></li> <li><a href="http://twitter.com/vertsolutions"><i class="fab fa-twitter"></i> Twitter</a></li> </ul> </div> </div> <!-- end footer row --> <div class="row footer no-gutters"> <div class="col text-center mb-3"> © {$date_year} Vertimyst Solutions. All Rights Reserved. </div> </div> </div> <!-- end footer container --> </footer> </div> <!-- end footer wrapper --> </body> </html> 0 Quote Link to comment Share on other sites More sharing options...
Vertimyst Posted February 21, 2020 Author Share Posted February 21, 2020 Update: Never mind, I ended up re-coding it from scratch using Bootstrap 3, since WHMCS apparently uses 3 in their template. Still not working 100% as I want but looks much better now! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.