need 5 footer widget

Community Forums Forums Design Tips and Tricks need 5 footer widget

This topic is: resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Pinky 1 year, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28472

    toni.gomes
    Participant
    Post count: 20

    I have 3 footer widgets but i want to put 5 footer widgets please give me the code and let me how to put it in details

    thank you

    #28518

    braddalton
    Participant
    Post count: 9789

    You can grab all the code from the child themes functions.php and style.css file.

    Use a text editor like Notepad++ to search and find using the word widget.


    #28531

    Pinky
    Participant
    Post count: 95

    In your functions.php file (take a backup first), then add this code:

    [php]
    /** Add support for 3-column footer widgets */
    add_theme_support(‘genesis-footer-widgets’, 3 );
    [/php]

    You’ll then need to edit your style.css to make them line up properly.

    If you give us a link to your site or tell us which theme you are using it will help.


    cheers

    Pinky

    #28542

    toni.gomes
    Participant
    Post count: 20

    http://www.krishnatorque.com

    i am using  news theme.

    actually i do not know where and which code i have to edit. so please give me both code for functions.php and style.css.

    thank you

    #28697

    Pinky
    Participant
    Post count: 95

    In your functions.php file you need to change this:

    [php]
    /** Add support for 3-column footer widgets */
    add_theme_support( ‘genesis-footer-widgets’, 3 );
    [/php]

    to this:

    [php]

    /** Add support for 5-column footer widgets */
    add_theme_support( ‘genesis-footer-widgets’, 5 );
    [/php]

    Then in your style.css go to line 1611 change this:

    [php]
    .footer-widgets-1 {
    float: left;
    margin: 0 20px 0 0;
    width: 295px;
    }

    .footer-widgets-2 {
    float: left;
    width: 290px;
    }

    .footer-widgets-3 {
    float: right;
    width: 295px;
    }
    [/php]

    to this:

    [php]
    .footer-widgets-1 {
    float: left;
    margin: 0 2% 0 0;
    width: 18%;
    }

    .footer-widgets-2 {
    float: left;
    margin-right: 2%;
    width: 18%;
    }

    .footer-widgets-3 {
    float: left;
    margin-right: 2%;
    width: 18%;
    }
    .footer-widgets-4 {
    float: left;
    margin-right: 2%;
    width: 18%;
    }

    .footer-widgets-5 {
    float: right;
    width: 18%;
    }
    [/php]

    then on line 2427 and below this:

    [php]
    .footer-widgets-1,
    .footer-widgets-2,
    .footer-widgets-3,
    [/php]

    add this

    [php]
    .footer-widgets-4,
    .footer-widgets-5,
    [/php]

    That should do the trick!


    cheers

    Pinky

    #29108

    toni.gomes
    Participant
    Post count: 20

    its work

    thank you

    thank you

    thank you

    #29147

    Pinky
    Participant
    Post count: 95

    hehe don’t ya just love it!

    I’m glad it worked out for you!


    cheers

    Pinky

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.