December 28, 2013 at 7:21 am #81548
Hello I am using the Education theme and would like to add a Home featured middle and home featured bottom to the site just as one of the showcase sites http://www.victoriachamber.org/ Right now if ONLY comes with home featured top Can somebody direct me on what I'd need to do in order to add this.
Thank you.December 28, 2013 at 7:40 am #81551
You could simply hook in 2 new widgets from your functions file. http://my.studiopress.com/tutorials/register-widget-area/
Did you want to display posts on the front page?
Otherwise, you'll need to code your home page template.
December 28, 2013 at 7:55 am #81552
Here's an example showing one way to do that:
December 29, 2013 at 6:49 am #81798
Wow, thank you. I don't think I would have gotten all of this from the tutorial. Now I can look at it and work backwards. Before I jump in though let me make sure I am clear. I am placing the first box of code in the functions,php....I assume at the bottom will be fine. And then the second box of code in the home.php file....somewhere after home featured section, correct???
And then to answer your question I do not want to display posts on the home page so will any of that code take care of that or is there something more I should do??
Thanks again, you are awesome!!!!December 29, 2013 at 7:13 am #81800
The code removes the loop so its just widgets.
December 29, 2013 at 7:19 am #81801This reply has been marked as private.December 29, 2013 at 7:23 am #81804
Sorry but i don't get PM's.
December 29, 2013 at 7:29 am #81806
I was simply saying have a wonderful day...
I just pasted the code and got a parse error on line 61
Here's the site....http://rebuild.rc4u.biz/welcome/
I'm going in now to see if I can figure it out since I did paste the raw code.December 30, 2013 at 4:58 am #82005
The first code block goes at the end of your child themes functions file
The 2nd is the entire home.php file so simply replace the entire file with this new code.
Tested locally and works.
Send me an email and i'll reply you with the file. firstname.lastname@example.org
December 30, 2013 at 5:27 am #82010
Got it...and it did work. However, I wanted to retain the sidebar on the side of the slider so I removed this out of the code you sent ..... add_action( 'genesis_meta', 'education_home_middle_bottom_widgets' );
Now it looks a little funky at the bottom....I don't want the sidebar that is appearing at the bottom. I only want the home bottom showing up...
Can you tell what I've done wrong?
ThanksDecember 30, 2013 at 5:50 am #82014
Line 60 of your home.php file contains this code which you can remove.
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
December 30, 2013 at 6:13 am #82015
I made a mistake...sorry...
I'd actually removed the code you just mentioned and left the add_action( ‘genesis_meta’, ‘education_home_middle_bottom_widgets’ ); That did give me the full screen so that I had the sidebar next to the slider BUT I still have a sidebar at the bottom...not sure what it is attached to... I think it is saying content- sidebar wrapDecember 30, 2013 at 8:01 am #82034January 7, 2014 at 6:29 am #83764
You must be logged in to reply to this topic.