Forum Replies Created
-
AuthorPosts
-
CraigMember
On line 1393 of your theme's style.css file, comment out or remove this section to get rid of the small line. It has a large bottom margin which is causing the gap between page title and page text.
.entry-header::after { border-bottom: 1px solid #000; content: ""; display: block; margin: 0 auto 60px; padding-bottom: 30px; width: 25%; }
CraigMemberHi Fabio, you can remove the Jetpack menu item from all users except Admin with the following code. If you wanted to show Jetpack to users of Editor level and upwards you could modify current_user_can to include a capability of 'publish_posts' for example. (Roles & Capabilities ).
add_action( 'jetpack_admin_menu', 'hide_jetpack_from_others' ); function hide_jetpack_from_others() { if ( ! current_user_can( 'administrator' ) ) { remove_menu_page( 'jetpack' ); } }
December 30, 2013 at 3:01 am in reply to: How Would You Provide a Password Protection Section? #81993CraigMemberI'm not sure about using WordPress to control the actual PDF link - I think I'd approach this much like Summer suggested earlier.
- Use Members plugin to create a "Student" role.
- Register 4 or 5 generic "Student" users so that login details can be shared between groups.
- Create a page that contains links to the PDF documents, and use Restrict Content plugin to only allow users with role="Student" (or greater) to view.
- Implement a log in form on the front end somewhere, that checks for user level of Student and forwards them to the PDF page.
Protecting the PDFs from being directly accessed could just be putting a .htaccess in their containing folder I think.
-
AuthorPosts