Where do I add code to wordpress to content lock all posts?

macaveli92

Junior Member
Joined
May 20, 2012
Messages
142
Reaction score
34
Is it even possible to content lock all posts in wordpress by adding the code somewhere in the editor? I know it sounds lazy but I am hoping it is just smart and easy to do, please help!
 
Hi friends am also having this doubt.can any one clear this..
 
it is possible as there are third party plugins for locking the content of post in WordPress.
 
Personally I'm pasting the code in the template's header or in the footer. Never faced problems till now.
 
nice that you have found the required plugin and shared it with everybody.
 
If you didn't want to use a plugin, the template file that is used will depend on your theme. The majority of the time it will be single.php. If that doesn't work this WP codex page explains the order that WordPress checks.

Sorry, I can't post links but hopefully you'll be able to find the page by searching for Wordpress Template_Hierarchy
 
Rather than modify a theme or hack PHP. A good content locker plugin is the better way to go.

Unfortunately I think all the really good content lockers are non wp plugins. Like content lock pro.

Most times though you just add a little bit of javascript to a page to enable the locker.
 
Back
Top