- This topic has 9 replies, 2 voices, and was last updated 3 years, 11 months ago by
Tom.
-
AuthorPosts
-
March 23, 2017 at 4:45 am #296227
sl3439gdlc39
Posts are showing breadcrumbs at the bottom.
Where to control this? Want to replace the category link by a link to the sitemap.
GP Premium 1.2.96March 23, 2017 at 10:23 am #296393Tom
Lead DeveloperLead DeveloperNot too sure what you mean? Any examples of what you’re trying to do?
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 23, 2017 at 8:33 pm #296585sl3439gdlc39
At the bottom of posts, there seems to be a category link, with then the next/last post in that category.
Where to control that?
March 23, 2017 at 8:55 pm #296588Tom
Lead DeveloperLead DeveloperRight now the next/previous links aren’t controllable in the Customizer, although they will be soon.
If you let me know what you want to do to them I should be able to help out with some code π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 24, 2017 at 3:54 am #296678sl3439gdlc39
Okay. Right now it shows the category the post is in, followed by next/last post.
What I want is to replace that category link by a link to the sitemap. We do not use categories at all. So instead of showing a category, just show the sitemap, done.
Need to control both the url and wording for the category shown.
March 24, 2017 at 8:39 am #296814Tom
Lead DeveloperLead DeveloperWill the URL and wording change depending on the post you’re viewing?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 24, 2017 at 8:49 pm #297067sl3439gdlc39
No. Instead of the category name, it would say sitemap all the time. And the link would also be the same all the time to that sitemap.
All posts are kept in the same category internally in wordpress by the way. I could rename that category to sitemap and then put a redirect in place from the category to the sitemap. But it’s not clean.
March 25, 2017 at 8:26 am #297232Tom
Lead DeveloperLead DeveloperYou could try something like this:
add_filter( 'generate_category_list_output','tu_custom_category_list' ); function tu_custom_category_list() { return '<a href="URL TO YOUR SITE MAP">Site map</a>'; }
Adding PHP: https://docs.generatepress.com/article/adding-php/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 25, 2017 at 9:54 pm #297416sl3439gdlc39
works. thanks
March 26, 2017 at 9:33 am #297563Tom
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.