chojo

Customer
I know you can remove both CTA on the forum list "New Post" and "Post thread" by editing a template, but I would like to know if there is a switch somewhere inside Style Properties to hide them.

Thank you
 
No option, you can just do some simple CSS for it.

Hide title + buttons on forum list:
Code:
[data-template="forum_list"] .p-body-header { display: none; }

Hide just the buttons on the forum list:
Code:
[data-template="forum_list"] .p-title-pageAction { display: none; }

Hide just the title on the forum list:
Code:
[data-template="forum_list"] .p-title-value { display: none; } [data-template="forum_list"] .p-title-pageAction { margin-left: auto; }

You'll put the CSS inside extra.less
 
No option, you can just do some simple CSS for it.

Hide title + buttons on forum list:
Code:
[data-template="forum_list"] .p-body-header { display: none; }

Hide just the buttons on the forum list:
Code:
[data-template="forum_list"] .p-title-pageAction { display: none; }

Hide just the title on the forum list:
Code:
[data-template="forum_list"] .p-title-value { display: none; } [data-template="forum_list"] .p-title-pageAction { margin-left: auto; }

You'll put the CSS inside extra.less
Thank you

Is it something you consider to add as a config in your framework oneday?
 
Thank you

Is it something you consider to add as a config in your framework oneday?

We previously had an option which was to remove the page title on the forum list. It was primarily there due to being in our original framework and I wanted to convert over the majority of the options. With XF2 though, the buttons made it so it'd leave a gap and just wasn't really appealing.

Considering some folks want one of the three solutions above I think CSS is the best approach over an option to remove them from the source code. Any reason why you don't want to take the CSS approach?

If you want them gone from the HTML source, you'll need to edit the template "forum_overview_wrapper" and surround the pageaction tag with a xf:comment:

Screenshot_18.png
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back