Custom Footer Outside of #Wrap

Community Forums Forums Design Tips and Tricks Custom Footer Outside of #Wrap

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  flyingorange 1 year, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40691

    flyingorange
    Participant
    Post count: 19

    Hello all! Been at this for awhile but I think maybe it’s a Monday so brain is still on weekend time.

    Trying to move the footer outside of the #wrap AND use a custom footer.

    Have so far used the following in my functions.php file:

    `// Custom Footer Layout
    remove_action(‘genesis_footer’, ‘genesis_do_footer’);
    add_action( 'wp_footer', 'genesis_do_footer' );`
    add_action('genesis_footer', 'do_custom_footer');
    function do_custom_footer() {
    require(CHILD_DIR.'/custom-footer.php');
    }`

    I think I am not applying enough actions or confusing it because while I can remove the Footer, then I tell it I want one that is custom. I can get the custom footer to show BUT it stays within the wrap which is why I added "`add_action( 'wp_footer', 'genesis_do_footer' );`"

    Any help?

    • This topic was modified 1 year, 4 months ago by  flyingorange.

    • This topic was modified 1 year, 4 months ago by  flyingorange.
    #40694

    braddalton
    Participant
    Post count: 9959

    You can hook in the footer anywhere there’s a hook.


    #40696

    flyingorange
    Participant
    Post count: 19

    I realize that but the problem is I’m not getting it do what I need it to do.

    I need a custom footer outside of the #wrap.

    I can get the custom footer or I can remove the footer from the #wrap but I haven’t been able to get the two to accomplish at the same time.

    #40704

    flyingorange
    Participant
    Post count: 19

    Figured it out – stepped away for 30 minutes and magically worked.

    #40715

    braddalton
    Participant
    Post count: 9959

    hahaha. That’s funny because sometimes it takes 3 days for CSS changes to show on my site.

    Aggressive server side caching of CSS files can cause this.


    #40861

    flyingorange
    Participant
    Post count: 19

    It actually wasn’t the CSS not showing. It was trying to get the hooks to work right.
    I took a break after messing with it, sat down, coded it and voila worked.

    Testing on my own server usually doesn’t give me CSS issues. I gave up long ago testing on an outside server.
    Bad enough when I switch a client over to a new server and can’t see the domain resolve right away without doing some backend work on the system to force it.

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

You must be logged in to reply to this topic.