Comments Laz started the conversationMarch 5, 2016 at 5:34pmHi,Can you how to hide the post type on the search page? (The only posts that will show up are blog posts due to previous customization so this is not required) Many Thanks,Laz 895TheFox repliedMarch 6, 2016 at 10:40amHello Laz,If you want to hide the "post" you will need to remove the part of the search.php file from line 147 to 167 if( get_post_type($post->ID) == 'post' ){}Maybe the lines number changed since your file had previous modifications.Do not hesitate to contact us if you have more questions. Regards.--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme Laz repliedMarch 6, 2016 at 4:47pmHi,Sorry I ment the actualy display of the type, underneath the post title. it displays "Blog Post"Is there a way to remove that? Thanks,Laz 895TheFox repliedMarch 7, 2016 at 7:06amHello Laz,Oh, I see I was wondering why you wanted to hide also the post type.You need to go edit the search.php file and remove this line ( line 165 ).<div class="post-bottom-info"><span><?php echo __('Blog Post', 'thefoxwp'); ?></span></div>The line number may differ since your file has been modified.Do not hesitate to contact us if you have other questions.Have a nice day!Regards--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme 1 Like Sign in to reply ...
Hi,
Can you how to hide the post type on the search page? (The only posts that will show up are blog posts due to previous customization so this is not required)
Many Thanks,
Laz
Hello Laz,
If you want to hide the "post" you will need to remove the part of the search.php file from line 147 to 167
if( get_post_type($post->ID) == 'post' ){
}
Maybe the lines number changed since your file had previous modifications.
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Hi,
Sorry I ment the actualy display of the type, underneath the post title. it displays "Blog Post"
Is there a way to remove that?
Thanks,
Laz
Hello Laz,
Oh, I see I was wondering why you wanted to hide also the post type.
You need to go edit the search.php file and remove this line ( line 165 ).
<div class="post-bottom-info"><span><?php echo __('Blog Post', 'thefoxwp'); ?></span></div>
The line number may differ since your file has been modified.
Do not hesitate to contact us if you have other questions.
Have a nice day!
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme