*

osuser

  • **
  • 10 posts
How to disable item title field?
« on: February 12, 2024, 08:22:48 AM »
How to disable or hide title field when posting new ad? I dont need this field at all.

*

MB Themes

Re: How to disable item title field?
« Reply #1 on: February 12, 2024, 11:13:29 AM »
It's required field by Osclass, theme & plugins, cannot be disabled.
What you could try is to hide it via CSS and generate (populate input) title based on user input (ie category + location).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: How to disable item title field?
« Reply #2 on: February 12, 2024, 11:29:33 AM »
You can change it so that it is not displayed in item.php after posting.


Code: [Select]
<?php echo osc_item_title(); ?>

*

osuser

  • **
  • 10 posts
Re: How to disable item title field?
« Reply #3 on: February 12, 2024, 05:16:49 PM »
It's required field by Osclass, theme & plugins, cannot be disabled.
What you could try is to hide it via CSS and generate (populate input) title based on user input (ie category + location).

how to generate this input? Can you give me a code?

*

MB Themes

Re: How to disable item title field?
« Reply #4 on: February 13, 2024, 09:44:58 AM »
I do not have it, require little bit of testing.
If you have no skills, do not do it and look for developer.

Something basic would be:
Code: [Select]
$(document).ready(function() {
  $('input[name="title[en_US]"]').val('Dummy title');
});

And hide title (this is for Epsilon):
Code: [Select]
.row.ttle {display:none;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots