Jump to content

Contact page redirect


messir

Recommended Posts

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.

fRu3xx3.png

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.

Link to comment
Share on other sites

  • 2 weeks later...

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 by championc
Link to comment
Share on other sites

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. 🙂

jd2i3eR.png

or if you want the output in UPPERCASE...

<a href="contact.php" class="btn">{$LANG.contactus|strtoupper}
Link to comment
Share on other sites

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";
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated