• Hi, Great theme I am enjoying thoroughly, congrats for the installation numbers.

    I’m looking for a way to add a paypal button to the content area of all of my posts at once (i have more than 3000..), doing it manually is not really an option.. underneath the share buttons widget for example, in provided link.

    Been through every possible plugins and widgets but to no avail. Anything I should know or do to achieve this? An existing code?

    Thanks in advance for the help.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Nik Smalin

    (@nik-smalin)

    Hi!

    You can add anything to all posts at once by editing single.php file or content-single.php which is located in template-parts folder

    If you need to add something to every post in list for example on category page, you can add this in file content.php which is also located in template-parts folder

    I recommend you to copy needed file to your child theme folder, so you will not lose your changes after theme update

    if you have some another post types and you need to add content only to posts, you can add this

    if ( get_post_type() == 'post' ) {
    	// add here any content you need
    	// this will display only in posts
    }

    Regards!

    • This reply was modified 3 years, 10 months ago by Nik Smalin.
    Thread Starter therabbitholewiki

    (@therabbitholewiki)

    Thanks so much for taking the time to write.
    I’ll just be honest, I am really a beginner, trying hard to do honor to your theme though.
    To make sure I get that right, all I need to do is
    1. add that string to the child theme’s single.php file or content-single.php

    2. Replace the first “//” with this (as is script code of the button copied from the inspector) :

    <p></p>

    3. what do I need to replace the second “//” with?

    Thank you so much if youre taking the trouble to help me with this

    Theme Author Nik Smalin

    (@nik-smalin)

    What is the first “//” and the second “//”? I don’t understand

    You can just paste your code anywhere you like without replacing anything,
    if you wanna paste somewhere inside <?php ?> you have to use
    echo '<p>example of your code</p>';

    Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Paypal button in content area for all posts at once’ is closed to new replies.