• Hi. I created my website https://www.ifixlv.com with Customizr theme. Now I found out that i have many errors in Google Webmaster tool – structured data – hentry. In order to fix that I need to modify single.php file which my current theme do not have.

    So I have a question, can I create a single.php file for current theme? If yes, how to do it?

    Is there another version of Customizr that already contains the single.php file?

    PLEASE HELP. REALLY NEED TO FIX THIS.

Viewing 2 replies - 31 through 32 (of 32 total)
  • Well, 3 days is a long time in Computing!

    We can now say definitively that it won’t affect your Google page rank, because Google has now officially dropped authorship from its ranking.

    Hi,

    I have some kind of solution to this problem with following additions in the child theme’s functions.php. I’d like to add more details too. May be someone can help me too.

    function metas_in_pages( $bool) {
      return is_page() || $bool;
    }
    add_filter('tc_show_post_metas', 'metas_in_pages');
    
    function my_author_meta() {
    	$usp_author_name = get_the_author();
    	$usp_author_url  = get_author_posts_url( get_the_author_meta( 'ID' ) );
    
    	return sprintf( '<span class="author vcard"><a class="url fn" href="%1$s" title="%2$s" rel="author">%2$s</a><div class="org">My Company Name</div></span>' ,
    			esc_url( $usp_author_url ),
    			esc_attr( $usp_author_name )
    			);
    }
    add_filter( 'tc_author_meta', 'my_author_meta');

    Now this works for plain pages too!

    Cheers
    Nicolaie

Viewing 2 replies - 31 through 32 (of 32 total)
  • The topic ‘Create custom single.php file’ is closed to new replies.