Christopher411
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Help adding widget to footerGREAT!!! 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?
Forum: Fixing WordPress
In reply to: Help adding widget to footerok, 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.Forum: Fixing WordPress
In reply to: Help adding widget to footeryes…. 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:
Forum: Fixing WordPress
In reply to: Help adding widget to footernothing…. 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>
Forum: Fixing WordPress
In reply to: Help adding widget to footerso 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
Forum: Fixing WordPress
In reply to: Help adding widget to footeryes, 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(); ?>
Forum: Fixing WordPress
In reply to: Help adding widget to footerall centered in one column
Forum: Fixing WordPress
In reply to: Help adding widget to footerIt is doing something now….
popped up with three lines of test
Forum: Fixing WordPress
In reply to: Help adding widget to footerand put that where? in the footer.php?
Forum: Fixing WordPress
In reply to: Help adding widget to footerForum: Fixing WordPress
In reply to: Help adding widget to footerNow we are getting somewhere!…. I am getting an error
Fatal error: Call to undefined function thesis_default_widget() in…..
Forum: Fixing WordPress
In reply to: Help adding widget to footerI am learning the hard way that everything is built on what has come before so grabbing some snip-it doesn’t work so well… so without the theme and css and widget and plug in and whatever configuration it doesn’t work.
What I want is to setup a footer similar to one at the bottom of this page.
Forum: Fixing WordPress
In reply to: Help adding widget to footerno, like I said I am a novice and just tried grabbing code to accomplish what I needed. We already have the site up with the theme whoever started the site for us used.
Is there some other way to accomplish it?
Forum: Fixing WordPress
In reply to: Help adding widget to footerI added this to themes:
add_theme_support( 'post-thumbnails'); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Footer Widgets Left', 'before_widget' => '<li class="widget %2$s" id="%1$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>' )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Footer Widgets Middle', 'before_widget' => '<li class="widget %2$s" id="%1$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>' )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Footer Widgets Right', 'before_widget' => '<li class="widget %2$s" id="%1$s">', 'after_widget' => '</li>', 'before_title' => '<h3>', 'after_title' => '</h3>' )); function my_widgetized_footer() { ?> <div id="footer-widget-block"> <div class="my-footer-one footer-widgets sidebar"> <ul class="sidebar_list"> <?php thesis_default_widget(3); ?> </ul> </div> <div class="my-footer-two footer-widgets sidebar"> <ul class="sidebar_list"> <?php thesis_default_widget(4); ?> </ul> </div> <div class="my-footer-three footer-widgets sidebar"> <ul class="sidebar_list"> <?php thesis_default_widget(5); ?> </ul> </div> </div> <?php } add_action('thesis_hook_footer','my_widgetized_footer','1');
and this to the css:
.custom #footer-widget-block { text-align:left; overflow:hidden; } .custom .footer-widgets { width:33%; float:left; } .custom .my-footer-one {} .custom .my-footer-two {} .custom .my-footer-three {}
Forum: Fixing WordPress
In reply to: Help adding widget to footerI added:
<?php the_widget( ‘Footer_Widgets_Left’ ); ?>
<?php the_widget( ‘Footer_Widgets_Middle’ ); ?>
to the body of the footer and nothing happened.