Home › Community Forums › Adapt Theme Support › features, welcome and home bottom sidebars not showing
Tagged: adapt, features, home bottom sidebars, welcome widget
- This topic has 9 replies, 2 voices, and was last updated 10 years, 3 months ago by
Wes.
-
AuthorPosts
-
October 1, 2012 at 5:33 pm #1487
sublimity
CustomerI’m using the adapt theme and have all 4 widgets filled with content and I have the welcome and home bottom sidebars 1 and 2 widgets fill with content, but they are not showing up on the home page. The home page is set as a static page. Using Genesis 1.8.2 and Adapt version 1.1. Not sure what I am going wrong.
October 1, 2012 at 5:37 pm #1488Wes
ModeratorYour settings should be set to – “Your latest posts“.
With most Genesis themes that have a home.php file (like this one) you wouldn’t have to specify which page to set as home since the home.php file takes care of that for you automatically.
October 1, 2012 at 5:47 pm #1489sublimity
CustomerGreat that did the trick, but I still want to use my home page as a static page. Is it possible to use those widgets and still use the home page as a static page?
October 1, 2012 at 5:55 pm #1490Wes
ModeratorYes, but you would have to turn your home.php file into a template file.
To do so, add this at the top of the home.php file, right under the <?php –
// Template Name: Home
Then create a page called “home” (you may have already done this). In the page editor, make sure and select the “Home” template on the right. Then you can go back to your settings and select the home page as your static page if you need to.
October 1, 2012 at 6:12 pm #1491sublimity
CustomerAgain, that you. That totally worked! But now the static content of the home page is at the very bottom, and I want it at the top (before the Welcome widget). Is there a tutorial you can point me to that will do that? I’m guessing I’ll have to use hooks or filters….
October 1, 2012 at 6:21 pm #1492Wes
ModeratorYes, when dealing with templates like this you would have to learn how to use the hooks, filters, etc. I would recommend checking out the StudioPress tutorials – http://www.studiopress.com/tutorials You could also search for some tutorials on third party blogs/sites on how to customize genesis templates. I don’t know of any third party sites specifically, but I know there are a lot out there.
October 1, 2012 at 6:52 pm #1494sublimity
CustomerOkay, I will do that. But I just noticed the home page content is not showing up. It shows the breadcrumb that says home, but that is about it–there is no home page content there.
October 1, 2012 at 7:07 pm #1495Wes
ModeratorThats because this file wasn’t really built for what you’re trying to do. It was originally designed to show the home widgets, or the blog if you dont have any widgets by default. If you need anything beyond that, then the file would have to be customized in order to achieve what you’re looking for.
I usually offer the code if its something quick and easy, but somethings (like this) can take a while to customize/code. Thats why I would recommend searching for tutorials, or hiring someone to develop a custom template for you.
October 1, 2012 at 8:55 pm #1496sublimity
CustomerCool. Thanks for letting me know. After racking my brains for awhile I found a pretty simple solution.
In the home template file (home.php) I changed this:
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
add_action( ‘genesis_after_header’, ‘adapt_home_loop_helper_top’ );
add_action( ‘genesis_after_header’, ‘adapt_home_loop_helper_middle’ );
add_action( ‘genesis_after_header’, ‘adapt_home_loop_helper’ );to this:
//remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
add_action( ‘genesis_before_footer’, ‘adapt_home_loop_helper_top’,3 );
add_action( ‘genesis_before_footer’, ‘adapt_home_loop_helper_middle’,3);
add_action( ‘genesis_before_footer’, ‘adapt_home_loop_helper’,3);And now the content of the home page (which is static) appears at the top and the features, etc follow afterwards.
October 1, 2012 at 8:59 pm #1497Wes
ModeratorOh ok, I thought you were wanting to do a lot more than that for some reason.
You could also add – genesis_after_content if you want……but if what you have is working, and everything else looks fine, then you could just leave it as it is.
Also, here is a visual guide on Genesis Hooks – http://genesistutorials.com/visual-hook-guide/ you may have already seen this, but I wanted to link to it just in case.
-
AuthorPosts
- You must be logged in to reply to this topic.