When using the default ClassiPress sidebar contact form in the single ad listing, all you get after sending the request to the ad owner is an odd “Your message has been sent!“ message with no further action. It happens that some people don’t even see that message and don’t know if the email was sent.
In this tutorial i’ll explain you how to redirect the sender to a “Success” page after he clicked on the “submit” button. For this purpose we will create our own “Success” page. That “Success” page will give you additional possibilities to give your customers a choice what to do next. Let him post an ad right away, or send him back to the ad he was watching, or maybe place some banner adverts? Here you can get creative. If your customer absolutely doesn’t know what to do, he will be automatically redirected to the home page after 30 seconds.
Check this screenshot and get the idea:
Would you like to test this function? Please try it out on my demo site:
I assume that you have ClassiPress and your own child theme running. Time to get started:
The files we need to customize are:
We will also create a completely new file and call it:
As we don’t like to change ClassiPress core files, we now take a copy of those files that we need to change and add them to our child-theme folder. For the sidebar-contact.php you must create a /includes folder in your child theme directory and upload that file into that new folder. The result will look like this: /child-theme/includes/sidebar-contact.php
Done? Let’s start to edit our copied files.
Dear visitor. Redirect your visitors to a THANK YOU page after using the ClassiPress sidebar contact form is a premium article. If you would like to get access to the rest of this article, please pay $ 3.45 USD fee to help me keeping this site alive. After your payment is done you will automatically receive an Email that includes an activation link. Please Note: The activation link is valid for 2 days.