- This topic has 21 replies, 2 voices, and was last updated 5 years, 4 months ago by Pete.
-
AuthorPosts
-
August 25, 2015 at 7:40 am #131941Pete
Why bother having a link to the category when i’m already on the category’s archive page.. it only links to the same page you’re on.. is this not good for SEO?
August 25, 2015 at 9:04 am #131962TomLead DeveloperLead DeveloperDo you mean the category link within the post?
Interesting point – it wouldn’t do anything to the SEO of the page, but might be something to look into regardless.
August 25, 2015 at 9:07 am #131967PeteYep, i’d love to see a dedicated archive.php (and includes) so it’s easier to edit the archive page without also editing other templates.
August 25, 2015 at 9:09 am #131970TomLead DeveloperLead DeveloperThere is an archive.php file – do you mean a category.php file?
Either way, you can create one in your child theme and make edits to it freely π
August 25, 2015 at 9:13 am #131980PeteI’d like to see a content type just for the cats…
get_template_part( 'content-category', get_post_format() );
August 25, 2015 at 9:21 am #131987PeteI suppose I could just make my own π I’m a bit old fashoned when it comes to templates, I really like not having any includes and having/being able to edit author.php, category.php with all their own codes (no common includes), etc π
August 25, 2015 at 9:25 am #131988PeteI’d like to see at least all of these without them having any common includes so they’re all self contained as such …
home.php
page.php
singular.php
category.php
tag.php
taxonomy.php
author.php
date.php
archive.php
search.php
404.php
attachment.php
single-attachment.php
single.php
index.phpAugust 25, 2015 at 9:36 am #131995TomLead DeveloperLead DeveloperThat would add a lot of complexity to GP though. Currently, GP is super lightweight and simple, meaning not a whole lot can go wrong.
If each post type/taxonomy had its own template, there’s a lot more room for error.
The way it’s set up now, one template serves them all. This makes the theme lighter, but still allows the end-user to add their own templates to further customize.
August 25, 2015 at 9:40 am #131997PeteNot each taxonomy, just one taxonomy.php but all self contained without any includes. the whole if/then conditional is confusing for me as it requires more detective work to find the file and then the whole if/then thing melts my brain. If i had taxonomy.php, tag.php and category.php that would make MY life easier to reverse engineer.
As it is now archive.php holds all these templates with a complex if/then structure.
August 25, 2015 at 9:45 am #132006PeteThe old original studiopress themes had these files and it was much easier to just look at one file and see where everything was in the one file, nowadays themes contain a multitude of includes that we have to follow the trail to find each file that impacts on the parent file… am i making sense? π
August 25, 2015 at 9:47 am #132007PeteI agree it would be (a little) more work for you but essentially the files would be 99% the same except for a few specific template tags.
August 25, 2015 at 9:49 am #132008PeteIn other words each template file has it’s own self contained loop without any common includes
August 25, 2015 at 11:35 pm #132160TomLead DeveloperLead DeveloperI gotcha π
Let me know look into this and see what I can do.
August 26, 2015 at 12:19 am #132168PeteAwesome, thanks. Maybe a child theme with all of the template files, would that work???
August 26, 2015 at 2:11 am #132173PeteRE my original point and your “Do you mean the category link within the post?” Sorry no, I mean the cat link on the archive.php page
-
AuthorPosts
- You must be logged in to reply to this topic.