Viewing 15 replies - 16 through 30 (of 32 total)
  • Thread Starter Christopher411

    (@christopher411)

    and put that where? in the footer.php?

    I believe that goes in functions.php

    Thread Starter Christopher411

    (@christopher411)

    It is doing something now….

    popped up with three lines of test

    Thread Starter Christopher411

    (@christopher411)

    all centered in one column

    There you go…. The lines ‘test’ were added into the custom function inside of functions.php. At least we know the function is working and doing its job of displaying content in the footer using the wp_footer hook.

    What were after is the actual widget tho.

    Have you added something, text or something else to your ‘Footer Widget Left’ widget from within ‘Apperance > Widgets’?

    Thread Starter Christopher411

    (@christopher411)

    yes, custom menu and our company’s divisions
    and to middle I have added custom menu with other stuff
    and I want to do the same with the right.

    I took out the code
    <?php dynamic_sidebar( 'Footer_Widgets_Left' ); ?>

    from footer.php because I saw where it was linking to and it still displays… I then moved that section above the copyright info on the page which is where I want it… the code it is following is :

    <?php
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    ?>
    Thread Starter Christopher411

    (@christopher411)

    so right now the stuff I put in Left Footer is showing and your “test” stuff is showing

    but not the middle one or the right one

    So the left works, but center and right do not?

    What is the code you’re using the display the left widget, since you have taken out the code I provided?

    Thread Starter Christopher411

    (@christopher411)

    nothing…. here is the full footer code and a screen shot:

    <html>
    <body>
    	</div><!-- #content -->
    <?php
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    ?>
    
    <div id="footer">
    
            <p id="copyright">Copyright 2011 Crankshaft Machine Group</p>
            <p id="footer_links"><a href="contact/?autofill=Contact%20Us">Contact CMG</a> | CMG is a subsidiary of <a href="https://avisindustrial.com">AVIS INDUSTRIAL, INC</a>
    	</div>
    
    </div><!-- #wrapper -->
    
    <script type="text/javascript">
    
     var _gaq = _gaq || [];
     _gaq.push(['_setAccount', 'UA-24881820-1']);
     _gaq.push(['_trackPageview']);
    
     (function() {
       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js';
       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
     })();
    
    </script>
    </body>
    </html>

    https://crankshaft.net/wp-content/uploads/footwork.jpg

    So you deleted:

    <?php dynamic_sidebar( 'Footer Widgets Left' ); ?>

    and the left sidebar still appears?

    Thread Starter Christopher411

    (@christopher411)

    yes…. it seems that it is stacking all three (kinda) at the wp_footer() reference…

    Now it is showing up different… here are a couple screen shots… one of what I have in each of the widgets:

    https://crankshaft.net/wp-content/uploads/widgets-menu.jpg

    and one of the footer in action:

    https://crankshaft.net/wp-content/uploads/footer-menu.jpg

    I’m just confused how the widgets are being displayed if you’ve removed the code to display them. That’s why I’m having a hard time understanding where the center widget has gone too.

    Thread Starter Christopher411

    (@christopher411)

    ok, we are (possibly) talking about different things…. in the function code, I left it as you sent it to me….
    in the footer code I took out the <?php dynamic.. reference… it probably wasn’t supposed to be there in the first place… my bad.

    Oh yea, inside of the footer code thats ok. It shoulnd’t have been there.

    Woops! The issue is in:

    <?php dynamic_sidebar( 'Footer Widgets Center' ); ?>

    It should be:

    <?php dynamic_sidebar( 'Footer Widgets Middle' ); ?>

    As I missed, you named your widget middle not center. That is completely my mistake! Sorry about that!

    Thread Starter Christopher411

    (@christopher411)

    GREAT!!! it is working. I took out the “TEST” stuff you had in there and it is good….

    THANK YOU SOOO MUCH

    Could I add another column? It looks like I will have space and I will use it.

    Just copy the code from one above it and change the name?

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Help adding widget to footer’ is closed to new replies.