Inicio›Toolset Professional Support›[Esperando confirmación del usuario] Split: Add a link to a relationship form – change the placeholder "search for a post" on relationship form
[Esperando confirmación del usuario] Split: Add a link to a relationship form – change the placeholder "search for a post" on relationship form
This support ticket is created hace 3 días, 14 horas. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
2 last questions:
- how can I retrieve the movie name in order to write it in a h3 tag ?
- is there any possibility to replace the placeholder "search for a post" by a custom text ?
In this form the post we are looking for is a "crew member". For another relationship form it could be a "movie" and the it should be "search for a movie" instead of "search for a crew member" instead of "search for a post"...
Have you replaced the target post ID with 99999 and 88888 with your original post ID where you added your form.
Can you please share details on what link what form you have and what text you want to display and send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Ok I've another way, I've added the following code to your relationship form's custom JS editor:
jQuery(document).ready(function($) {
var classes = $('body').attr('class');
var match = classes.match(/page-id-(\d+)/);
if (match && match[1]) {
var pageId = match[1];
if (pageId == 12120) {
$(".toolset_select2-selection__placeholder").text("Crew Member");
}
}
});
You can use the same code and add it to your other relationship forms and change the text and pageId value accordingly.