Forum Replies Created
-
AuthorPosts
-
December 22, 2013 at 1:07 am in reply to: Need Help Adding 4 Columns to Home-Top Section – Executive Pro #80726
Genesis Developer
MemberPlease modify your styls.css file.
.home-middle .widget:nth-of-type(3n+1), .home-top .widget:nth-of-type(3n+1) { clear: left; }
WILL BE
.home-middle .widget:nth-of-type(3n+1) { clear: left; }
Genesis Developer
MemberThen you can replace the following code
//* Register widget areas genesis_register_sidebar( array( 'id' => 'home-portfolio', 'name' => __( 'Home - Portfolio','mpp' ), 'description' => __( 'This is the portfolio section of the homepage.','mpp' ), ) );
WITH THIS WAY
//* Register widget areas register_sidebar( array( 'id' => 'home-portfolio', 'name' => __( 'Home - Portfolio','mpp' ), 'description' => __( 'This is the portfolio section of the homepage.','mpp' ), 'before_widget' => '<section id="%1$s" class="widget %2$s"><div class="widget-wrap">', 'after_widget' => '</div></section>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>' ) );
Genesis Developer
MemberAdd the following code in functions.php file
add_filter('genesis_grid_loop_post_class', 'threeColGridClass'); function threeColGridClass(array $grid_classes){ global $_genesis_loop_args, $wp_query; $new_classes = array(); $new_classes[] = 'one-third'; if(($wp_query->current_post + 1) % 3 == 1){ $new_classes[] = 'first'; } return $new_classes; }
Genesis Developer
MemberIf you want exclude the category then use this in functions.php file
/** Exclude certain category from posts */ add_action( 'pre_get_posts', 'be_exclude_category_from_home' ); function be_exclude_category_from_home( $query ) { if( $query->is_main_query() && $query->is_home() ) { $query->set( 'cat', '-156' ); //use your category ID } }
If you want exclude the some specific posts then use this in functions.php file
/** Exclude certain posts from home page*/ add_action( 'pre_get_posts', 'be_exclude_post_from_home' ); function be_exclude_post_from_home( $query ) { if( $query->is_main_query() && $query->is_home() ) { $query->set( 'p', '-26' ); //use your post ID } }
Genesis Developer
Memberare you wanting to exclude some categories posts from home page?
Genesis Developer
MemberRight now I have not agency pro theme. For that reason I asking the code. But you can pass this 'before_title' => '<h2 class="widget-title">' and 'after_title' => '</h2>' in genesis_register_sidebar() function
Genesis Developer
MemberYes. if he use the HTML5 markup then your code will work on his child theme. But he is using the XHTML and XHTML is not supporting the 'genesis_enrty_footer' hook. It is for HTML5 only.
Genesis Developer
MemberThen this can be work
add_action( 'genesis_after_post_content', ''below_hhdata_widget'' ); function below_hhdata_widget(){ if(( 'hh-data' == get_post_type() ) && is_single() ) { genesis_widget_area( 'below-hhdata', array( 'before' => '<div class="below-hhdata widget-area">', 'after' => '</div>', ) ); } }
Genesis Developer
MemberOk. Please remove my code from functions.php. It was for primary sidebar.
some how you can send me the code of functions.php file? I'll take a look.
Genesis Developer
MemberTry this code in functions.php file of your child theme
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); add_action( 'genesis_sidebar', 'genesis_do_custom_sidebar' ); function genesis_do_custom_sidebar() { if ( ! dynamic_sidebar( 'sidebar' ) && current_user_can( 'edit_theme_options' ) ) { genesis_custom_widget_area_content( __( 'Primary Sidebar Widget Area', 'genesis' ) ); } } function genesis_custom_widget_area_content( $name ) { echo genesis_html5() ? '<section class="widget widget_text">' : '<div class="widget widget_text">'; echo '<div class="widget-wrap">'; printf( '<h2 class="widgettitle">%s</h2>', esc_html( $name ) ); echo '<div class="textwidget"><p>'; printf( __( 'This is the %s. You can add content to this area by visiting your <a href="%s">Widgets Panel</a> and adding new widgets to this area.', 'genesis' ), $name, admin_url( 'widgets.php' ) ); echo '</p></div>'; echo '</div>'; echo genesis_html5() ? '</section>' : '</div>'; }
Genesis Developer
Memberare you using HTML5 markup? in your functions.php file have this code 'add_theme_support( 'html5' );' ?
Genesis Developer
MemberConnect to FTP and check once that there have wp-config.php file. Other wise you will create it manually
Genesis Developer
MemberYes. Right there have no Issue with WordPress 3.8 and Genesis 2.0.1
Genesis Developer
MemberAdd this in style.css file
.content .genesis_responsive_slider .slide-excerpt{display: none!important;}
Genesis Developer
Member/** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' => 'YOUR NEW LOGO WIDTH', 'height' => 'YOUR NEW LOGO HEIGHt' ) );
Update the above code in your functions.php file
Genesis Developer
Memberit is using the backstretch JQuery lib for background image. You can upload any image and that library will automatically re-size the image with your browser size. See this demo http://srobbin.com/jquery-plugins/backstretch/
Genesis Developer
MemberSize of background means? Are you wanting to add a bg in body?
Genesis Developer
MemberUpdate the following code in your functions.php file
/** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' => 'YOUR NEW LOGO WIDTH', 'height' => 'YOUR NEW LOGO HEIGHt' ) );
Genesis Developer
MemberAdd the code in style.css file
@media only screen and (max-width: 767px){ .site-inner {padding-top: 168px; padding-top: 16.8rem;} }
Mobile menu see this resource http://bradpotter.com/responsive-mobile-navigation-menu-for-the-genesis-theme-framework/ and http://blackhillswebworks.com/2013/08/16/how-to-add-a-mobile-responsive-menu-to-your-genesis-wordpress-website/#mobile-footer-nav-menu
December 12, 2013 at 1:04 am in reply to: Has anybody tried using Genesis eNews Extended with MailChimp groups? #78518Genesis Developer
MemberYou can try this plugin MailChimp List Subscribe Form
-
AuthorPosts