imasharpone
Forum Replies Created
-
Forum: Plugins
In reply to: Contact form 7 date/time in emailsHey rmx101, did you ever find an answer to your ID # question? I have the need for that exact thing as well.
Forum: Themes and Templates
In reply to: How to move sidebar downPerfect. Thanks esmi 🙂
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarWill do. Thanks again. And for goodness sakes, go get some sleep 🙂
–Ima Sharpone
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarWow man, thank you so much. Looks perfect now. I did purposely put the header at 70% because if I didn’t the right sidebar ends up sitting on top of it but I’m sure I can push it down some so we don’t have that problem.
So, do you have paypal…I think I owe you 🙂
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarIt does, but if you hover over the the left sidebar and move the mouse the sidebar scrolls within itself. Perhaps it has a fixed height and I need to make that bigger?
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarWow, you rock man. I set it all up per your instructions and it looks great. One question though: where do I tell the left sidebar to not scroll? I know we’ve been through this before but under the sliding-navigation part if I set it to anything but relative the whole left sidebar disappears. The whole thing does move up and down like the right sidebar, but then if you hover over it and scroll it scrolls within the sidebar.
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarKind of. Does that mean I should change the original sidebar to be “sc_menu1”?
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarThat is what I have in for my 2nd sidebar. Here’s my full sidebar2.php :
‘<div class=”widgetbar”>
<div class=”sc_menu2″>-
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(2) ) : ?>
<?php endif; ?></div>
</div>
‘Forum: Themes and Templates
In reply to: How to widgetize a second sidebarSorry, I meant to put that in my last post that I did add a number of widgets to sidebar 2 but it still isn’t showing up. There’s a whole part in style.css that is for size and placement of the first sidebar. Do we need to add another one for sidebar 2?
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarNo sense in killing yourself buddy, I know I can’t function very well on only 3 hours of sleep 🙁
Ok, I can’t remember at this point exactly how I figured it out but here’s what I ended up putting in my functions.php file:
‘if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘sidebar1’,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
));if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘sidebar2’,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
));
‘Then I added them to the index.php file. They both show up on the widgets page, and sidebar1 shows up as it had before, but sidebar2 isn’t showing up, I’m supposing because I have to write into style.css where and how to display it. That’s where I’m stuck.
Oh, and on a side note, even though I’ve removed the sidebar.php file, it is still listed and can be edited in the editor page. Strange…
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarAya! Ok, here’s how I managed to make it work, sort of: I went back to that site you referenced before about adding a sidebar. I replaced the “if register_sidebars” function in my functions.php file with the one from that site. Then I added the two separate sidebar files as per your instructions above, and now when I go to the widgets page on my dashboard, both sidebars show up. But, the only problem is now they don’t show up on the actual site itself. Seems I read about someone else having that problem before.
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarI don’t know man, I think it has to do with the functions.php file because that’s the error I keep getting. It keeps pointing at the last line of the file telling me it has an unexpected $end. Here’s what my functions.php file looks after I’ve modified it:
‘<?php
//Custom Theme Settings
if ( function_exists(‘register_sidebars’) ) {
register_sidebars(1, array(
‘name’ => __( ‘Primary Sidebar’),
‘description’ => __( ‘Area One Primary Sidebar’ ),
‘before_title’ => ”,
‘after_title’ => ”,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ”
) );register_sidebars(1, array(
‘name’ => __( ‘Secondary Sidebar’),
‘description’ => __( ‘Area Two Secondary Sidebar’ ),
‘before_title’ => ”,
‘after_title’ => ”,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ”
) );add_theme_support( ‘automatic-feed-links’ );
register_nav_menus( array(
‘primary’ => __( ‘Primary Navigation’, ‘valentine’ ),
) );if ( ! isset( $content_width ) ) $content_width = 640;
if ( is_singular() ) wp_enqueue_script( “comment-reply” );
add_theme_support( ‘post-thumbnails’ );
?>’
I don’t understand what’s wrong with the last line. If you start the file with <?php you have to end it with ?>. It has to be something in those two register sidebars functions because that’s the only thing I’ve changed from the original functions.php.
Sorry if I’m blatently doing something wrong, web coding obviously isn’t my strong point.
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarOk, so here’s what I did: I created a sidebar1.php file and put the code in for the dynamic sidebar(2) you put above. I edited the original sidebar file per your instructions above. When I put the code in my functions.php file from above, I modified it to say “register sidebar” in all three locations rather than to start the if function with “register sidebar” then the next two statements to say “register sidebars”. And here’s the kicker: It works fine for about two minutes, meaning I can navigate through the editors along with the different pages on my dashboard, but then I get the same error as above and have to go back to my original functions.php file.
I’m kind of at a loss here. I don’t know why it only works for two minutes (not to mention when I go to the widgets page the second sidebar doesn’t show up). I didn’t see an extra endif anywhere but I think that if I change my functions.php file and that crashes it and all goes back to normal when I revert, something in that code intended for my functions.php file is wrong. I could post my functions.php file if you wanted but it’s completely unaltered from the way it came with the theme.
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarSo after I update the functions.php file per the above instructions, I get thr following error:
Parse error: syntax error, unexpected $end in D:\Hosting\7241839\html\wp-content\themes\valentine\functions.php on line 36
Line 36 is just “?>”. I’m assuming this has something to do with your comment about making sure that endif is closed properly. Most of my programming experience is with lisp which doesn’t require endif statements so I’m a little lost as to what exactly I should put in there.
Forum: Themes and Templates
In reply to: How to widgetize a second sidebarThanks, but inside my functions.php, there is no number after register_sidebar. My code looks like this:
‘if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
));
‘
along with a bunch of other code. Do I change this code or do I add a second sidebar somewhere that this code is looking to?