Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1108851

    I’m trying to figure out how I can make the thumbnail show on a password protected page. Now I see this lock. I just want to see the featured image.

    #1109078

    Hey Jillian,

    I tried to check on your pages but I couldn’t seem to find what’s on the screenshot.
    I think you can use some membership plugins which has features that restricts contents partially which is more like a teaser.

    Best regards,
    Nikko

    #1109112

    Hi Nikko,

    My bad. A plugin isn’t the right choice. Please check again on the homepage. Scroll a bit down and you’ll see it on your left hand sight.

    #1109360

    Hi,

    Thanks for the update.

    You should be able to remove that lock icon by editing the config-templatebuilder > aviashortcodes > av-helper-masonry.php file. Just look for this code around line 726:

    				//check if post is password protected
    				if(post_password_required($id))
    				{
    					$this->loop[$key]['content'] 		= "";
    					$this->loop[$key]['class'][]		= "entry-protected";
    					$this->loop[$key]['thumb_ID'] 		= "";
    					$this->loop[$key]['text_before'] 	= av_icon_display('closed');
    					$this->loop[$key]['text_after']		= $this->loop[$key]['date'];
    				}
    
    

    And remove it.

    Best regards,
    Ismael

    #1109500

    Awesome! That did the trick. Now there’s one more thing that has been added to the title and needs to be removed. As seen on the screenshot theres this word that has been added”beveiligd” which is ‘secured’ in english. This is not part of the title, how do I remove this?

    #1110172

    Hi,

    Thanks for the update.

    You can use this filter to remove the “Private” or “Beveiligd: ” string from the title.

    // remove "beveiligd: " from titles
    function avf_remove_private_prefix($title) {
    	$title = str_replace('Beveiligd: ', '', $title);
    	return $title;
    }
    add_filter('the_title', 'avf_remove_private_prefix');
    

    Best regards,
    Ismael

    #1110174

    Beast!!

    #1110500

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Show thumbnail password protected page’ is closed to new replies.