Help adding widget to footer
-
I am a novice at coding. I have only used WYSIWYG before, and now my company wants me to update our wordpress site.
I want to add a three columns to the footer.php, I found this article:
http://diythemes.com/thesis/rtfm/widgetized-fat-footer-three-columns/
and added the widget which now has this screen in my admin panel:
http://crankshaft.net/wp-content/uploads/widgetscreenshot.jpg
What is the code to insert the left right and middle widget menus into my footer.
they are already set to left justify and 33% in the css.
-
and put that where? in the footer.php?
I believe that goes in functions.php
It is doing something now….
popped up with three lines of test
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’?
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(); ?>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?
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="http://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' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html>So you deleted:
<?php dynamic_sidebar( 'Footer Widgets Left' ); ?>and the left sidebar still appears?
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:
http://crankshaft.net/wp-content/uploads/widgets-menu.jpg
and one of the footer in action:
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.
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!
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?
The topic ‘Help adding widget to footer’ is closed to new replies.