• Resolved PavelS

    (@pavels)


    Add simple HTML page to the theme folder. I suppose it’s not restricted to use simple standalone HTML page in WP theme folder, for any purposes. Error below will be shown.

    REQUIRED: The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output

    Tested with 20141222.1 and WP 4.0

    Have spent some time to find the answer, before i have checked your code.

    I have google captcha example page in my theme folder.

    handlers/recaptcha-php-1.11/example-captcha.php

    the beginning of the file:

    <html>
    <head>
    	<title>reCAPTCHA demo: Simple page</title>
    	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
    </head>
    <body>
    ........

    https://wordpress.org/plugins/theme-check/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    No, that will be rejected by theme-check, and would not be allowed in a theme uploaded here to the WordPress.org themes directory.

    Additionally, including a reCAPTCHA library would very likely also not be allowed in a theme here. That type of thing seems more suitable to a plugin rather than a theme, and many reCAPTCHA based plugins already exist.

    Thread Starter PavelS

    (@pavels)

    I think you can mark this ticket as resolved then. Anyway i think it’s not right, because theme authors need to have simple .html file that can’t broke theme anyhow for different purposes.

    And having a lot of plugins for everything could be worse than having them in theme as well. Some such small and required by your theme things like captha.
    Or shortcode as well (I know that WP recommends to use plugins for shortcodes addition too).

    Thank You for quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong title issue’ is closed to new replies.