Add a Multi-select drop-down box, Javascript plugin, on my homepage slider, made with Smart Slider 3
£10-20 GBP
货到付款
Hi,
I am working on a wordpress website using the OceanWP theme with the Smart Slider 3 Plugin.
I am building a job listing site and on the homepage slider I would like to add a multiple select drop down list which a user can select upto 5 job categories and then click the "post a job" button.
I really like the look of this drop down list SelectPure:
[login to view URL]
...what I was hoping was for the actual bar and drop down list to be created on a smart slider element if possible, such as a button, so the smart slider can be used to position it and also make it responsive. I also think this would come in handy for future adjustments too. I had tried to implement a much simpler drop down list and it appeared to work in a Smart slider button element.
...the other thing I needed was, for the categories selected in the drop down to be saved and then when the user clicks the "post a job" button, then when they are directed to the 'post a job' page, I wanted those values to automatically be populated in the "categories" field in the a job form.
Just to clarify, this job is to implement the SelectPure drop down box onto my homepage slider into a Smart Slider 3 element.
And also...
Currently if a user is not logged in and they click the "post a job" button they are directed to the "post a job" page but they they have a sign in button instead which directs them to the login page. Once they sign in they are then redirected back to the "post a job" page with the job form visible. I would also like for the previously selected job categories to be auto filled when this happens too.
The code used for the redirect is:
// start global session for saving the referer url
function start_session() {
if(!session_id()) {
session_start();
}
}
add_action('init', 'start_session', 1);
// get the referer url and save it to the session
function redirect_url() {
if (! is_user_logged_in()) {
$_SESSION['referer_url'] = wp_get_referer();
} else {
session_destroy();
}
}
add_action( 'template_redirect', 'redirect_url' );
//login redirect to referer url
function login_redirect() {
if (isset($_SESSION['referer_url'])) {
wp_redirect($_SESSION['referer_url']);
} else {
wp_redirect(home_url());
}
}
add_filter('woocommerce_login_redirect', 'login_redirect', 1100, 2);
...as the default [login to view URL] has been redirected to the woocommerce login page, /my-account, so I think this is the code which will need to be edited.
I have tried to put in as much detail as possible in this description but please get in touch if you need any more information.
Thank you
项目ID: #22410630