-
AuthorPosts
-
October 14, 2015 at 5:07 pm #518816
Hello!
On the blog at http://people-plan.com/blog/, I want to add a “signature” at the end of each blog. Instead of typing it in to each post, is there a tag I can put somewhere?
Thank you!
October 14, 2015 at 5:12 pm #518818Hey southall!
You could try adding it after line 201 in the /enfold/includes/loop-index.php file. Surround it with this if you do not want it to display on the single post view.
if ( !is_single() ) { }Regards,
ElliottOctober 14, 2015 at 5:20 pm #518831That is working :( the page goes black.
I do want to put the signature on each blog post. Any other suggestions?
October 14, 2015 at 10:16 pm #518952Hey!
What is the code your using?
Regards,
ElliottOctober 15, 2015 at 5:37 pm #519443on line 202, i added
if ( !is_single() ) { my content here}
then half the screen went black when i refreshed website.
October 15, 2015 at 7:30 pm #519509Hey!
Yes but what is the actual code your using?
Best regards,
ElliottOctober 15, 2015 at 9:17 pm #519570I used the code that I pasted in the last message.
if ( !is_single() ) { my content here}
is that not correct? Lol, sorry for the confusion!
October 16, 2015 at 10:07 am #519744Hi,
Try the following instead:
if ( !is_single() ) { ?> <p> Your signature </p> <?php }Thanks,
Rikard-
This reply was modified 10 years ago by
Rikard.
October 20, 2015 at 5:24 pm #521865thanks!
October 20, 2015 at 10:25 pm #522045Could you show me where I can put this code so the signature comes up on the individual blog and not on the excerpt page?
Thank you!!
October 21, 2015 at 8:57 am #522178Hey!
Replace the code with this:
if ( is_single() ) { ?> <p> Your signature </p> <?php }We replaced !is_single with is_single. https://codex.wordpress.org/Function_Reference/is_single
Cheers!
IsmaelOctober 22, 2015 at 3:29 pm #523039perfect, thanks!
-
This reply was modified 10 years ago by
-
AuthorPosts
- The topic ‘Adding "signature" to blog posts’ is closed to new replies.
