WordPress.org

Ready to get started?Download WordPress

Forums

Coffee Cup SideBar (7 posts)

  1. DWilliams
    Member
    Posted 8 years ago #

    Question from a wordpress newbie here. I have installed Coffee Cup as my WordPress theme for my company. I made the recommended changes to the Sidebar & Functions.php to allow the widgets to be used. However when I activate the widgets the sidebar loses the header 'look'. I have provided links to the 'desired' version and what my site looks like.

    Desired look: http://hlcmarketingcorner.com/coffeecup.jpg
    Current Look: http://hlcmarketingcorner.com/HLCMarket.jpg

    I liked the way the categories header is seperated from the subcategories (the color and general look) Once I turn on the widgets code, it kind of blows out.

    Any help or suggestions would be much appreciated.

    Thanks
    Dan

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    Without being able to actually see the blog, it's extremely hard to say where you went wrong. A picture of the thing is nice and all, but the actual *code* on the page is far more useful.

    I took a look at the Coffee Cup theme and it appears to use standard UL/LI's for the sidebar, so I don't really know how you could have went wrong there. And without looking at the blog itself or the code you used in the sidebar.php, there's no way to figure it out.

  3. DWilliams
    Member
    Posted 8 years ago #

    The site is http://www.hlcmarketingcorner.com. The site is passworded and I set up a temp account.
    Login: temp
    pass:temp

    And as far as the code itself, I just added the code that was suggested in the widget tutorial on automattic's page)

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    I can't get in with that username/password combo.

  5. DWilliams
    Member
    Posted 8 years ago #

    Sorry was test:test
    I got a bit ahead of myself and mistyped

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    Ahh. Okay, I think I see what the deal is. Let me guess... in your functions.php, you used this code:
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<div class="title">',
    'after_title' => '</div>',
    ));
    ?>

    Right?

    Try changing that to this:
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar();
    ?>

    That first bit of code is for use where your sidebar isn't an unordered list. However, the Coffee Cup theme's sidebar *is* an unordered list, with CSS to match. So the normal register_sidebar() code should work without modification.

  7. DWilliams
    Member
    Posted 8 years ago #

    Right on the Money. No other words. Thank YOU. Just saved me a ton of time. Like Fiesta? (www.hlchina.com) Heh I'd send you a set for helping on this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags