Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1130349
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionHow to remove fresh posts (latest news) on the main page? I can't find how to remove the "fresh posts"(latest news), I don't need it. Themes the Virtue. Tell me please. Thank you in advance. See below pictures.
Closed. This question is off-topic. It is not currently accepting answers.
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionHow to remove fresh posts (latest news) on the main page? I can't find how to remove the "fresh posts"(latest news), I don't need it. Themes the Virtue. Tell me please. Thank you in advance. See below pictures.
Share Improve this question asked Jan 4, 2019 at 11:30 Sergey KizievSergey Kiziev 311 silver badge6 bronze badges 11 | Show 6 more comments
2 Answers
Reset to default 1Solution to the problem. Very simple! Go to admin panel yoursite/wp-admin > Appearance > Theme Settings > Homepage Layout > The Layout Manager homepage > all Enabled to Disabled. Done! Now your Homepage is clean.
Here is a screenshot, I hope you understand. Have a nice day :)
From what I understand you want to remove the entire section outlined in red on your picture?
To do that, go into the admin > appearance > editor. Then on the right, find home.php and click it to edit the file.
Remove the following code from the file and click "Update File" to save...
<?php if ( !have_posts() ) : ?>
<div class="alert">
<?php esc_html_e( 'Sorry, no results were found.', 'virtue' ); ?>
</div>
<?php get_search_form();
endif;
if( $summary == 'full' ){
while (have_posts()) : the_post();
get_template_part( 'templates/content', 'fullpost' );
endwhile;
} else {
while (have_posts()) : the_post();
get_template_part( 'templates/content', get_post_format() );
endwhile;
}
/**
* @hooked virtue_pagination - 10
*/
do_action( 'virtue_pagination' );
?>
Important Note
This will make an edit directly to your theme. A better way to do this is to make a CHILD THEME, then edit the file there. This will prevent you from losing any edits when your theme updates.
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionHow to remove fresh posts (latest news) on the main page? I can't find how to remove the "fresh posts"(latest news), I don't need it. Themes the Virtue. Tell me please. Thank you in advance. See below pictures.
Closed. This question is off-topic. It is not currently accepting answers.
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionHow to remove fresh posts (latest news) on the main page? I can't find how to remove the "fresh posts"(latest news), I don't need it. Themes the Virtue. Tell me please. Thank you in advance. See below pictures.
Share Improve this question asked Jan 4, 2019 at 11:30 Sergey KizievSergey Kiziev 311 silver badge6 bronze badges 11
- Are you use ready made theme or custom theme ? – Pratik Patel Commented Jan 4, 2019 at 11:35
-
@PratikPatel, I don't know.. how to find out? Just install own from
/wp-admin/theme-install.php?browse=featured– Sergey Kiziev Commented Jan 4, 2019 at 11:37 - Please go to your admin panel and open Pages option and find HOME page and check once if there is option for this section – Pratik Patel Commented Jan 4, 2019 at 11:39
- @PratikPatel, Home not found - scr: here – Sergey Kiziev Commented Jan 4, 2019 at 11:43
- @PratikPatel, this is a custom theme not for ready made theme. – Sergey Kiziev Commented Jan 4, 2019 at 11:51
2 Answers
Reset to default 1Solution to the problem. Very simple! Go to admin panel yoursite/wp-admin > Appearance > Theme Settings > Homepage Layout > The Layout Manager homepage > all Enabled to Disabled. Done! Now your Homepage is clean.
Here is a screenshot, I hope you understand. Have a nice day :)
From what I understand you want to remove the entire section outlined in red on your picture?
To do that, go into the admin > appearance > editor. Then on the right, find home.php and click it to edit the file.
Remove the following code from the file and click "Update File" to save...
<?php if ( !have_posts() ) : ?>
<div class="alert">
<?php esc_html_e( 'Sorry, no results were found.', 'virtue' ); ?>
</div>
<?php get_search_form();
endif;
if( $summary == 'full' ){
while (have_posts()) : the_post();
get_template_part( 'templates/content', 'fullpost' );
endwhile;
} else {
while (have_posts()) : the_post();
get_template_part( 'templates/content', get_post_format() );
endwhile;
}
/**
* @hooked virtue_pagination - 10
*/
do_action( 'virtue_pagination' );
?>
Important Note
This will make an edit directly to your theme. A better way to do this is to make a CHILD THEME, then edit the file there. This will prevent you from losing any edits when your theme updates.
本文标签: remoteHow to remove fresh posts (latest news) on the main page
版权声明:本文标题:remote - How to remove fresh posts (latest news) on the main page? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749042079a2307290.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


/wp-admin/theme-install.php?browse=featured– Sergey Kiziev Commented Jan 4, 2019 at 11:37