Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #107609
    radeko
    Participant

    Dear support team, I just installed your Catch responsive theme on my dev. env. (all plugins are disabled) and I see a whitespace before a doctype declaration
    see:

    view-source:http://dev.amruta.org/

    the whitespace prevents me to test the plugin xml-sitemap-feed which is very strict and does not allow the whitespace..

    It looks like the problem is with the theme because on Twenty Sixteen theme there is no whitespace visible and the plugin works.

    thank you

    Radoslaw

    screen shot with a whitespace

    #107664
    Pratik
    Participant

    Hi @radeko,

    We can work on the issue. If you are comfortable with editing the theme files, can you replace lines 17-31 in catch-responsive/inc/catchresponsive-structure.php file with following:

    
    if ( ! function_exists( 'catchresponsive_doctype' ) ) :
    /**
     * Doctype Declaration
     *
     * @since Catch Responsive 1.0
     *
     */
    function catchresponsive_doctype() {
    	?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    	<?php
    }
    endif;
    add_action( 'catchresponsive_doctype', 'catchresponsive_doctype', 10 );
    

    If this solves the issue, I will send the fix and issue will be solved in next update.

    Regards,
    Pratik

    #107673
    radeko
    Participant

    Hi @pratik, thank you, the fix works.

    best regards,
    Radoslaw

    #107718
    Pratik
    Participant

    Hi @radeko,

    I will forward this fix to our technical team and the reasons for it as well.

    Regards,
    Pratik

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘whitespace before doctype’ is closed to new replies.