messir Posted April 15, 2019 Share Posted April 15, 2019 When I try visit contact php page it redirect me to https://mysite.com/submitticket.php?step=2&deptid=1 How I can make like here https://my.a2hosting.com/contact.php Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 15, 2019 Share Posted April 15, 2019 Just now, messir said: When I try visit contact php page it redirect me to https://mysite.com/submitticket.php?step=2&deptid=1 setup -> general settings -> mail https://docs.whmcs.com/Mail_Tab#Presales_Form_Destination_OR_Presales_Contact_Form_Email Quote Presales Form Destination OR Presales Contact Form Email Messages sent via the pre-sales contact form will be directed to the department selected here. OR Messages sent via the pre-sales contact form will be forwarded to the email address entered here. if you don't choose a support department from that dropdown, and enter an email address in the box below it, the contact link will shown the contact form and the results will be sent to the email address entered into the above setting. 0 Quote Link to comment Share on other sites More sharing options...
championc Posted April 26, 2019 Share Posted April 26, 2019 (edited) Thanks to the good folk here, I have achieved what you want my modifying the header.tpl template. First of all, I copied the "six" template to another new Template and have edited it there. I then edited the <section id="header"> by adding the 5th - 8th lines in the chunk of code below <section id="header"> <div class="container"> <ul class="top-nav"> {if $languagechangeenabled && count($locales) > 1} <li class="primary-action"> <a href="contact.php" class="btn">CONTACT US </a> </li> <li> <a href="#" class="choose-language" data-toggle="popover" id="languageChooser"> Edited April 26, 2019 by championc 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 26, 2019 Share Posted April 26, 2019 3 hours ago, championc said: I then edited the <section id="header"> by adding the 5th - 8th lines in the chunk of code below FWIW, you might want to consider changing... <a href="contact.php" class="btn">CONTACT US to... <a href="contact.php" class="btn">{$LANG.contactus} as that would show the "Contact Us" phrase in the user's language and not hardocded in English... otherwise, for those users not using English, it might look a bit out of place seeing something in English when most of the rest of the site is using their own chosen language. 🙂 or if you want the output in UPPERCASE... <a href="contact.php" class="btn">{$LANG.contactus|strtoupper} 0 Quote Link to comment Share on other sites More sharing options...
championc Posted April 29, 2019 Share Posted April 29, 2019 Nice tip thanks @brian! How would I go about breaking "contactus" into two separate words "contact us" ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 29, 2019 Share Posted April 29, 2019 5 hours ago, championc said: How would I go about breaking "contactus" into two separate words "contact us" ? if I understand you correctly, you wouldn't - besides it's already 2 words! 🙂 in the code I suggested... <a href="contact.php" class="btn">{$LANG.contactus} the {$LANG.contactus} refers to a language string in the /lang/*language*.php files (e.g english.php)... $_LANG['contactus'] = "Contact Us"; if you wanted to change the text from "Contact Us" to "Get In Touch", you would use a Language Override - you never edit the original language files as they'll get overwritten during an update... $_LANG['contactus'] = "Get In Touch"; 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.