Community Forums › Forums › Archived Forums › General Discussion › Do I have to create new templates for child theme?
- This topic has 1 reply, 2 voices, and was last updated 10 years, 2 months ago by
Sridhar Katakam.
-
AuthorPosts
-
March 10, 2016 at 8:47 pm #181184
denkert
MemberHi there,
I have a few things that I wanna change. I'm a fairly skilled SASS coder but not very well versed in PHP. This is my first time in Genesis.
I've created a child theme and have so far not had to add any additional templates but have styled the layout using wordpress/genesis defaults. However, there are a few things that seem to be impossible to change without adding templates.php.
1. My first page is a summary of all recent blog posts with a sidebar. I've set this up using the pre-sets that came with Genesis. However, I can't seem to be able to style these excerpts in CSS. When I look for the right divs in the web inspector, it's basically the same as .entry-content or .entry-title etc. I wanna change the look of the featured image. Where can I do this? Obviously I want the sample page to look a bit different than the full post page. What divs should I add my styling to? Or is there a .php document I must change? How do I go about this?
2. While I want my first page to have the content-primarysidebar layout that came with Genesis, I want my posts to always be full-width. However, it looks like I have to individually go in on every post (and there's over 200 of them) and set them to full-width because they otherwise default to content-primarysidebar. Please tell me there's a faster way to fix this.
3. Does anyone have any good tips where I can find similar scheduling widgets that can be found in the sidebar on this site: http://www.castingloop.com/classes/1-brooke-mary-on-camera-commercial-intensive ? Dates + sign up button?
March 11, 2016 at 6:16 am #181202Sridhar Katakam
Participant1.
I can't seem to be able to style these excerpts in CSS.
You can use more specific CSS selectors.
Ex.:
.home .entry-title a { color: blue; }will make the color of entry titles blue, but only for the posts on the posts page (homepage by default).
I wanna change the look of the featured image.
Can you provide more details on how you want the featured images to look like? Also what is the URL of your site?
2. Add this in your child theme's functions.php:
add_action( 'get_header', 'sk_set_posts_layout' ); function sk_set_posts_layout() { // if we are not on single Post pages, abort. if ( ! is_singular( 'post' ) ) { return; } // Force full width content add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); }3. Look at event plugins in the WordPress plugins repository.
https://wordpress.org/plugins/search.php?q=events
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.