- This topic has 18 replies, 5 voices, and was last updated 6 years, 3 months ago by
Tom.
-
AuthorPosts
-
August 19, 2016 at 2:09 pm #219689
Aaron
How can I customize the post container size? I’m aware there is the masonary, and columns options.. however how can I make the containers for post a custom size instead of using the default sizing?
August 19, 2016 at 2:36 pm #219695Leo
StaffCustomer SupportTry this CSS:
.blog .container.grid-container { max-width: 1000px; }
Not sure how you are adding the CSS but if you are using Tom’s Simple CSS plugin, make sure the code is entered in the global editor.
Let me know πDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 19, 2016 at 2:48 pm #219699Tom
Lead DeveloperLead DeveloperThe above will do the main blog page, you might want to add to it to apply it to archives as well:
.blog .container.grid-container, .archive .container.grid-container { max-width: 1000px; }
If you’re meaning the single post page, then it would be this:
.single .container.grid-container { max-width: 1000px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 21, 2016 at 12:39 am #220012Aaron
I tried the code but i think I explained it wrong, I mean I want to customize the Height and width of post instead of selecting small, medium, or large for the sizing options.
August 21, 2016 at 1:25 am #220017Leo
StaffCustomer SupportIf you are talking about the sizing options in Masonry then probably not. I think the height and width of those blocks are automatically calculated depending on the title and content of the post so they fit together like masonry…
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 21, 2016 at 1:30 am #220018Aaron
What about for columns ?
August 21, 2016 at 1:33 am #220019Leo
StaffCustomer SupportWhat’s the layout you have in mind? An example would be helpful.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 21, 2016 at 1:58 am #220025Aaron
I’m trying to get a layout like this http://blog.us.playstation.com
August 21, 2016 at 8:43 am #220064Tom
Lead DeveloperLead DeveloperUnfortunately you’re confined to the three sizes in masonry (large, medium, small).
However, you can target those three classes and give them custom sizes:
.masonry .grid-sizer, .masonry .masonry-post { width: 33.333%; } .masonry .masonry-post.width4, .masonry .grid-sizer.width4 { width: 66.666%; } .masonry .masonry-post.width6, .masonry .grid-sizer.width6 { width: 100%; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 21, 2016 at 10:41 am #220102Aaron
Worked perfectly, Thanks to both Leo & Tom for your support
August 21, 2016 at 12:45 pm #220126Tom
Lead DeveloperLead DeveloperNo problem π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 12, 2016 at 4:27 pm #254031Ray
Hi Tom / Everyone,
I’m having a 30-day personal crash-course learning WP; forgive my ignorance. I have a similar issue with ‘Post’ container. I want to control/indent the ‘date’ and all other attributes that appear within all single posts containers (not pages) without affecting global container settings. Is this possible?
December 12, 2016 at 6:05 pm #254053Leo
StaffCustomer SupportHi Ray,
Try the following CSS below:
time.entry-date.published, .post-navigation { padding-left: 20px; }
Let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 12, 2016 at 7:41 pm #254082Tom
Lead DeveloperLead DeveloperThat will work, but it’s a little too specific.
Both of these elements are wrapped in an .entry-meta class, so we can do this:
.entry-meta { padding-left: 20px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 12, 2016 at 10:29 pm #254132Leo
StaffCustomer SupportThanks Tom π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.