Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter SarahP123

    (@sarahp123)

    Hopefully that made sense. My clients using the site won’t always be logged in before going to the page and although I plan to prompt them to login I don’t want them getting confused or discouraged with the ‘No Content Found’

    Thread Starter SarahP123

    (@sarahp123)

    Okay never mind you can close this.

    I found where to edit the file in the Plugin Editor.

    wp-private-content-plus/classes/class-wppcp-private-content.php

    On that page above. Not sure what line.
    (Incase someone with the same problem sees this)

    I have the same problem… on the widget it shows to guests “You don’t have permission to view this content”. That looks kinda unprofessional to people who have not yet signed up.

    Do you remember how you took that off? I am new to php so clear instruction would be awesome! Either Sarah or author response would be appreciated ASAP.

    Thread Starter SarahP123

    (@sarahp123)

    Okay I’ll try and do my best to give you a hand.

    It should be easy for you to change even without php knowledge.

    Go to Plugins — Editor then choose the WP Private Content Plus from the drop down.

    On the side there is a bunch of php files to choose from. Find the one that says wp-private-content-plus/classes/class-wppcp-private-content.php
    I think it is second from the top.

    If you scroll down just a tiny bit (sorry I dont know what line it is)
    you will see
    return apply_filters(‘wppcp_private_page_empty_message’ , __(‘No content found.’,’wppcp’));

    You could also use Ctrl-F to search for the No Content Found phrase.

    Just change the No content found to whatever you want to say. Don’t touch anything else but those words.

    If you want it to say nothing just leave it blank. (Notice I left the ” that surround it)

    For example:
    return apply_filters(‘wppcp_private_page_empty_message’ , __(”,’wppcp’));

    Anyways hopefully this helps you out and makes sense. I was writing it up fast.

    have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing or Removing 'No content found' from private pages’ is closed to new replies.