-
AuthorPosts
-
June 10, 2019 at 5:41 pm #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.
June 11, 2019 at 10:57 am #1109078Hey 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,
NikkoJune 11, 2019 at 1:02 pm #1109112Hi 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.
June 12, 2019 at 5:53 am #1109360Hi,
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,
IsmaelJune 12, 2019 at 2:23 pm #1109500Awesome! 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?
June 14, 2019 at 4:08 am #1110172Hi,
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,
IsmaelJune 14, 2019 at 4:10 am #1110174Beast!!
June 14, 2019 at 8:52 pm #1110500Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Show thumbnail password protected page’ is closed to new replies.
