Content locking individual Wordpress posts

3 replies
I'm normally fairly tech savvy, so I'm a little embarrassed here...

I'm trying to install incent.ly's content locker on some wordpress posts,
and somehow can't get it to work.

It's directions read,
Add this section of code to the bottom of your page (right before the </body> tag).

So, I thought I could just paste the code in the html "text" view of the post. But that does nothing.

Where do I paste the script code?

Much appreciated
#content #incent #incent.ly #individual #locking #posts #wordpress
  • Profile picture of the author Nuutero
    Are you 100% sure it said </body> tag? Usually the javascript for content lockers is inserted just before the </head> tag. Could you post the script here.
    Signature
    The simple things and subtleties they always stay the same
    I don't mind, that I don't mind, no, I don't mind the rain
    Like a widow's heart
    We fall apart
    But never fade away
    {{ DiscussionBoard.errors[8355366].message }}
  • Profile picture of the author vask
    Originally Posted by Devin2290 View Post

    It's directions read,
    Add this section of code to the bottom of your page (right before the </body> tag).

    So, I thought I could just paste the code in the html "text" view of the post. But that does nothing.

    Where do I paste the script code?
    You can download this plugin and insert the code through your dashboard without going into your files.

    But if you really want to insert it manually then you can navigate to your theme folder (e.g. ../wp-content/your-theme/) then find index.php and paste your javascript code right before <?php get_footer(); ?>

    You can also try and insert your code into your header.php, which is located in the same folder as your index.php. But this might activate the content locking on your entire website.

    Sorry if that was confusing, good luck!
    {{ DiscussionBoard.errors[8355471].message }}
  • Profile picture of the author ChrisBa
    Originally Posted by Devin2290 View Post

    I'm normally fairly tech savvy, so I'm a little embarrassed here...

    I'm trying to install incent.ly's content locker on some wordpress posts,
    and somehow can't get it to work.

    It's directions read,
    Add this section of code to the bottom of your page (right before the </body> tag).

    So, I thought I could just paste the code in the html "text" view of the post. But that does nothing.

    Where do I paste the script code?

    Much appreciated
    I believe you would need to edit the templates files (under appearance > editor), which could be difficult depending on the setup of your site
    {{ DiscussionBoard.errors[8356501].message }}

Trending Topics