How to add home featured middle and bottom

Community Forums Forums Design Tips and Tricks How to add home featured middle and bottom

This topic is: not resolved

This topic contains 13 replies, has 3 voices, and was last updated by  mediacampana 6 months, 2 weeks ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #81548

    calendargirl
    Participant
    Post count: 27

    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.

    #81551

    braddalton
    Participant
    Post count: 8826

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #81552

    braddalton
    Participant
    Post count: 8826

    Here’s an example showing one way to do that:


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #81798

    calendargirl
    Participant
    Post count: 27

    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!!!!

    #81800

    braddalton
    Participant
    Post count: 8826

    The code removes the loop so its just widgets.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #81801

    calendargirl
    Participant
    Post count: 27
    This reply has been marked as private.
    #81804

    braddalton
    Participant
    Post count: 8826

    Sorry but i don’t get PM’s.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #81806

    calendargirl
    Participant
    Post count: 27

    I was simply saying have a wonderful day… :-)

    BUT now,

    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.

    #82005

    braddalton
    Participant
    Post count: 8826

    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. brad@wpsites.net


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #82010

    calendargirl
    Participant
    Post count: 27

    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…

    Remember i am trying to make http://rebuild.rc4u.biz/welcome/ look similar to the set-up of http://www.victoriachamber.org/

    Can you tell what I’ve done wrong?

    Thanks

    #82014

    braddalton
    Participant
    Post count: 8826

    Line 60 of your home.php file contains this code which you can remove.
    [php]
    add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #82015

    calendargirl
    Participant
    Post count: 27

    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 wrap

    http://rebuild.rc4u.biz/welcome/

    #82034

    braddalton
    Participant
    Post count: 8826

    If you want to remove that sidebar, keep the code in the file


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #83764

    mediacampana
    Member
    Post count: 1

    Perfect. I applied this with success in this site http://consultoriogabitomira.com/newtestwp/
    The thing is I cannot figured out wich css class to apply for getting the “featuredh-top” part to be in columns (2 columns of 50% each)
    Can u help me with that?

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.