Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-18-2009, 10:51 PM   #1
Extreme Warrior
 
csc4u's Avatar
 
Join Date: Jun 2006
Location: Belleville, Michigan, USA.
Posts: 31
Thanks: 4
Thanked 1 Time in 1 Post
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to csc4u
Arrow WordPress blog PHP help needed

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.

________________________
Brian Hawkins
Thats Right, I Said It!
csc4u is offline   Reply With Quote
Old 10-19-2009, 06:42 PM   #2
Advanced Warrior
War Room Member
 
promo_guy's Avatar
 
Join Date: Jul 2008
Location: UK by way of Cali
Posts: 786
Thanks: 443
Thanked 209 Times in 101 Posts
Default Re: WordPress blog PHP help needed

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

promo_guy is offline   Reply With Quote
Old 10-20-2009, 06:44 AM   #3
Extreme Warrior
 
csc4u's Avatar
 
Join Date: Jun 2006
Location: Belleville, Michigan, USA.
Posts: 31
Thanks: 4
Thanked 1 Time in 1 Post
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to csc4u
Default Re: WordPress blog PHP help needed

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

________________________
Brian Hawkins
Thats Right, I Said It!
csc4u is offline   Reply With Quote
Old 10-20-2009, 07:55 AM   #4
Advanced Warrior
War Room Member
 
promo_guy's Avatar
 
Join Date: Jul 2008
Location: UK by way of Cali
Posts: 786
Thanks: 443
Thanked 209 Times in 101 Posts
Default Re: WordPress blog PHP help needed

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!

promo_guy is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
blog, needed, php, theme, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 06:42 AM.