If you don’t like to display Tags on Home page of your WordPress site, then its so easy to do. A function for displaying Tags generally found in the index.php file of site main theme. Removing this function completely is not a good idea, you should add condition to don’t show Tags on home page only. To achieve this you can follow below steps:
- Log in to your site/blog.
- Go to Appearance-> Editor
- Main index.php of active theme
- Search for keyword “tags”, you can found function/code as like the_tags(),
- Add condition and put the_tags() or get_the_tag_list() within its as like given below:
if (!is_home()){ <p><?php the_tags(); ?></p> // will execute other then Home page } or if (!is_home()){ $tags_list = get_the_tag_list( '', __( ', ', 'themename' ) ); }
Now your blog’s home page will not display Tags but rest of the site will have as per default settings.
Please let me know if you have any further queries. Hope you will find this tip useful, if yes please share by using below share buttons. Thanks…
Comment here