manav kalra
Forum Replies Created
-
Hi @yingscarlett , Thanks for your reply. It works perfect.
For removing entry summary, I have a code
add_filter( 'excerpt_length', function($length){ $length = 0; return $length; }); function new_excerpt_more($more) { global $post; remove_filter('excerpt_more', 'new_excerpt_more'); return ''; } add_filter('excerpt_more','new_excerpt_more',11);
The only issue is that, there’s a small div code left in source:
<div class="entry-summary" itemprop="text"> </div>
Can you tell me how to remove this ?
Forum: Plugins
In reply to: [Yoast SEO] How to remove link rel=next link rel=prev from homepageI found solution here
https://gist.github.com/amboutwe/66c583d2ef4015a8a244ee3e0e8cd1a0
Thanks, Marking this as Solved.
- This reply was modified 2 years, 4 months ago by manav kalra.
Thanks! It works perfect ??
Yes, I want no pagination.
do you want ALL posts to be displayed on them ?
No I just want recent 10 posts, nothing else.Forum: Fixing WordPress
In reply to: Each menu item has new css@krupalpanchal , So it means wordpress gives new css class for each new menu item.
Forum: Fixing WordPress
In reply to: Each menu item has new cssNo, even I don’t find “menu-item-type-post_type” & “menu-item-object-post” also
Forum: Fixing WordPress
In reply to: Each menu item has new css@krupalpanchal No I am using wordpress twentyfifteen theme.
Forum: Fixing WordPress
In reply to: Each menu item has new css@krupalpanchal “It adds a unique post id to body class, same as in menu items” , Yes I agree to this but each menu item has different unique li id but has unique id in css also thats why I am asking.
li id="menu-item-16601" class="menu-item menu-item-type-post_type menu-item-object-post menu-item-16601"
- This reply was modified 2 years, 6 months ago by manav kalra.
Thanks @diggeddy ??
Hi @diggeddy ,
Thanks, It does the job! ??
One more thing I want to ask , can we change list view to grid view by using css or code?
Thanks it worked perfect, but there’s extra space after post title so I checked source code & I found this code adding extra space
<div class="entry-summary" itemprop="text"> </div>
Can you tell me how to remove this code also ?
Forum: Themes and Templates
In reply to: [GeneratePress] How to remove post excerpt & Leave a commentHi fernandoazarcon2, Thanks for your reply.
There were a error in code ,
global $post;
added extra, So I removed it and it worked properly.Working code:
add_filter( 'excerpt_length', function($length){ $length = 0; return $length; }); function new_excerpt_more($more) { remove_filter('excerpt_more', 'new_excerpt_more'); return ''; } add_filter('excerpt_more','new_excerpt_more',11); add_action( 'wp', function() { remove_action( 'generate_after_entry_header', 'generate_post_image' ); });
Forum: Themes and Templates
In reply to: [GeneratePress] How to remove post excerpt & Leave a commentIt works but featured image & “… Read more” is still there, I want to remove featured image & “… Read more” also.
Forum: Themes and Templates
In reply to: [GeneratePress] How to remove post excerpt & Leave a commentHi David,
First of all thanks for your reply, for removing comments link its working absolutely fine but there’s no option for excerpt length in Customizer > Layout > Blog, I am attaching screenshot please check https://prnt.sc/N7ZNVFrLnCjZ
Thanks aton!