Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use wordpress 3.8.1 with the theme tweenty fourteen. Unfortunetly , when you click on a category with no post assigned to it for now , it's display a "not found" page. I try to make a plugins with hook that replace that by a text ( like the description of the category ). If no post is in the category , only description is displayed , if category have post , description is displayed and posts founds after. For now I don't find any ways to affect the "nothing found" page. it's possible to do this without modifying the category.php file (with plugin by hooks) like this thread : If no posts in category display Form instead of not found

share|improve this question
    
Pretty sure that the "nothing found" is actual text in the template file. It's not done with a function, hook or database info. You can probably hide that text with CSS if you don't want to see it. Or edit the template, there's nothing wrong with that. –  gdaniel Mar 7 at 22:16
    
I agree with @gdaniel. Why not create a child theme, takes less than 5 minutes, then copy category.php to your child theme and edit it as needed. The great thing is that if you need to modify something in the theme later, you will already have made a child theme –  Pieter Goosen Mar 8 at 4:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.