Fatal error: Call to undefined function get_header()

Hello WordPress Developers, I got this erros messages when I check my site like below mysite.com/wp-content/themes/mythemes When I visite that url, it give me this message Fatal error: Call to undefined function get_header() in /users/my-username/www/mysite-folder/wp-content/themes/twentyfifteen/index.php on line 17 You know, the errors messages shouldn’t give us like that, Am I right? And I googled for … Read more

WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]

Closed. This question is off-topic. It is not currently accepting answers. Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question? Closed 5 years ago. Improve this question I downloaded a WordPress theme recently, … Read more

Why I can’t add a script-code into theme-settings without 403-forbidden?

we (my son and me) modified a script – ‘/js/sticky-menu.js’ – and it only works when Cloudflare ‘Rocket Loader’ is off. Following the tutorial for Rocket Loader I tried to exclude the script by adding this code into the header (using theme settings of Genesis): <script data-cfasync=”false” src=”/javascript.js”></script> I modified the code to <script data-cfasync=”false” … Read more

Why does the header set X-Robots-Tag apply to all pages?

The directives below are intended to apply the header X-Robots-Tag noindex and nofollow to a single page. The directives below are applied before the WordPress code block however it appears to result in all pages being set with noindex and nofollow RewriteCond %{REQUEST_URI} ^(.*)?faq?(/)$ [NC] RewriteRule ^faq – [E=NOINDEXNOFOLLOW] Header set X-Robots-Tag “noindex, nofollow” E=NOINDEXNOFOLLOW … Read more

Different custom header image on different page

I am now creating a website for my client, this client wants me to make each page of the section of header image able to be easily uploaded by them in wordpress admin panel. This is the code I have in functions.php: add_theme_support( ‘custom-header’ ); $args = array( ‘width’ => 950, ‘height’ => 150, ‘default-image’ … Read more