Shivam Pandey
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Schema Markup Errors in GeneratePressI have already added custom PHP function code and the theme schema is disabled but still, errors in showing in the article schema in my every article. So please help me to fix this problem.
I don’t have a child theme so I added this custom PHP function code with the help of My Custom Functions WordPress plugin.
I have been using the Yoast SEO plugin on my website for more than 5 years, but I am facing this problem in the Yoast 14 update because your plugin has many bugs, this is the worst update in the history of Yoast SEO so please fix it otherwise, I will shift from Yoast SEO to Rank Math SEO plugin. Because they are providing more features and great support to their customer in their free plugin. But you will lose a valuable customer.
Is the above code a custom function? If yes, how can I add this code in WordPress?
Forum: Themes and Templates
In reply to: [GeneratePress] Customizing Read More Button in GeneratePressForum: Themes and Templates
In reply to: [GeneratePress] How to Center Image Caption in Generatepress?Thanks, Leo
The Problem is Solved Now,
God Bless You, My Friend ??Forum: Themes and Templates
In reply to: [GeneratePress] Need Help? – GeneratePress ThemeYes, I run the regenerate thumbnail multiple times. Please help me…
Forum: Themes and Templates
In reply to: [GeneratePress] Serve Scaled Images Issue in GeneratePress ThemeHello David, I have scaled the images to 700px x 400px but GTmetrix still said that I need to scale the images. So I deleted those images and upload new featured images with 700px x 400px, but still, my problem is not solved so I activate Twenty Twenty and Schema themes and the problem is resolved. This means that this problem is in the GeneratePress theme and I am not facing this problem in my old themes, I am getting frustrated so please help me to fix this problem.
Forum: Themes and Templates
In reply to: [GeneratePress] Need Help? – GeneratePress ThemeHello David, I have scaled the images to 700px x 400px but GTmetrix still said that I need to scale the images. So I deleted those images and upload new featured images with 700px x 400px, but still, my problem is not solved so I activate Twenty Twenty and Schema themes and the problem is resolved. This means that this problem is in the GeneratePress theme and I am not facing this problem in my old themes, I am getting frustrated so please help me to fix this problem.
- This reply was modified 5 years, 3 months ago by Shivam Pandey.
Forum: Themes and Templates
In reply to: [GeneratePress] Getting an Error in GeneratePress ThemeThank you for clarification David, What happens when I update the theme? Theme containing this custom function or overwritten?
Forum: Themes and Templates
In reply to: [GeneratePress] Getting an Error in GeneratePress ThemeHello David,
I asked you that the code given below is a custom function or not?add_filter( 'generate_post_author_output', function() { return sprintf( ' <span class="byline">%1$s</span>', sprintf( '<span class="author vcard" itemtype="https://schema.org/Person" itemscope="itemscope" itemprop="author">%4$s<a href="%1$s" title="%2$s" rel="author"><span class="author-name" itemprop="name">%3$s</span></a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), esc_html( get_the_author() ), get_avatar( get_the_author_meta( 'ID' ) ) ) ); } ); add_filter( 'generate_header_entry_meta_items', function() { return array( 'author', 'comments-link', 'date', ); } ); add_filter( 'generate_footer_entry_meta_items', function( $items ) { return array( 'date', 'categories', ); } );
Forum: Themes and Templates
In reply to: [GeneratePress] Getting an Error in GeneratePress ThemeIs the above code a custom function? If yes, how can I add this code through File Manager (cPanel)? I don’t want to use any plugin.
what happens when I update the theme? Theme containing this function or overwritten by a new one.Forum: Themes and Templates
In reply to: [GeneratePress] Getting an Error in GeneratePress ThemeI checked the documentation and I like the “Example 1” post meta style. But I have doubt where I will add below PHP code.
add_filter( 'generate_post_author_output', function() { return sprintf( ' <span class="byline">%1$s</span>', sprintf( '<span class="author vcard" itemtype="https://schema.org/Person" itemscope="itemscope" itemprop="author">%4$s<a href="%1$s" title="%2$s" rel="author"><span class="author-name" itemprop="name">%3$s</span></a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), esc_html( get_the_author() ), get_avatar( get_the_author_meta( 'ID' ) ) ) ); } ); add_filter( 'generate_header_entry_meta_items', function() { return array( 'author', 'comments-link', 'date', ); } ); add_filter( 'generate_footer_entry_meta_items', function( $items ) { return array( 'date', 'categories', ); } );
- This reply was modified 5 years, 3 months ago by Shivam Pandey.
Forum: Themes and Templates
In reply to: [GeneratePress] Getting an Error in GeneratePress ThemeHey David, I want to know that how can I show the Post Meta Data with Gravatar in GeneratePress Theme like this:
- This reply was modified 5 years, 3 months ago by Shivam Pandey.
- This reply was modified 5 years, 3 months ago by Shivam Pandey.