Hi.
Either method should work, but I would need to know what template you are using and where exactly you wish to display the signature: home page, single posts, pages, etc.
To upload the image, you can use the Media Library in your WP Admin Panel.
Cheers!
thanks dude. the media library techmnique came to me last night too, and i’m doing it now
i’m modifying the wooden manequin theme. i want the sig on all; posts
i’m using
Wooden Mannequin: Single Post (single.php
it didnt work. i’d rather not have to paste the url on every post. itd be nice if it was automatic
No pb. To insert the signature, place this code in your functions.php
file, before the last closing php tag, which looks like this: ?>
:
function custom_insert_my_signature($content) {
if ( is_single() ) {
$sig_url = 'insert URL to signature here';
$sig = '<div class="signature"><img src="'.$sig_url.'" alt="signature" /></div>';
$content .= $content.$sig;
}
return $content;
}
add_filter('the_content', 'custom_insert_my_signature');
You can then style the container and the image from your style.css
file.
To target the container:
.signature {
properties go here;
}
To target the signature:
.signature img {
properties go here;
}
Don’t forget to paste the URL of your signature in line 3 of the PHP code below.
Cheers!
SWEET. ONLY the image has a border or outline
Try this in your stylesheet (style.css
):
.signature img {
border: 0;
}
Cheers!
this is strange, the 0 border trick should work but it isn’t
Try this then:
.signature img {
border: 0!important;
outline: 0!important;
}
If that doesn’t work, could you please share a link to the page in question so I can take a look?
i haven’t started blogging yet lol
anyways
http://onscottsmind.com/
as u can see my sig has a border
The border seems to be coming from your style.css
file:
#content img, #contentwide img {
border: 1px solid #D0D0D0; /* delete */
float: left;
margin: 3px 10px 3px 0;
}
So you could delete the border property in those selectors. However, if you want to keep your borders in your images but remove them from your signature, do this:
#content .signature img, #contentwide .signature img {
border: 0!important;
}
thanks
i don’t think ill ever want borders anywhere 🙂
i commented out that line of code
/* works soo far
🙂
Glad to hear!
Just to make sure, you are also adding the closing comment tag, right? I mean: /* border: value */.
Please don’t forget to mark the thread as resolved whenever you can (right hand side of the page, “This topic is” drop-down box).
Cheers!