GSeven
19 أكتوبر 2016، 11:46ص
1
Is it possible to hide the ‘create topic’ button on the home page?
i would like my users to navigate to the appropriate category/subcategory before posting a topic, because then the correct category option is automatically placed in the composer, instead of having to scroll through what will be hundreds of categories and subcategories in the drop down menu looking for the right one.
Does anybody know how to do this please?
cpradio
(cpradio)
19 أكتوبر 2016، 11:56ص
2
Try this CSS Rule
body:not([class*='category-']) #create-topic {
display: none;
}
It will only let the create-topic button appear on category pages.
GSeven
19 أكتوبر 2016، 11:59ص
3
Yes cpradio, absolutely perfect, top notch support.
many thanks.
GSeven
19 أكتوبر 2016، 12:10م
4
actually, can the code be tweeked to show the ‘create topic’ button also in category>subcategory>tag?
cpradio
(cpradio)
19 أكتوبر 2016، 12:30م
5
Just to confirm, you have show filter by tag enabled?
GSeven
19 أكتوبر 2016، 12:33م
6
i do indeed have it enabled.
so when someone goes to service(category)>county(subcategory)>town(tag) the create topic button is shown.
cpradio
(cpradio)
19 أكتوبر 2016، 12:34م
7
K, this is what you will want then
body:not([class*='category-']) #create-topic {
display: none;
}
body.tags-page #create-topic {
display: block;
}
GSeven
19 أكتوبر 2016، 12:39م
8
Yes, The ‘create topic’ button now shows up on the page when a tag is selected.
absolute genius. i love you guys.
This populates the composer with the correct category and the correct tag.
mstm
(mstm)
7 أبريل 2021، 10:16ص
9
شكرًا لك أيضًا يا @cpradio ، سيكون ذلك ميزة رائعة.
للأسف، لا يعمل مع الأجهزة المحمولة
mstm
(mstm)
7 أبريل 2021، 4:20م
10
لقد جربت كل شيء لكنني لا أفهم كيفية إخفاء زر “إنشاء موضوع” على الأجهزة المحمولة.
مع الشاشات الصغيرة، يصعب تصفح الفئات والوسوم، وسيساعد هذا #الميزة كثيرًا، لماذا لا نضيف خيارًا إلى القائمة؟
manuel
(Manuel Kostka)
7 أبريل 2021، 5:03م
11
يمكنك استخدام مُفحص الأنماط في متصفحك. يُظهر أن الإعلان قد تم تجاوزه بإعلان أكثر تحديدًا على الأجهزة المحمولة:
لذلك يمكنك إما استخدام الإعلان الأكثر تحديدًا للأجهزة المحمولة بنفسك:
body:not([class*="category-"]) .list-controls .container #create-topic {
display: none;
}
أو إعطاء أولوية لإعلانك العام باستخدام الخاصية !important:
body:not([class*="category-"]) #create-topic {
display: none !important;
}
mstm
(mstm)
7 أبريل 2021، 5:23م
12
شكرًا لك @manuel ، لقد استخدمت خاصية !important وهي تعمل بشكل مثالي!