{"id":1834,"date":"2021-08-08T18:17:50","date_gmt":"2021-08-08T15:17:50","guid":{"rendered":"https:\/\/www.pexlechris.dev\/library-viewer\/?page_id=1834"},"modified":"2021-08-08T18:17:51","modified_gmt":"2021-08-08T15:17:51","slug":"faqs","status":"publish","type":"page","link":"https:\/\/www.pexlechris.dev\/library-viewer\/faqs\/","title":{"rendered":"FAQs"},"content":{"rendered":"<div class=\"su-accordion su-u-trim\"><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nHow_can_I_use_the_new_Library_Viewer_Admin_Page\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nHow can I use the new Library Viewer Admin Page?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Starting from version 3.3.0, you can access your library directly from the WordPress back-end. Simply navigate to <strong>Media &gt; Library Viewer<\/strong>. You can browse your files in the &#8220;Library&#8221; tab and customize the page title or access permissions in the &#8220;Settings&#8221; tab. This is perfect for administrators who need quick access without leaving the dashboard!<br \/>\n Read more in <a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/docs\/admin_page\/\" rel=\"nofollow ugc\">ADMIN PAGE DOCUMENTATION<\/a><\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nHow_can_I_grant_library_access_only_to_my_WooCommerce_customers\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nHow can I grant library access only to my WooCommerce customers?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>You can use the <strong><a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/for-woocommerce\/\" rel=\"nofollow ugc\">Library Viewer for WooCommerce Add-on<\/a><\/strong>. It allows you to link specific folders to WooCommerce products, granting access automatically upon purchase.<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nCan_users_upload_or_manage_folders_&amp;_files_from_the_front-end\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nCan users upload or manage folders &amp; files from the front-end?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes, by adding the <strong><a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/fm-wp\" rel=\"nofollow ugc\">Library Viewer File Manager Add-on<\/a><\/strong>. This enables front-end uploading, renaming, and deletion of files and folders based on user roles.<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nCan_I_display_a_folder_that_is_outside_of_my_WordPress_root_directory\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nCan I display a folder that is outside of my WordPress root directory?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes, with <strong><a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/pro-wp\" rel=\"nofollow ugc\">Library Viewer Pro<\/a><\/strong> you can display any folder on the same server, even if it is outside your WordPress installation directory (e.g., above the public_html folder), as long as the server&#8217;s PHP has access to it.<br \/>\n This can be achieved using the <code>lv_filter_global_abspath<\/code> filter to change the default ABSPATH to the root path of the folder you want to display.<br \/>\n For more detailed instructions and code examples on how to set this up, please feel free to ask in the <strong><a href=\"https:\/\/wordpress.org\/support\/plugin\/library-viewer\/\" rel=\"ugc\">support forum<\/a><\/strong>. As you can see, I usually respond within a few hours to help you out!<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nCan_I_hide_specific_folders_or_files_from_the_library\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nCan I hide specific folders or files from the library?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes. By default, the plugin hides:<br \/>\n * Folders containing the string &#8220;hidden-folder&#8221; in their name.<br \/>\n * Files containing the string &#8220;hidden-file&#8221; in their name.<br \/>\n * All <code>.php<\/code> and <code>.ini<\/code> files.<br \/>\n Rename your files or folders accordingly to hide them. For more advanced control (including specific inclusion\/exclusion lists), you can use <strong><a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/pro-wp\" rel=\"nofollow ugc\">Library Viewer Pro<\/a><\/strong>.<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nCan_I_forbid_the_direct_access_to_the_files_in_my_library\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nCan I forbid the direct access to the files in my library?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes, with <strong><a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/pro-wp\" rel=\"nofollow ugc\">Library Viewer Pro<\/a><\/strong> you can protect your files so they are only accessible through the plugin&#8217;s viewer, preventing direct URL access.<br \/>\n See this support topic: <a href=\"https:\/\/wordpress.org\/support\/topic\/executable-pdf-file\/\" rel=\"ugc\">wordpress.org\/support\/topic\/executable-pdf-file<\/a><\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nHow_can_I_deny_users_from_executing_PHP_files_in_my_library_folders\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nHow can I deny users from executing PHP files in my library folders?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>To enhance security, you should add the following code to a <code>.htaccess<\/code> file inside the folder you want to protect:<\/p>\n<pre><code>  &lt;Files *.php&gt;\n  deny from all\n  &lt;\/Files&gt;\n<\/code><\/pre>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nAre_there_shortcode_examples\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nAre there shortcode examples?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>You can test your own use cases in the <a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/demo-wp\" rel=\"nofollow ugc\">DEMO<\/a><\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nWhich_Page_Builders_are_compatible_with_Library_Viewer\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nWhich Page Builders are compatible with Library Viewer?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Library Viewer have been tested with TinyMCE (Classic Editor), Gutenberg, WPBakery, Visual Composer, Elementor and works fine!<br \/>\n Generally can be used, everywhere that shortcodes are accepted&#8230;<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nLibrary_Viewer_does_not_work_properly_and\/or_I_get_some_ERRORS._Why\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nLibrary Viewer does not work properly and\/or I get some ERRORS. Why?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<ul>\n<li>Check your permalinks PLAIN PERMALINKS ARE NOT SUPPORTED. Please change your permalink from \/wp-admin\/options-permalink.php to something else.\n<ul>\n<li>Check the folders&#8217; and files&#8217; read permissions (safe choice is to use 644)<\/li>\n<li>If you use the plugin <strong>Remove Uppercase Ascents<\/strong> and a CSS code like <em>.library-viewer&#8211;folder{text-transform: uppercase;}<\/em> maybe this cause the problem. The solution in this case is to use instead this CSS code: .library-viewer&#8211;folder h3 a{text-transform: uppercase;}<\/li>\n<li>Check if the file or folder has special characters in its name. Some are not supported as names of folders and files such as %. In this case, contact me via <a href=\"mailto:info@pexlechris.dev\" rel=\"nofollow ugc\">email<\/a> or via <a href=\"https:\/\/wordpress.org\/support\/plugin\/library-viewer\/\" rel=\"ugc\">support forum<\/a> to find a solution!<\/li>\n<li>For other problems, you can open a support ticket in <a href=\"https:\/\/wordpress.org\/support\/plugin\/library-viewer\/\" rel=\"ugc\">support forum<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nCan_I_add_my_custom_text_inside_a_folder_of_front-end_library_viewer\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nCan I add my custom text inside a folder of front-end library viewer?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes. If you want to add text above the front-end folders or below the front-end files, you can create via FTP a file with name &#8220;include.php&#8221; in the FTP folder that you want texts to be shown in front-end.<br \/>\n HTML tags are allowed!<br \/>\n Your texts must be values of php variables ($text_at_beginning , $text_at_end respectively) as you can see below:<\/p>\n<pre><code>  &lt;?php\n  $text_at_beginning = \"My text above front-end folders\";\n  $text_at_end = \"My text below front-end files\";\n  ?&gt;\n<\/code><\/pre>\n<p>&nbsp;<br \/>\n Also, you can use the hooks <code>lv_folder_text_at_beginning<\/code> and <code>lv_folder_text_at_end<\/code> respectively for this scope.<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nIs_Library_Viewer&8217;_file_viewer_supports_all_mime_types_(file_extensions)\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nIs Library Viewer&#8217; file viewer supports all mime types (file extensions)?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>From 1.1.2, the Library Viewer&#8217; file viewer supports all mime types that WordPress supports.<br \/>\n These that included in the function: wp_get_mime_types()<br \/>\n If you want to add support for mime types that are not included, use the WP filter: lv_mime_types to include them.<br \/>\n Read more in <a href=\"https:\/\/www.pexlechris.dev\/library-viewer\/hooks-wp#lv_mime_types\" rel=\"nofollow ugc\">HOOKS DOCUMENTATION<\/a><br \/>\n Read also <a href=\"https:\/\/www.pexlechris.dev\/how-to-add-php-hooks-in-your-wordpress-site\" rel=\"nofollow ugc\">how to add PHP hooks in your WordPress Site in my blog<\/a><\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nI_want_all_files_to_be_downloaded._Is_that_possible\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nI want all files to be downloaded. Is that possible?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes, you need to use the Library Viewer&#8217; file viewer (my_doc_viewer=&#8221;library-viewer&#8221;) and to add the following hook in your functions.php<\/p>\n<pre><code>  add_filter('lv_mime_types', function(){\n    return array();\n  });\n<\/code><\/pre>\n<p>Read <a href=\"https:\/\/www.pexlechris.dev\/how-to-add-php-hooks-in-your-wordpress-site\" rel=\"nofollow ugc\">how to add PHP hooks in your WordPress Site in my blog<\/a><\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nCan_I_change_the_colors_or_the_fonts_that_plugin_uses\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nCan I change the colors or the fonts that plugin uses?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes. But only with plain CSS at the moment. So you can add your custom css from WP customizer (from Additional CSS)<\/p>\n<\/dd>\n<\/div><\/div><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-anchor=\"\nI_have_a_proposal_for_a_new_functionality_of_this_plugin._Can_I_suggest_it_to_you\n\" data-scroll-offset=\"0\" data-anchor-in-url=\"yes\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\nI have a proposal for a new functionality of this plugin. Can I suggest it to you?\n<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<dd>\n<p>Yes. I need new ideas to improve my plugin. Send it to me via <a href=\"mailto:info@pexlechris.dev\" rel=\"nofollow ugc\">email<\/a> or via <a href=\"https:\/\/wordpress.org\/support\/plugin\/library-viewer\/\" rel=\"ugc\">support forum<\/a><\/p>\n<\/dd>\n<\/dl><\/div>\n\n<\/div><\/div><\/div>\r\n<style>\r\n#primary {\r\n    padding-right: 0;\r\n    width: 85%;\r\n    margin: 0 auto;\r\n    max-width: 800px;\r\n}\r\n.su-u-trim dd{\r\n\tmargin: 0;\r\n}\r\ndiv.su-spoiler-style-default>.su-spoiler-title{\r\n\tfont-size: 15px;\r\n\tletter-spacing: 0.3px;\r\n\tbackground-color: #F8F9FA;\r\n\tpadding: 15px 10px 15px 33px;\r\n\toutline: 0;\r\n}\r\n.su-spoiler-style-default>.su-spoiler-title > span.su-spoiler-icon{\r\n\ttop: 15px;\r\n\tleft: 8px;\r\n}\r\n\r\ndiv.su-spoiler-style-default > .su-spoiler-content{\r\n\tpadding-right: 10px;\r\n}\r\n\r\n.su-spoiler:not(.su-spoiler-closed) .su-spoiler-content{\r\n\tmargin-top: 10px !important;\r\n\tborder: 1px solid gray;\r\n}\r\n\r\n.su-spoiler:not(.su-spoiler-closed) .su-spoiler-title{\r\n\tcolor: #ab46f8;\r\n}\r\ndiv.su-accordion .su-spoiler{\r\n\tmargin-bottom: 10px;\r\n}\r\n<\/style>\r\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"footnotes":""},"class_list":["post-1834","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/pages\/1834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/comments?post=1834"}],"version-history":[{"count":1,"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/pages\/1834\/revisions"}],"predecessor-version":[{"id":1835,"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/pages\/1834\/revisions\/1835"}],"wp:attachment":[{"href":"https:\/\/www.pexlechris.dev\/library-viewer\/wp-json\/wp\/v2\/media?parent=1834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}