mbergsma
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Tove] Child Theme with theme.jsonHi Anders,
Thanks for the quick answer. I guess I’ll have to wait untill WordPress 5.9 will land. My poor knowledge of coding (just a bit of CSS and some copy/paste snippets) won’t be of any help.
Love the theme, especially the name Tove. As a storyteller and children’s librarian I think it’s great that you honor Tove Jansson this way!Forum: Themes and Templates
In reply to: [Chaplin] Use your selfhosted fonts@facelikebambi, @shreen2008, @chrisnawojczyk, @dietredthunder I found this on the PootlePress site:
How to reduce the height of the 2019 Theme featured image
By default the 2019 featured image is set to fill the full height of the screen. This looks great, but the downside is that your readers have to scroll to see your content.To reduce the height of the 2019 Theme featured image, we just need a simple bit of CSS. Put this in the WordPress customizer. Click on customize / additional css. Change the value 70vh to whatever you would like, with 100 being full height.
.site-header.featured-image { min-height: 70vh; }
- This reply was modified 5 years, 8 months ago by mbergsma.
Forum: Themes and Templates
In reply to: [Hamilton] Posts pageYou can add this piece of code to you functions.php (do this in your Hamilton Child Theme)
Show Only One Category on Home Page
Place this code in functions.php to cause the home page to display posts only from one category.function my_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '123' ); } } add_action( 'pre_get_posts', 'my_home_category' );
Change “123” to the category ID you wish to display.
Source: https://codex.www.ads-software.com/Plugin_API/Action_Reference/pre_get_posts#Show_Only_One_Category_on_Home_PageForum: Themes and Templates
In reply to: [CoBlocks] Article Content is showing in full widthAdd the following code to your own css (child-theme or Edit CSS in the Appearance menu):
.entry-content {
margin-left: auto;
margin-right: auto;
max-width: 760px;
padding-left: 20px;
padding-right: 20px;
}Forum: Themes and Templates
In reply to: [CoBlocks] how to Adjust a widthAdd the following code to your own css (child-theme or Edit CSS in the Appearance menu):
.entry-content {
margin-left: auto;
margin-right: auto;
max-width: 760px;
padding-left: 20px;
padding-right: 20px;
}