• Hello beautiful and helpful people!

    I’m going to guide a client’s customers onto Facebook, to comment and discuss his blog-posts written on his website.
    I want to make it easy for him. Because of that I want to make a text with “To comment or discuss this post, visit my Facebook page (Facebook logo with link)” or something like that. This should automatically be added when he writes a blog-post and be displayed below the text, so he doesn’t have to do it every time himself.

    I know how to write the code to generate this, but I have no idea and can’t find the place where to add this, so it will appear automatically below each blog’s text. I have looked through the documents in the Customize > Editor but can’t seem to find that perfect spot.

    Is this possible? I’d imagine to add this code where WordPress generates the blog-text, and make it throw my code in every time too.

    Thank you for your time, beauty, and help on forehand. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have never tried that, but I would suspect the simplest way might be to add it to a Child Theme page template right after <?php the_content(); ?> or whatever.

    Thread Starter Olizandrey

    (@olizandrey)

    Now, the WordPress Divi Theme supports this, with a field where you can enter the code which should show up on every post. Easy ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I add default code to a blog post?’ is closed to new replies.