Forum Replies Created
-
AuthorPosts
-
mbeckParticipant
Or is there a way to make it the full width of the post/column?
mbeckParticipantThanks, Brad!
mbeckParticipantThanks for the ideas, Andrea.
None seem to work.
In fact, if I eliminate the new widget and simply change the home-featured widget area to 'genesis_after_content_sidebar_wrap', the home widgets disappear altogether.Guess I'll just go back to the original layout without the new widget.
mbeckParticipantHi Andrea,
I changed the coding at the end of the file to what's below, but nothing changed.
Any thoughts?add_action( 'genesis_after_content_sidebar_wrap', 'mbi_after_widget_widget');
function mbi_after_widget_widget() {
if ( is_active_sidebar( 'after-widget-widget' ) ) {
genesis_widget_area( 'after-widget-widget', array(
'before' => '<div id="page-title"><div class="wrap">',
'after' => '</div></div>',
) );
}
}genesis();
mbeckParticipantThanks for the offer to take a look at this, Andrea.
Here is the code from the front-page.php file:<?php
/**
* This file adds the Home Page to the Streamline Pro Theme.
*
* @author StudioPress
* @package Streamline Pro
* @subpackage Customizations
*/add_action( 'genesis_meta', 'streamline_home_genesis_meta' );
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/
function streamline_home_genesis_meta() {if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-3' ) ) {
//* Force content-sidebar layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );// Add streamline-pro-home body class
add_filter( 'body_class', 'streamline_body_class' );// Add homepage widgets
add_action( 'genesis_after_content_sidebar_wrap', 'streamline_homepage_widgets' );}
}function streamline_body_class( $classes ) {
$classes[] = 'streamline-pro-home';
return $classes;}
function streamline_homepage_widgets() {
if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-3' ) ) {
echo '<div class="home-featured">';
genesis_widget_area( 'home-featured-1', array(
'before' => '<div class="home-featured-1 widget-area">',
'after' => '</div>',
) );genesis_widget_area( 'home-featured-2', array(
'before' => '<div class="home-featured-2 widget-area">',
'after' => '</div>',
) );genesis_widget_area( 'home-featured-3', array(
'before' => '<div class="home-featured-3 widget-area">',
'after' => '</div>',
) );echo '</div><!-- end #home-featured -->';
}
}
add_action( 'genesis_after_content', 'mbi_after_widget_widget');
function mbi_after_widget_widget() {
if ( is_active_sidebar( 'after-widget-widget' ) ) {
genesis_widget_area( 'after-widget-widget', array(
'before' => '<div id="page-title">',
'after' => '</div>',
) );
}
}genesis();
And here is the link to the home page:
http://www.michaeljbeck.com/mbeckParticipantBrad, I made another attempt to solve this with your suggestion and it worked!
Thanks so much for your help.mbeckParticipantOK, let me ask this instead.
Do you know if the Genesis Responsive Slider can be inserted into a content area with a shortcode?mbeckParticipantFYI, I'm using the Streamline Pro Theme and not the older Streamline Theme.
mbeckParticipantAlso, does it go in the function.php file or the front-page.php file?
mbeckParticipantThanks, Brad,
I took a look at your tutorial and wrote some code, but I must have something wrong.
Would you mind taking a look at it for me?
Thanks!genesis_register_sidebar( array(
'id' => 'bottom_center',
'name' => __( 'Bottom Center', 'streamline' ),
'description' => __( 'This is the content after Home Widgets', 'streamline' ),
) );
add_action( 'genesis_before_content', 'bottom_center' );
function your_widget() {
if ( is_front_page() && is_active_sidebar('bottom_center') ) {
genesis_widget_area( 'bottom_center', array(
'before' => '<div class="bottom_center widget-area">',
'after' => '</div>',
) );mbeckParticipantThanks for asking. My intention is to use the text in both cases.
On a large screen, there would be a white background and a graphic behind the text but on a small screen, there would be no text and the background would be a color.Here is a link to the graphic:
http://www.michaeljbeck.com/theme_test/wp-content/themes/streamline-pro/images/headerbackground1.pngHere's what the header would look like on a large screen: (the text isn't positioned correctly in this example)
http://www.michaeljbeck.com/theme_test/wp-content/themes/streamline-pro/images/Screen%20Test.jpgThis is what the header would look like on a smaller screen:
http://www.michaeljbeck.com/theme_test/mbeckParticipantThanks, Nick. Looks like a useful plugin!
My question pertained to getting that nice button into a text widget, but I figured it out already.
I've downloaded your plugin to check it out.mbeckParticipantGreat! Thanks again, Peter.
mbeckParticipantWorked perfectly!
Thanks, Peter!mbeckParticipantHi Ozzy, Your post didn't have any HTML coding in it and/or the link didn't take me anywhere. Would you mind re-posting?
mbeckParticipantThanks, Andrea. I'll do it that way, then.
-
AuthorPosts