blairm
Forum Replies Created
-
Forum: Plugins
In reply to: Deactivated a plug-in and now my blog has disappearedOkay…..I just had to replace the functions.php that had code for sidebar widgets with the original functions.php file. All the admin pages are back now. Only the blog header is showing up, but I think that’s a different problem with my sidebar.php file. whew….
Forum: Plugins
In reply to: Using sidebar widgets in multiple sidebarsThanks for clearing that up, JohnnySpade. I left out the unnecessary code and just added the following code to functions.php
<?php if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'sidebar1', )); register_sidebar(array('name'=>'sidebar2', ));That gives me two sidebars under Sidebar Widgets in the presentation menu.
Then when I add
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar1') ) : ?>
to the left sidebar it shows up correctly. If I leave
<?php endif; ?>in, everything but the header disappears.
Also, when I try to activate the second sidebar, using
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar2') ) : ?>
everything but the header disappears.
Can anyone tell me why this second sidebar won’t work?
Thanks again , everybody, for the help.Forum: Plugins
In reply to: Using sidebar widgets in multiple sidebarsThanks for the suggestion, Johnnyspade, yes I think you understand what I am trying to do (multiple sidebars that use sidebar widgets). However, I tried using the code you suggested and messed the files up again- everything disappeared except the header.
I’m a little confused as to what the following code is for'before_widget' => '<div id="%1$s" class="side-c %2$s">', // Removes <li> 'after_widget' => '</div>', // Removes </li> 'before_title' => '<h3>', // Replaces <h2> 'after_title' => '</h3>', // Replaces </h2>I don’t have anything like that in the code I used to get the sidebar widgets working in the one sidebar I have where they do work. Is this part of the code necessary?
Thanks again, everybody, for the helpForum: Plugins
In reply to: Using sidebar widgets in multiple sidebarsI have two different files for the sidebars- sidebar.php and sidebar2.php
Sidebar2.php is the widget sidebar with the following code<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>It worked before and has continued to work after I changed the code in the function.php file.
Sidebar.php defines the current, non-widget sidebar. It seems most two column themes have code for the sidebars all in one file. Would doing this help? I might give it a try.
Thanks for your help, MichaelH and Otto42Forum: Themes and Templates
In reply to: White space between post text and navigationthanks for the pointers. I’m pretty new to all of this, but tackling the errors in the code makes more sense than just looking for the solution to a single problem.
thanks againForum: Themes and Templates
In reply to: Separate style sheet for internet explorerWow, that seems to have worked. Now I can start tackling all my IE issues!
Thanks drmike