• Resolved collectivelyme

    (@collectivelyme)


    Hi,

    I would like to add some static text to my posts. So that I don’t have to write it every time I create a new post.

    I want to be able to click add new post & this “static text” is already there ready to go, & I just start writing my post content under it.

    The text I want to add is:
    “I may receive commissions for purchases made through this blog post. For more information, you can read my Disclosure Policy.”
    With a link attached to the “Disclosure Policy” text. The link being:
    https://collectivelyme.net/home/privacy-disclosure-policies/

    I also want to add my signature image & email sign up form to the bottom of the post, so again I don’t have to add it every time.
    – If you want to receive more posts like this you can join the gang by filling out the signup form below!
    [mc4wp_form id=”289″]
    https://collectivelyme.net/about-me/signature/

    If you could point me in the direction of a plugin that will do this or some custom CSS I’d greatly appreciate it.

    Thank you.

    M.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,
    you could open single.php (posts template) and add before
    <?php the_content(); ?>
    your policy text like this
    <p>I may receive commissions for purchases made through this blog post. For more information, you can read my <a href="https://collectivelyme.net/home/privacy-disclosure-policies/">Disclosure Policy.</a></p>

    and after your signup form like this

    <p>
     If you want to receive more posts like this you can join the gang by filling out the signup form below!
    <?php echo do_shortcode('[mc4wp_form id="289"]'); ?>
    – <a href="https://collectivelyme.net/about-me/signature/">https://collectivelyme.net/about-me/signature/</a>
    </p>

    Navigate to Appearance->Editor and then navigate to the /themes/olsen-light/ folder to find the file.

    Thread Starter collectivelyme

    (@collectivelyme)

    Worked perfectly!

    Thanks Fotis.

    Glad I could help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Static text to Post Template’ is closed to new replies.