Community Forums › Forums › Archived Forums › General Discussion › Remove blog entries from home page of Going Green Pro
Tagged: blog, going green pro, remove
- This topic has 7 replies, 5 voices, and was last updated 11 years, 1 month ago by
dreamdancer.
-
AuthorPosts
-
November 10, 2013 at 10:14 pm #72247
AliKK
MemberHi there,
There's probably a better way to do this, but, for now, I'm interested in removing the blog from the home page.
Site is here:
http://lunabeannation.com/4eyoga/
I know I could just assign a different page, but I'm not sure how I would make the picture take up the entire space without affecting other pages...so I think this is the easiest solution. Maybe.
http://lunabeannation.com/4eyoga/November 10, 2013 at 11:54 pm #72262nutsandbolts
MemberYou could create a home.php to use a widgetized homepage instead of showing posts. There are a number of tutorials out there, or you could grab a home.php from another child theme and customize it.
The site is gorgeous, by the way! I love the way it looks.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 11, 2013 at 8:55 am #72305AnitaC
KeymasterNovember 21, 2013 at 10:05 pm #74859AliKK
MemberThanks so much for the replies. My issue is primarily that there is no home.php file to edit. I have functions, landing-page, and the css. I don't know if this is a new thing with the Going Green Pro...BUT, in the past I've just been able to edit home.php (as suggested in the blog post). Now I'm at a loss. Thanks!
February 19, 2014 at 6:57 pm #91303dreamdancer
ParticipantI am working on a widget home page for Going Green Pro as well. I took a copy of front-page.php (instead of home.php) from Lifestyle Pro, it works, I registered the widget areas in the functions file and my widgets are showing up.
However I get into problems if I try to rename the child theme info in the page.
such as - add_action( 'genesis_meta', 'going-green_home_genesis_meta' );
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/function going_green_home_genesis_meta() {
if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom-left' ) || is_active_sidebar( 'home-bottom-right' ) ) {
// Force content-sidebar layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );// Add going-green-pro-home body class
add_filter( 'body_class', 'going-green_body_class' );// Remove the default Genesis loop
remove_action( 'genesis_loop', 'genesis_do_loop' );// Add homepage widgets
add_action( 'genesis_loop', 'going-green_homepage_widgets' );}
}I get this error -
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'going-green_home_genesis_meta' was given in /home/content/68/8481068/html/karson/wp-includes/plugin.php on line 429I have tried it many, many ways and unless I have lifestyle instead of going-green, there is an error code and the widgets disappear. There must be some way to name this to match the theme, but I can't figure out what I am doing wrong. Would love some help.
March 25, 2014 at 7:33 pm #96667Helen
MemberHi dreamdancer, Did you get this to work, I am trying to do the same thing. Actually, first I used a static page as the Home page and tried using column classes, but for a few reasons much rather have widgets on the Home page, so I'm trying for the second time to do this, and running into same problem you are having.
March 25, 2014 at 7:40 pm #96669dreamdancer
ParticipantThis reply has been marked as private.March 26, 2014 at 5:00 pm #96849dreamdancer
ParticipantHi Helen, I thought I could send a private message, but this board doesn't do that. Here is a link to download my two custom files. https://files.secureserver.net/0sMQ2qknUJeuIg
There is the front-page.php with a few widget spots, and the functions.php that registers the sidebars.
here is some home page CSS also:/* Home*/
.home-middle .featuredpost img {
margin-bottom: 0;
margin-right: 20px;
margin-right: 2rem;
}.home-bottom-left,
.home-bottom-right {
width: 332px;
}.home-bottom-left {
float: left;
}.home-bottom-right {
float: right;
}h2,
.home-top .entry-title {
font-size: 24px;
font-size: 2.4rem;
font-family: 'Lora', serif;
margin-left: 15px;
margin-right: 15px;
}.home .entry-content {
margin-left: 15px;
margin-right: 15px;
}
@media only screen and (max-width: 1268px)
.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3, .home-bottom-left,
.home-bottom-right,
.sidebar-primary {
width: 260px;
}
@media only screen and (max-width: 1023px)
.home-bottom-left,
.home-bottom-right {
width: 332px;
}
@media only screen and (max-width: 834px)
.home-bottom-left,
.home-bottom-right,
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
.three-fourths,
.three-sixths,
.two-fourths,
.two-sixths,
.two-thirds {
margin: 0;
width: 100%;
} -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.