Tagged: , ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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!

    #518818

    Hey 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,
    Elliott

    #518831

    That is working :( the page goes black.

    I do want to put the signature on each blog post. Any other suggestions?

    #518952

    Hey!

    What is the code your using?

    Regards,
    Elliott

    #519443

    on line 202, i added

    if ( !is_single() ) { my content here}

    then half the screen went black when i refreshed website.

    #519509

    Hey!

    Yes but what is the actual code your using?

    Best regards,
    Elliott

    #519570

    I 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!

    #519744

    Hi,

    Try the following instead:

    if ( !is_single() ) { ?>
    <p>
    Your signature
    </p>
    <?php }

    Thanks,
    Rikard

    • This reply was modified 9 years, 2 months ago by Rikard.
    #521865

    thanks!

    #522045

    Could 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!!

    #522178

    Hey!

    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!
    Ismael

    #523039

    perfect, thanks!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Adding "signature" to blog posts’ is closed to new replies.