DISQUS

Bull3t's Blog: Editing the K2 WordPress theme - Bull3t's Blog

  • Tyler · 2 years ago
    Should work on Unwakeable too. I'm actually building in those sorts of icons into Unwakeable 2.0, which I hope to release by the end of May, but who knows. :)

    I like the category cloud a lot compared with a straight list of categories. Might be something I could add an option for in Unwakeable 2.0.

    Looks good Bull3t.
  • Bull3t · 2 years ago
    Yep, that would look nice, feel free to steal the tweaks that I made on K2 and implement them into Unwakeable, the category cloud is actually a plugin called Category Tagging, which makes a sexy cloud.
  • Tyler · 2 years ago
    One thing I've done in Unwakeable 2.0 that I notice you've done here is move the ratings and post views up to right under the post title when viewing a single post or page.

    I'd like to come up with a clean mimimalistic style for displaying that data but am having trouble. I think I like it how you have it, simple on the white background. Maybe I don't even need to worry about styling it now that I see it would look good simply white.

    Are you using sidebar modules from K2 or the WordPress Widgets? Or are you using a static sidebar.php file?
  • Bull3t · 2 years ago
    To get the ratings/views to show as if they are part of the theme I just simply copied the following code from theloop.php:

    <?php /* Tags */ if (is_single() and function_exists('UTW_ShowTagsForCurrentPost')) { ?>
    <span class="entry-tags"><?php _e('Tags:','k2_domain'); ?> <?php UTW_ShowTagsForCurrentPost("commalist") ?>.</span>
    <?php } ?>


    Pasted it underneath itself and then changed it to do the following:

    <?php /* Ratings */ if(function_exists('the_ratings')) { ?>
    <span class="entry-rate">Rating: <?php
    ob_start();
    the_ratings();
    $remove_divs = ob_get_contents();
    ob_end_clean();
    echo str_replace('div', 'span', $remove_divs); ?> </span> <?php } ?>


    Copied/pasted it again and changed it for the views:



    <?php /* Views */ if(function_exists('the_views')) { ?>
    <span class="entry-views"><?php the_views(); ?> </span> <?php } ?>


    Basically, where you can see that it says class="entry-rate" and class="entry-views" I simply opened up the K2 style.css file and copied the entry-tags style, changed it to suit the new images and location. Works a treat.

    If you would like me to email you the two files (theloop.php and style.css) I would be more than happy to do so.

    I use the K2 Sidebar Modules for my sidebar as it seems to be a hell of a lot easier and nicer looking.
  • modi · 1 year ago
    what's up...i NEED someone to help me edit my K2 theme!!! i need to change a bunch of things. like one, under my header, you can't see the tabs because they're white and so is the text. i need to change that! also, i want to change the color of the links to match the DC to BC logo / colors better. any ideas!? please email me... modi10 at gmail dot com. thanks a LOT.
  • Imran · 1 year ago
    wow these tweaks are very useful for me and these really helps me to learn something new from here.
    Thanks for sharing this buddy.
  • beztarj · 1 year ago
    Hi thank you. I am still learning with Wordpress and this is very helpful. Thanks!