Community Forums › Forums › Archived Forums › Design Tips and Tricks › Balance Child Theme Graphic Problem
Tagged: Balance Child theme, graphic problem
- This topic has 5 replies, 2 voices, and was last updated 11 years, 3 months ago by nutsandbolts.
-
AuthorPosts
-
October 17, 2013 at 7:23 am #67150TeresaParticipant
Hi,
I asked for help with this a few days ago. I figure either the question wasn't understood or it got overlooked, so I'm going to try a different way.
My blog is: http://www.disenfranchiseddaughter.com
Every blog post and page ends with this graphic of my name: http://www.disenfranchiseddaughter.com/wp-content/uploads/2013/10/teresa-01.png followed by the words: To be continued. . .
I've been letting the most current post show in its entirety on the first page. Below that are the excerpts of the previous posts in two columns.
For some reason that I don't understand (and don't know how to fix), the graphic of my name is showing up in the post in the left-hand column (below the most current post).
Can someone tell me how to stop it from doing this? It isn't happening in the other posts - at least not so far.
Thanks so much.
Teresa
http://www.disenfranchiseddaughter.comOctober 17, 2013 at 12:36 pm #67174nutsandboltsMemberHi Teresa,
What code/method are you using to add the signature to the bottom of your posts? If you could paste that in, hopefully we can figure out what's causing it to display incorrectly in the grid.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 18, 2013 at 12:11 pm #67372TeresaParticipantHi Andrea,
I uploaded the signature graphic as a .png. Then at the end of the post, I just click on Add Media and choose the signature,
Attachment Display settings are Alignment: Left, Link to None, Full size: 107 x 39 then Insert into Post.
That's it.
Teresa
October 18, 2013 at 12:15 pm #67375nutsandboltsMemberHmm... That's really odd!
One thing you might try is adding the signature as a function so you don't have to add it manually to all your posts. (Depending on how many posts you have, you may not want to since you'd have to go back and take out the existing ones!) I use this on one of my own sites and I've never had trouble with the graphic showing up in the grid.
I added the following to functions.php (be sure to add your image URL):
//* Add signature to the end of each post add_filter('the_content','add_signature'); function add_signature($text) { global $post; if($post->post_type == 'post') $text .= '<div class="signature"> <img src="URL_TO_YOUR_IMAGE" alt="signature" /> </div>'; return $text; }
I also added the following in my stylesheet to give it a little breathing room:
/* Signature ------------------------------------------------------------ */ div.signature img { padding: 5px; }
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 18, 2013 at 5:45 pm #67471TeresaParticipantThanks, Andrea. I'm going to keep this for future reference.
Oddly enough, Robin picked up the original cry for help and offered a suggestion about the Grid Loop.
Adding a zero to the code fixed the problem.
So now I have 2 options 🙂
Thank you for you help.
Teresa
October 18, 2013 at 5:45 pm #67472nutsandboltsMemberAwesome! So glad you got it resolved. 🙂
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+ -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.