Please could you tell me if there is a way to seperate the pickup and drop off locations? as although i can specify bookings from one to another, i will not need the destinations to come up in the pickup section. Also is there a way to alter the advanced search tool so that when you select a booking it automatically goes to the correct date?
Could you please also tell me where i can find the correct place to alter the image that sits behind the testimonial section? i have looked through every widget and option and cannot find anything anywhere. Do i have to go in to the php file and alter it that way?
And finally.. The contact form (not the contact form 7 one) i have added extra fields to the form, could you please advise how you would add them to the email that is sent out to the recipient and also how to change the 'email template' layout, as it appears all in one line, i would like it to be set out as follows:
Name:Phone Number:Email address:Comment:
Any information or guidance you could give me would be greatly appreciated.
Kind RegardsAdrian Compton
1. There is currently no way to separate the pick up and drop off selects via cms. You would have to modify wp-content/plugins/transfers-plugin/includes/widgets/widget-advanced-search.php file. The two selects are built on lines 124 to 138.
2. The image for testimonials is set in css, inside the css/style.css file of the theme. It is currently set as this:
background: url(../images/testimonials.png) 50% 100% no-repeat;
padding: 90px 0 70px;
In order to change it you would go to Appearance -> Customize -> Additional CSS and add a rule that looks something like this:
background: url(someotherurl) 50% 100% no-repeat !important;
3. I do not know what you mean about going to the correct date when selecting a booking. Can you be more clear please? The date is already selected when you search for possible transfers to book.
4. The contact form email is set from theme file includes/theme_ajax.php in function contact_form_ajax_request
In order to get values for new fields you have added you would do what we have already done for the existing fields e.g.:
$contact_name = sanitize_text_field($_REQUEST['contact_name']);
The email is put together and sent further on in the same function. In order to override this, you would copy the entire file to your child theme to a new folder you created called includes and edit that file there.
Many thanks for the swift reply.
For point 3. if i select a event, say that is on the 6th jan 2017, the search bar, to the right of it, comes up todays date instead of the 6th, is there anyway to change that ? if needs be i can supply a screenshot to show you what i mean.
Thank you so much for the help regarding the other items i became stuck with. I will let you know how i got on.
Please provide a screenshot so I understand what you mean.
Here is the screen shot.
Is it possible to get the venue date (2018-01-06) into the search bar automatically ? instead of search for listings for the current date (5th jan 2018) ? or if upon searching for transfers today, it brings up future transfers to choose from instead?
Attached files: query.png
As for the contact form, i have done as suggested and added relevant info everywhere, i now get the "phone number" heading in the email with no phone number :/
1. No, there is no such feature within our theme. You would have to match up the blog post date with the search widget - something I recommend you hire a developer to do for you.
2. What is your phone number field id/name within the form?
contact_phone is the label, id and name within the form. i have added that to the suggested pages earlier for it to go through to email without success.
What is your contact form page url?
Also, can you paste the code of your contact_form_ajax_request function in pastebin.org and share the url so I can see what your code looks like?
The Pastebin url is : https://pastebin.com/Sew7PMfB
and the contact form url is: http://lc.compton-computers.co.uk/contact-us/
i also have pasted the contact form page page template in pastbin: https://pastebin.com/sPZGRyUp
My bad, there is one more piece of code you have to edit.
Please copy js/contact.js to your child theme (same folder structure), edit the file and make sure your contact_phone email is also added here:
var contact_name = $('#contact_name').val();
var contact_email = $('#contact_email').val();
var contact_message = $('#contact_message').val();
And also here:
'contact_name' : contact_name,
'contact_email' : contact_email,
'contact_message' : contact_message,
After you do, please clear your browser cache and test things again.