Slideshow below header – Balance theme

Community Forums Forums Design Tips and Tricks Slideshow below header – Balance theme

This topic is: not resolved

This topic contains 36 replies, has 4 voices, and was last updated by  AC 1 year, 11 months ago.

Viewing 15 posts - 16 through 30 (of 37 total)
  • Author
    Posts
  • #6703

    AC
    Blocked
    Post count: 7712

    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’ => ”,
    ) );
    }

    • This reply was modified 1 year, 11 months ago by  AC. Reason: add the update
    • This reply was modified 1 year, 11 months ago by  AC. Reason: add the update
    #6741

    mariafernandez
    Participant
    Post count: 27

    So 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?

     

     

    #6756

    AC
    Blocked
    Post count: 7712

    In 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() )

    #6759

    mariafernandez
    Participant
    Post count: 27

    Would 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.

     

    #6761

    AC
    Blocked
    Post count: 7712

    Yes, 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.

    • This reply was modified 1 year, 11 months ago by  AC.
    • This reply was modified 1 year, 11 months ago by  AC. Reason: correct typo
    • This reply was modified 1 year, 11 months ago by  AC.
    • This reply was modified 1 year, 11 months ago by  AC. Reason: correct typo
    #6766

    mariafernandez
    Participant
    Post count: 27

    I’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.

    #6769

    AC
    Blocked
    Post count: 7712

    Yes, 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.

    #6771

    mariafernandez
    Participant
    Post count: 27

    Anitac,

    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 …

    #6773

    AC
    Blocked
    Post count: 7712

    Copy 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’ => ”,
    ) );
    }

    #6778

    mariafernandez
    Participant
    Post count: 27

    I 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.

     

    #6779

    AC
    Blocked
    Post count: 7712

    `I 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.

    • This reply was modified 1 year, 11 months ago by  AC.
    • This reply was modified 1 year, 11 months ago by  AC.
    #6782

    AC
    Blocked
    Post count: 7712

    Go to my website, scroll to the bottom and send me an email. I’ll help you virtually via Join.me. This is nuts.

    #6785

    AC
    Blocked
    Post count: 7712

    See my training site – it works there – http://goo.gl/cb1Ru. So I should be able to fix it for you.

    #6789

    mariafernandez
    Participant
    Post count: 27

    anitac, we’re almost there. See what I’ve got now:

    http://www.spanish-bites.com/

    I’m looking at your site in a minute

     

    #6791

    mariafernandez
    Participant
    Post count: 27

    anitac, 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.

     

Viewing 15 posts - 16 through 30 (of 37 total)

The topic ‘Slideshow below header – Balance theme’ is closed to new replies.