How To Add Content Above Footer WIDGET Area???

Community Forums Forums Design Tips and Tricks How To Add Content Above Footer WIDGET Area???

This topic is: not resolved

This topic contains 9 replies, has 2 voices, and was last updated by  anotherusername 1 year, 2 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #61670

    anotherusername
    Participant
    Post count: 98

    Hi all,

    How do you add content above the footer WIDGET area on the home page? (WP 3.6, Genesis 2.0.1, Agency Theme)

    I DON’T mean above the FOOTER area.

    I mean above the footer WIDGET area. Specifically, the area BELOW the “inner” div but ABOVE the three widgets in columns.

    Nick from Studiopress support said that:

    “You will have to use the genesis_before_footer hook with a priority of less than 5.”

    Anyone know how to do that???

    He also said that I have to ask that question HERE in the forum (since he said they (studiopress) don’t offer support for template changes.

    Thanks in advance.

    ~~~~~

    If you aren’t sure, then I want to put it above the three columns that say, “Get A Free Tranquility MP3,” “Contact US” and “Your Privacy And Rights”

    http://www.graceplacewellness.ca/

    http://www.graceplacewellness.ca/
    #61673

    anotherusername
    Participant
    Post count: 98

    To maybe makes this easier:

    What code would I need if I just wanted to move the genesis_before_footer hook so that it appears above the footer widgets?

    Thanks.

    (Not trying to bump, just that I was too late to edit my original post.)

    #61690

    braddalton
    Participant
    Post count: 10563

    Try this in your child themes functions file

    You could also change the div class in the code to the same as any existing widget if you want to style it the same way.


    #61696

    anotherusername
    Participant
    Post count: 98

    Hi there, Brad:

    Thanks so much for the code. It seems to do just what I want!!!

    Just in case I decide I DO want to have that new widgetized area on ALL my pages, do I just need to remove the is_home conditional???

    Do I just leave the rest the same and change the function before_footer_widget to:

    function before_footer_widget() {
    echo '<div class="before-footer">';
    dynamic_sidebar( 'before-footer' );
    echo '</div><!-- end #before-footer -->';
    }

    Or do I need to modify it some other way?

    #61713

    braddalton
    Participant
    Post count: 10563

    Hi

    Yes. Simply remove the conditional tag:

    Pro Tip: If you use the same classes in the widget PHP, you can style your custom widget area the same as any existing element without adding any CSS to your style sheet.


    #61733

    anotherusername
    Participant
    Post count: 98

    Thanks again for the assist!!!

    #61798

    anotherusername
    Participant
    Post count: 98

    Hi again, Brad:

    I just realized that on the Home page the first of the widgets in the footer widget area is NOT showing.

    For instance, there is no “Get A Free Tranquility MP3″ on the home page here:

    http://www.graceplacewellness.ca/

    But there is one showing up on other pages:

    http://www.graceplacewellness.ca/hypnotherapy-programs/

    I still DO have the home page conditional (so that before_footer_widget function is ONLY being called on the home page.

    When I look at the source code for where the first footer widget SHOULD be, it is only giving an empty div:

    <div class=”footer-widgets-1 widget-area”></div>

    Any suggestions???

    #61840

    braddalton
    Participant
    Post count: 10563

    Did you add any CSS code for styling the home page? IT may have something to do with that.

    I tested the code and it works.


    #61938

    anotherusername
    Participant
    Post count: 98

    Brad:

    I am sorry, it looks like it might be something else causing the problem. I just removed that script you gave me and for some reason the problem remains, so I am guessing must be something else.

    ~~~~ IGNORE THIS PART OF POST BELOW THIS LINE FOR NOW ~~~~~~

    Hi there, Brad:

    Yes, I have added a bit of CSS code for the home page.

    is there something SPECIFIC I should look for in the CSS that might interfere with it working correctly? (It’s going to be a little hard for me to undo the CSS changes…)

    ~~~~

    I do think that it probably is NOT related to CSS though, since the content of the first footer widget is not being echoed to the screen at all.

    To explain what I mean, on pages OTHER than the home page, here is what is echoed to the screen (when viewing the source code):

    <div id="footer-widgets" class="footer-widgets">
    	<div class="wrap">
    		<div class="footer-widgets-1 widget-area">
    			<div id="text-5" class="widget widget_text">
    				<div class="widget-wrap">
    				<h4 class="widget-title widgettitle">Get A Free Tranquility MP3</h4>
    					<div class="textwidget">Designed to help you find peace, this free Tranquility MP3 Recorded by Grace Jourbarne is yours for the asking.
    					</div>
    				</div>
    			</div>
    		</div>

    However, on the home page, this is what is echoed to the screen:

    <div id="footer-widgets" class="footer-widgets">
    	<div class="wrap">
    		<div class="footer-widgets-1 widget-area">
    		</div>

    So you can see there is a closing </div> tag right after the opening <div class=”footer-widgets-1 widget-area”> .

    On the home page, the <div class=”widget-wrap”> and the <div class=”textwidget”> never even get echoed to the screen.

    ~~~~

    Again, if you think for sure it is a CSS problem, it would be greatly appreciated if you had any guesses what exactly to look for in the CSS.

    ~~~~ END IGNORE TEXT AREA ~~~~~~

    #61948

    anotherusername
    Participant
    Post count: 98

    Ok, I’m an idiot…

    Forgot that I had installed the widget context plugin and accidentally selected for it NOT to display the footer 1 widget on the home page… Doh!!!

    That’s what happens when you get “Plugin Fever”

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

You must be logged in to reply to this topic.