Archived topic
Different width between articles and archives
5 replies · Started by François on February 8, 2021
Hello,
I am a Premium for Life user:-)
I would like to have a sidebar on the right side of the archive, and no sidebar in "article" mode.
I know how to do that.
The problem is that I would like the width of the container to be reduced when I don't display the sidebar, so that the article lines are not too long.
Is this possible?
Thank you very much for your help.
Hi there,
you can use the Layout Element:
https://docs.generatepress.com/article/layout-element-overview/
In the Content tab you can set a smaller width - and set the Display Rules Location to: Posts > All Posts.
Thank you David, I'll try it!
You're welcome
Yes! It works!
I have what I want.
Thank you more.
Glad to hear that!