How to post without the description?

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
Hello,
Is it possible to create a thread with only the title on a specific node without the description?
I have a Q&A section on my forum. Most of the Question are single line & doesn’t have description to describe.
So, I wanted to make the description box optional.
Thanks.
 

guguk

Well-known member
Jul 19, 2019
1,147
827
113
Ottoman Empire
Yes you can disable totally meta desciption in whole website or for one page but
I suggest that make it auto-description like "Question about %%title%%" or " Answers for %%title%%" you can make as you want but entered something better than empty description, I think.
 

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
Yes you can disable totally meta desciption in whole website or for one page but
I suggest that make it auto-description like "Question about %%title%%" or " Answers for %%title%%" you can make as you want but entered something better than empty description, I think.
I think you didn’t get my question.
I am not talking about meta descriptions or any SEO-related terms.
 

guguk

Well-known member
Jul 19, 2019
1,147
827
113
Ottoman Empire
I think you didn’t get my question.
I am not talking about meta descriptions or any SEO-related terms.
Oh my fault, i did not read properly. Sorry.
You mean that users already asking their questions in "title" and no need to repeat or describe in "content" area, right?
 

DatDudeUpStairs

Be the change that you wish to see in the world.
Trusted Uploader
Jun 30, 2019
1,336
782
113
Asgardia
Not sure if this is applicable to the thing you want to do as I've not worked with xenforo
See this
 
  • Love
Reactions: Zer01ne

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,426
120
Not sure if this is applicable to the thing you want to do as I've not worked with xenforo
See this
Ahh! this is not what I want.
It's not CSS thing.
 
  • Like
Reactions: DatDudeUpStairs

DatDudeUpStairs

Be the change that you wish to see in the world.
Trusted Uploader
Jun 30, 2019
1,336
782
113
Asgardia
I don't know if you can add a rule that says threads under this section should not show any description, even adding css is applicable to it or not
 

alexmisaila

Legend member
Staff member
Moderator
Trusted Uploader
May 9, 2020
1,110
900
133
⭐⭐⭐⭐⭐
Hello,
Is it possible to create a thread with only the title on a specific node without the description?
I have a Q&A section on my forum. Most of the Question are single line & doesn’t have description to describe.
So, I wanted to make the description box optional.
Thanks.
It is possible to create a thread with only a title on Xenforo 2. You can do this by setting the "Minimum post length" option to 0 in the forum's permissions. This will allow users to create threads with only a title and no post body.

To make the description box optional, you can modify the Xenforo template to remove the required attribute from the input field for the thread description. You can do this by following these steps:

  1. Go to the Admin Control Panel and navigate to the "Styles & Templates" section.
  2. Select the style that you want to edit from the drop-down menu at the top of the page.
  3. In the left-hand sidebar, click on "Templates" to expand the list of templates.
  4. Find the "thread_create" template and click on it to open it for editing.
  5. Find the line of code that defines the input field for the thread description. It should look something like this:
Code:
<input type="text" name="description" class="textCtrl" value="{$description}" placeholder="{xen:phrase thread_description}" required="required" />

  1. Remove the "required" attribute from this line of code so that it looks like this:
Code:
<input type="text" name="description" class="textCtrl" value="{$description}" placeholder="{xen:phrase thread_description}" />

  1. Save the changes to the template and the description field will no longer be required when creating a new thread.
Keep in mind that modifying templates can have unintended consequences and may cause your forum to behave differently than expected. It is always a good idea to back up your forum and test any changes carefully before making them live.
 
  • Like
Reactions: DatDudeUpStairs

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu