Forum Replies Created
-
AuthorPosts
-
August 29, 2016 at 10:28 am in reply to: Widgets: title with background and no padding but retain content padding #192248pobrienMember
So no way to blanket all widgets without having to specify ul tags? Not all my widgets are ul.
I could remove the padding, and apply content padding to each one - just looking for a more programmatic approach to all
pobrienMemberI ended up using my
home.php
as the template file foris_home()
,is_archive()
andis_search()
using this snippet from Bill Erickson. It works great, and hopefully it's the right thing to do for future proofing this child theme.http://www.billerickson.net/code/use-single-template-for-home-archive-and-search/
pobrienMemberAlso, what's interesting is that I don't need a
front-page.php
for my front page. Seems is_home() is the only picky one about needinghome.php
.pobrienMemberWould the same apply for a search results page? Making a
search.php
in the child theme?I'm not looking to override all of Genesis, but just customize the layout of the results (more than just CSS).
So,
home.php
andsearch.php
are needed? No custom loops for those results?pobrienMemberInteresting. This is why I thought it was a "hack", because when I name it something like
template-home.php
, and set the page template within the Dashboard to "Blog" or even "Custom Blog Page", then the child theme reverts back to default layout. It only works when I usehome.php
.Thoughts?
pobrienMemberOkay, great. Based on many bits of info around Google, I made a new file,
home.php
. Defined it as a template by way ofTemplate Name: Blog
, then added the custom loop from Bill Erickson. Things are working as I'd expect. Thanks for confirming this is a proper way to do it (and not a hack).pobrienMemberSo it feels a little "hackey" to me, but I took this Custom Loop example from Bill Erickson, and added it to
home.php
and was able to get the proper styling I needed for myis_home()
blog page template.https://gist.github.com/billerickson/3218052
I'm assuming this is a proper way of doing things, and not a hack?
pobrienMemberOh, perhaps I found my answer. The template settings should be in a new file within the child theme called
home.php
Thoughts?
pobrienMemberNope, it's a private internal dev site. Basically my setup (for starters):
1) My blog is setup for static home page, and post page
2) I'm using the starter child theme for Genesis 2.1.2
3) I want to change the is_home to show only blog titlesHow do I go about doing that? Is there a hook? Do I need to have something special in the child theme's
page_blog.php
? -
AuthorPosts