Sirmadsen Active member Jul 9, 2023 #1 Hi, How can I hide the download button from a resource? Basically what I'm trying to do is to use the version tab as the main download place, not the button on the main resource page.
Hi, How can I hide the download button from a resource? Basically what I'm trying to do is to use the version tab as the main download place, not the button on the main resource page.
Solution Paul B Jul 9, 2023 Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } }
Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } }
Paul B XenForo moderator Staff member Jul 9, 2023 #2 Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } } Upvote 0 Downvote Solution
Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } }
Sirmadsen Active member Jul 9, 2023 #3 Brogan said: Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } } Click to expand... Indeed it did. Thanks a lot! Upvote 0 Downvote
Brogan said: Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } } Click to expand... Indeed it did. Thanks a lot!
Sirmadsen Active member Jul 10, 2023 #4 Brogan said: Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } } Click to expand... I noticed that the download button is only hidden on the main tab, "Overview". Whenever switching tabs the download button is visible. Any way to add to the code so that the button is always hidden? Upvote 0 Downvote
Brogan said: Adding this to the extra.less template should work. Less: [data-template = "xfrm_resource_view"] { .p-title-pageAction { visibility: hidden; } } Click to expand... I noticed that the download button is only hidden on the main tab, "Overview". Whenever switching tabs the download button is visible. Any way to add to the code so that the button is always hidden?
Paul B XenForo moderator Staff member Jul 10, 2023 #5 Add any additional pages to the code like so: Less: [data-template = "xfrm_resource_view"], [data-template = "other_page"] { .p-title-pageAction { visibility: hidden; } } Use the browser inspector to check the template name of the page you want to affect. Upvote 0 Downvote
Add any additional pages to the code like so: Less: [data-template = "xfrm_resource_view"], [data-template = "other_page"] { .p-title-pageAction { visibility: hidden; } } Use the browser inspector to check the template name of the page you want to affect.
Sirmadsen Active member Jul 10, 2023 #6 Brogan said: Add any additional pages to the code like so: Less: [data-template = "xfrm_resource_view"], [data-template = "other_page"] { .p-title-pageAction { visibility: hidden; } } Use the browser inspector to check the template name of the page you want to affect. View attachment 288327 Click to expand... Hmm, adding any other page to that makes the button visible on all pages. I added Code: /** HIDE DOWNLOAD BUTTON **/ [data-template = "xfrm_resource_view"] [data-template = "xfrm_resource_history"] [data-template = "xfrm_thread_view_type_resource"] [data-template = "xfrm_resource_extra"] { .p-title-pageAction { visibility: hidden; } } Upvote 0 Downvote
Brogan said: Add any additional pages to the code like so: Less: [data-template = "xfrm_resource_view"], [data-template = "other_page"] { .p-title-pageAction { visibility: hidden; } } Use the browser inspector to check the template name of the page you want to affect. View attachment 288327 Click to expand... Hmm, adding any other page to that makes the button visible on all pages. I added Code: /** HIDE DOWNLOAD BUTTON **/ [data-template = "xfrm_resource_view"] [data-template = "xfrm_resource_history"] [data-template = "xfrm_thread_view_type_resource"] [data-template = "xfrm_resource_extra"] { .p-title-pageAction { visibility: hidden; } }
Paul B XenForo moderator Staff member Jul 10, 2023 #7 You missed the , after each template line to separate them. Only the last entry doesn't have a , . Upvote 1 Downvote
Sirmadsen Active member Jul 10, 2023 #8 Brogan said: You missed the , after each template line to separate them. Only the last entry doesn't have a , . Click to expand... Aah, thanks. That did it. Upvote 0 Downvote
Brogan said: You missed the , after each template line to separate them. Only the last entry doesn't have a , . Click to expand... Aah, thanks. That did it.