WordPress blog PHP help needed

by csc4u
3 replies
  • WEB DESIGN
  • |
Anyone know how I can get the full blog titles to wrap in my recent posts section on the index page of my WordPress blog theme? See my profile link.

I would also like to get a space or line between the popular posts links.

I would even consider paying a small fee to the right person to go in and make the fixes.
#blog #needed #php #theme #wordpress
  • Profile picture of the author promo_guy
    Hi Brian,

    This one is a bit of a challenge. But, since I see you're using an ElegantThemes theme I happen to have that one lol.

    Not sure if I have all the answers here but in terms of adding a bit of space and a small grey line (for example) between each "popular posts" you could try adding this to your CSS:

    #home-right ul li {
    padding:5px 0px 5px 0px;
    border-bottom:1px solid #CDCDCD;
    }

    See if that helps. But, it will also add a line under your "recent comments" too. If it doesn't work, simply delete it. I'm better at messing with CSS if I can do it directly but give that a try.

    The tough part was the "recent posts" titles being truncated with the ...

    I finally found the culprit. Go to your theme folder, then "includes" folder, then newsstyle.php. Look for:

    <h2 class="titles"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('', '...', true, '30') ?></a></h2>

    Try changing this to:

    <h2 class="titles"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title() ?></a></h2>

    You can see the '...' and I believe 30 pertains to the maximum character length but I'm not a programmer, just a php hacker lol.

    Anyway, if that doesn't work, be sure to replace the code back to the way it was and either I can have a look at it further (if you want) or ask someone better at php.

    Hope that helps

    Scott
    {{ DiscussionBoard.errors[1296433].message }}
  • Profile picture of the author csc4u
    Scott, you are my hero! I've had that theme up for a while and those two issues have been bothering me bad. I actually have comments on my blog from people asking me to fix that. Your fixes totally worked. Thank you so much, I truly appreciate it, Brian
    {{ DiscussionBoard.errors[1297865].message }}
  • Profile picture of the author promo_guy
    Hi Brian,

    Hey, that's awesome! lol

    It was late here and I wasn't sure if my code would work but I'm such a stubborn guy and thought, "I've got this theme, I'm gonna figure it out"

    Anyway, glad that worked and I could be of help. I agree with you, it makes more sense to have the full url in the post title.

    Have fun mate!
    {{ DiscussionBoard.errors[1298031].message }}

Trending Topics