XF 2.2 Set max width, increase font size for article threads

drastic

Well-known member
Hi,

I don't have a sidebar, so my article threads span the full width of the screen.

What can I place in the extra template file to make the max width of the article thread content be 600px?

Would also like to increase the font size, but wasn't sure which option in style properties would do that.

Goal is to make the reading experience a little better.

Thanks for the tips!
 
If you mean the thread view, add this to the extra.less template.

Less:
[data-template="thread_view_type_article"]
{
    .message--article
    {
        width: 600px;
    }
}

It may need more work though, or you may need to target a different class in that template, depending on the final look you want to achieve.
 
Hello,

Will Paul's code still work in XF 2.3? Because I'm dealing with the same issue where the text of articles is ridiculously wide. I need to bring that down to a more normal width, particularly as I want to increase the page width some.

Thanks.

Where is Paul anyway?
 
Back
Top Bottom