- This topic has 7 replies, 3 voices, and was last updated 2 years, 10 months ago by
Tom.
-
AuthorPosts
-
February 25, 2020 at 1:26 am #1175974
Victor
Hi guys, hope you’re well.
There’s the text ‘Archives’ at the bottom of every single post of this website – how can I remove that, please? It’s weird and I don’t get it on other websites I use your theme on.
Thanks
February 25, 2020 at 9:18 am #1176544Leo
StaffCustomer SupportHi there,
That definitely shouldn’t be there.
Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?
Any custom functions added? or have you modified the theme core files in any ways?
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 25, 2020 at 10:48 am #1176636Victor
Hi Leo – thanks for your reply!
Found the problem: I added a code snippet to change the position of category’s text (from top to bottom).
If I remove it, ‘Archives’ disappears but so is the category description position.
Is there any way to get rid of that text and keep the category description as it is?
The code:
add_action( ‘after_setup_theme’, function() {
remove_action( ‘generate_archive_title’, ‘generate_archive_title’ );
add_action( ‘generate_after_main_content’, ‘generate_archive_title’ );
} );February 25, 2020 at 2:41 pm #1176799Tom
Lead DeveloperLead DeveloperHi there,
Instead of that function, try this:
remove_action( 'generate_after_archive_title', 'generate_do_archive_description' ); add_action( 'generate_after_main_content', 'generate_do_archive_description' );
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 3, 2020 at 8:27 am #1183732Victor
Hi Tom & Leo,
Sorry for my late reply. After replacing the function, the category description appears twice now – at the top & once again at the bottom, so I completely removed it.
March 3, 2020 at 5:14 pm #1184179Tom
Lead DeveloperLead DeveloperCan you try this, instead?:
add_action( 'wp', function() { remove_action( 'generate_after_archive_title', 'generate_do_archive_description' ); add_action( 'generate_after_main_content', 'generate_do_archive_description' ); } );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 3, 2020 at 10:44 pm #1184300Victor
Works like a charm!
Thanks Tom!
March 4, 2020 at 8:23 am #1184944Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.