Edu Clean - how to edit "Homepage" template

Hi,

Please could someone advise me how I can edit the Edu Clean theme in order to remove the login box and side bar/widget area.

I would also like to remove two of the "Services" boxes.

As I am a complete novice, any help (preferably in Layman's term) would be greatly appreciated.

Regards

Lee

  • lmw
    • WPMU DEV Initiate

    Hey Tim,

    Thanks for the fast response.

    With regards to the image you attached, Yes! I would like both the login box (blue scribble) and latest news etc (orange scribble) removed. NB: the great use of layman's term :smiley:

    I would just like to have the menu bar and the "Services" boxes (preferably 4) on the home page.

    Hope that clarifies things.

    Regards, Lee

  • Timothy Bowers
    • Chief Pigeon

    Hey Lee.

    The easiest way would be create a page in the admin area:

    Admin --> Pages --> Add New Page

    Then when done go to:

    Admin --> Settings --> Reading

    /wp-admin/options-reading.php?settings-updated=true

    And then assign that page as the Front Page.

    The other option which would keep the service boxes would be to edit the CSS. Here are the CSS elements for you:

    /wp-content/themes/edu-clean/_inc/css/base.css

    Originals:

    #front-left {
    float: left;
    width: 460px;
    }
    
    #services {
    float: left;
    width: 460px;
    margin: 0px;
    }
    
    #front-right {
    float: right;
    width: 460px;
    margin: 0px;
    padding: 1em 0px 0px;
    }

    We recommend you don't edit the original CSS files, instead you should create a child theme. For information on child themes, then see this:

    https://premium.wpmudev.org/the-buddypress-manual/what-are-parent-and-child-themes/

    So in the child theme CSS you would simple add this:

    #front-left {
    width: 920px;
    }
    
    #services {
    width: 920px;
    }
    
    #front-right {
    display: none;
    }

    That will hide the right column and make the center areas full width. You don't need to add the other CSS stuff in the child theme because the parent theme will continue to handle it.

    If you have any further questions then please just let me know.

    Take care.

  • lmw
    • WPMU DEV Initiate

    Hi Tim,

    I opted for the later in order to maintain the service boxes. But I then realised that creating a static front page (as you discussed) with images set up similar to the service boxes would be a lot easier and have the desired affect.

    Common sense was lacking there :-$

    Anyway thanks for the help.

    Lee

  • Timothy Bowers
    • Chief Pigeon

    No worries. :slight_smile:

    Personally I would go for the CSS option, but if it were me I would probably code out the right area there to ensure its not called at all (with some CSS to stretch the centre area still). But then that gets a little more harder, not much but still... :slight_smile:

    If you need anything else then please feel free to crack another post open.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.