WordPress.org

Forums

Need help with a couple small tweaks (5 posts)

  1. Thorneishness
    Member
    Posted 6 years ago #

    Hihi! I'm a complete css dummy, (and sometimes I think I'm just too damned old to learn) but I've managed a few tweaks on this theme I'm in love with called DARK PLANET.(Post box background and type colors, font sizes in sidebar boxes)
    My blog is Thorne's World, and this is my first try at self hosting.
    1)I simply cannot figure out how to make my sidebar boxes include a return when necessary. (when the title is too long for one line). You can see how each link text overlaps the previous one.
    2) I would really like to move the black box below the main post title (I think it's "title.title" in the styles sheet) to the end of the post, rather than under the title. I would settle for just being able to move the "comments" link from the subtitle to the bottom of the post.

    Those are the small tweaks the solutions for which would earn you my undying gratitude and eternal devotion. Of course, I would wash the feet and drink the water of anyone who could walk me through the updating to 2.7 step by step.
    (Not really- just trying to express the full measure of my desperation! :-)

  2. stvwlf
    Member
    Posted 6 years ago #

    Hi

    for #1)

    in your stylesheet /wp-content/themes/{themename}/style.css,
    find this (line 182)

    .sidebar ul li a {
      background: url(images/sidebar_menu.gif) no-repeat left bottom;
      color:#63656D;
      display:block;
      height:22px;
      padding:0 0 2px 10px;
      text-decoration:none;
    }

    delete the line height:22px;
    in its place put margin-bottom: 12px;

    you can adjust the 12px, for example between 10px and 14px, to find the setting you like the most.

    2) as far as moving the black box, the easiest thing is probably if you post your source code file in a pastebin. Most likely the file that needs to change is /wp-content/themes/{themename}/index.php

    pastebin: http://wordpress.pastebin.ca/ post the URL back here

  3. Thorneishness
    Member
    Posted 6 years ago #

    Yippee! Your solution to 1) works perfectly! Thank you so much. I've used the bin to upload the indexphp file. The url is:
    http://wordpress.pastebin.ca/1381493

  4. stvwlf
    Member
    Posted 6 years ago #

    Hi

    For another thing, your style.css stylesheet is being loaded twice in your header.php file. If you can find the two calls to it, remove one of them.

    Make a copy of your current index.php and style.css so when you make these changes below, if they are not working correctly you can switch back to the original ones.

    The index.php that I changed is now here
    http://wordpress.pastebin.ca/1381514

    copy and paste from the bottom of that screen, where there are not line numbers, and make a new version of index.php and put it online.

    In style.css find this section

    #content .post .post-title .post-title-info {
      width: 584px;
      height: 52px;
      line-height: 26px;
      text-align: left;
      margin-bottom: 25px;
      background: url("images/post_title_info.gif") no-repeat;
      clear: both;
      margin-top: 15px;
    }

    Change the first line to this
    #content .post .post-title-info {

    I think with these two changes, the black box at the top of your posts will move down to the bottom.

    take care

  5. Thorneishness
    Member
    Posted 6 years ago #

    Hi, again.
    So I followed your instructions, and the box moved but it was off center and the links changed color to blue and purple, which I can't find in the stylesheet or anywhere else. I went ahead and reverted to the saved version.
    I'm thinking it looked strange without the subtitle black separator between the title and the post, anyway.
    Would it be possible to add a post footer like the subtitle and include comments there? I'm thinking it would be cool if the subtitle contained only author and category, and the footer contained #of comments and comment link.
    Am I being a huge pain-in-the-A$$?
    I really appreciate the help.
    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic