How to prevent direct access to theme files
-
hi all, is there any way that i can prevent direct access to the theme files
ex: https://example.com/wp-content/themes/themename/header.phpif i am accessing these files, its showing error so i need to stop showing this error as its showing the directory structure
ex: Fatal error: Call to undefined function language_attributes() in /home/[username]/public_html/example.com/wp-content/themes/themename/header.php on line 2please help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to prevent direct access to theme files’ is closed to new replies.