Support » Theme: Nisarg » Found something wrong in Template-Tags.Php on Line 135

  • Resolved sunsetc

    (@sunsetc)


    Version used: nisarg.1.2.5
    Warning: Printf(): Too Few Arguments In /……./Themes/Nisarg/Inc/Template-Tags.Php On Line 135.

    printf($entry_meta);
    
    	if(comments_open()){
    		printf(' <i class="fa fa-comments-o"></i><span class="screen-reader-text">%1$s </span> ',_x( 'Comments', 'Used before post author name.', 'nisarg' ));
    		comments_popup_link( __('0 Comment','nisarg'), __('1 comment','nisarg'), __('% comments','nisarg'), 'comments-link', '');
    	}
    }
    endif;

    While we changed the code to
    print($entry_meta);

    It works now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Falguni

    (@falgunihdesai)

    Thanks @sunsetc for reporting this issue. Instead of
    printf($entry_meta);
    it should be
    printf("%s",$entry_meta); or print($entry_meta);.
    Since it was warning it always worked for me and i never found this warning in my theme check. Which version of PHP are you using ?

    Sorry for the inconvenience. In my next version i will correct this warning issue.
    Thanks,
    Falguni

    Thank you:)
    PHP Version 5.6.19.

    I ran into it as well. PHP 5.3.29

    Excellent job on the theme!

    beingwithbeing

    (@beingwithbeing)

    Hi Nisrag,

    i dont want tags to appear at all on the bottom of my posts. how can I delete this? I cant find tags anywhere in templates? Im new to wordpress and very un-computer savvy so please explain in as much detail as possible where I need to go to fix this problem.

    Second question…. the space between the lines of writing is so big. Where can I change this to narrow it and what would you suggest as a suitable amount?

    Third, I would like the side widget area to be wider and the content within to fit the new width. How can I change this area. Again, I’m not savvy in this area so please as much detail as possible.

    Love the look and style of the theme though. well done.

    Regards
    Roslyn

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.