Community Forums › Forums › Design Tips and Tricks › Slideshow below header – Balance theme
This topic contains 36 replies, has 4 voices, and was last updated by anitac 5 months, 4 weeks ago.
-
AuthorPosts
-
December 21, 2012 at 12:55 pm #6703
If you follow the instructions for Brian’s Welcome Widget and set the hook for home page only – it will give you the 960 widget you are desiring.
**Update**
Someone asked on the blog how to get it on the home page only and John Buscall graciously supplied the correct code which specified – if ( is_home() ) to get it on the home page only./** Add the welcome text section */add_action( ‘genesis_before_content_sidebar_wrap’, ‘custom_welcome_text’ );
function custom_welcome_text() {
if ( is_home() )
genesis_widget_area( ‘welcome-text’, array(
‘before’ => ”,
) );
}
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered posts-
This reply was modified 5 months, 4 weeks ago by
anitac. Reason: add the update
-
This reply was modified 5 months, 4 weeks ago by
anitac. Reason: add the update
December 21, 2012 at 3:07 pm #6741So far I’ve been able to put the widget across the top, but on all pages, which is not good enough. The hook given above for the home page only doesn’t work in the Balance theme. It breaks the code and my blog crashes (i.e. all you can see is a blank page and you need to re-upload the original .php files)
Can anyone suggest another solution?
December 21, 2012 at 3:35 pm #6756In this code here: did you change the theme name highlighted int he code to be YOUR THEME NAME. Check that.
/** Register widget areas */
genesis_register_sidebar( array(
‘id’ => ‘welcome-text’,
‘name’ => __( ‘Welcome Text’, ‘genesis’ ),
‘description’ => __( ‘This is the welcome text widget.’, ‘themename‘ ),
) );And did you modify the second half of the code as I suggested in my last communication to include this:
if ( is_home() )
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 21, 2012 at 3:41 pm #6759Would that be?
‘description’ => __( ‘This is the welcome text widget.’, ‘themename‘ ),
‘description’ => __( ‘This is the welcome text widget.’, ‘balance‘ ),
or is it Balance (with a capital B), balancetheme. There are no instructions for this anywhere.
December 21, 2012 at 3:45 pm #6761Yes, lower case is fine. Sorry it wasn’t indicated – I assumed you already knew to do that. Unless you did other modifications to your theme, I just installed the same theme on my demo – made those changes including the one for front page only and it works fine. It did not break the theme.
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 21, 2012 at 3:52 pm #6766I’ve now got the following line in my functions.php file:
‘description’ => __( ‘This is the welcome text widget.’, ‘balance’ ),
The slider is still on all pages. Can I check with you that what I need to add to my functions.php file is:
____________________________
/** Add the welcome text section */
add_action( ‘genesis_before_content_sidebar_wrap’, ‘custom_welcome_text’ );
function custom_welcome_text() {
if ( is_home() )
genesis_widget_area( ‘welcome-text’, array(
‘before’ => ”,
) );
}_____________________________
I mean, exactly that code.
December 21, 2012 at 3:57 pm #6769Yes, replace the second part of Brian’s ORIGINAL code – with that piece of code and it should work. Not sure why your Navigation is disappearing, etc., on your home page. If this doesn’t work. We can use Join.me and I can help you virtually.
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 21, 2012 at 4:04 pm #6771Anitac,
My slider has disappeared altogether. Now it doesn’t come up anywhere
This is all the code I’ve got on functions.php with relation to the slider:
/** Register widget areas */
genesis_register_sidebar( array(
‘id’ => ‘welcome-text’,
‘name’ => __( ‘Welcome Text’, ‘genesis’ ),
‘description’ => __( ‘This is the welcome text widget.’, ‘balance’ ),
) );/** Add the welcome text section */
add_action( ‘genesis_before_content_sidebar_wrap’, ‘custom_welcome_text’ );
function custom_welcome_text() {
if ( is_home() )
genesis_widget_area( ‘welcome-text’, array(
‘before’ => ”,
) );
}Something’s obviouly missing …
December 21, 2012 at 4:10 pm #6773Copy my code below and replace yours and try it again.
/** Add the welcome text section */
add_action( ‘genesis_before_content_sidebar_wrap’, ‘custom_welcome_text’ );
function custom_welcome_text() {
if ( is_home() )
genesis_widget_area( ‘welcome-text’, array(
‘before’ => ”,
) );
}
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 21, 2012 at 4:19 pm #6778I so much wanted this to work. Alas, the slider’s not coming back. This is the code I’ve got:
/** Register widget areas */
genesis_register_sidebar( array(
‘id’ => ‘welcome-text’,
‘name’ => __( ‘Welcome Text’, ‘genesis’ ),
‘description’ => __( ‘This is the welcome text widget.’, ‘balance’ ),
) );/** Add the welcome text section */
add_action( ‘genesis_before_content_sidebar_wrap’, ‘custom_welcome_text’ );
function custom_welcome_text() {
if ( is_home() )
genesis_widget_area( ‘welcome-text’, array(
‘before’ => ”,
) );
}I’ve had to upload the original functions.php file so many times and repeat the changes, perhaps there’s something wrong in the syntax.
December 21, 2012 at 4:24 pm #6779I see why it's not working - this stupid forum is stripping out part of the code. Where the last line says 'before' there is more code after that.Okay do it this way -
Grab Brian’s original code – that second part – then add this line after the functions line -
if ( is_home() )
then save it. The code will not copy in here. So just add that line of code to Brian’s original code.
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered posts-
This reply was modified 5 months, 4 weeks ago by
anitac.
-
This reply was modified 5 months, 4 weeks ago by
anitac.
December 21, 2012 at 4:27 pm #6782Go to my website, scroll to the bottom and send me an email. I’ll help you virtually via Join.me. This is nuts.
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 21, 2012 at 4:29 pm #6785See my training site – it works there – http://goo.gl/cb1Ru. So I should be able to fix it for you.
Need customization services or other help? Visit me here: Cre8tiveDiva.com | Twitter: @thecre8tivediva
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 21, 2012 at 4:32 pm #6789anitac, we’re almost there. See what I’ve got now:
I’m looking at your site in a minute
December 21, 2012 at 4:34 pm #6791anitac, perhaps you could send me a screenshot with the code. I don’t mind copying it out.
You see, another problem we’re having is that the apostrophes and quotes are wrong when I copy and paste them, so I keep having to change them.
-
This reply was modified 5 months, 4 weeks ago by
-
AuthorPosts
The topic ‘Slideshow below header – Balance theme’ is closed to new replies.