- This topic has 19 replies, 2 voices, and was last updated 6 years, 7 months ago by Andrew Misplon.
- AuthorPosts
- March 29, 2018 at 5:16 pm #9210
jfcyrParticipantHello
I would like to modify the templates for the “tag” and “author” pages (theme defined, as far as I can tell).
I have found part of the solution here:
Appearance>Customize>Page Template Settings, but this option does not let me access the “tag” and “author” pages.
My needs are quite simple. I would like to have the excerpt displayed instead of the whole post.Can you help?
March 29, 2018 at 5:28 pm #9211
Andrew MisplonKeymasterHi 🙂
Unfortunately, only the Page Settings are available in the Page Template Settings section. So only things like the margins and the sidebar etc. Whether or not the excerpt is used is a global theme setting. This would require a child theme.
You could do this by copying
archive.php
to the child theme and then renaming it totag.php
and the copying it again and renaming toauthor.php
.From there it gets a bit more involved. The loop and content contents have to be inserted into each file and finally, the excerpt conditional modified.
Is this something you’re able to do or would you need me to put it together?
March 29, 2018 at 5:57 pm #9212
jfcyrParticipantHello
I am not too keen on using a child theme. For some reason it scares me… (I come from marketing and graphic design, not IT, so bear with me…)
Until now I have been able to do what I want using CSS (SO Custom CSS) and “Code Snippets” for php.
First things first
Can you point me towards a foolproof method to install and deploy a child theme ?
I am running Ultra Premium 2.2.6March 29, 2018 at 6:03 pm #9213
Andrew MisplonKeymasterNo problem. I can put this together for you but you’ll still need to install and migrate settings. Here is my guide for doing that.
You’d follow that guide once I’ve created the child theme for you and sent it over. Will do that as soon as I can in the next few days.
March 29, 2018 at 6:10 pm #9214
jfcyrParticipantI’ll install “Customizer Export/Import” plugin.
Would this plugin be handy down the road: https://wordpress.org/plugins/child-theme-configurator/March 29, 2018 at 6:14 pm #9215
Andrew MisplonKeymasterThanks.
A plugin to assist with the creation of a child theme isn’t necessary. I’ll send a child theme already setup.
March 31, 2018 at 12:39 pm #9221
Andrew MisplonKeymasterHere is a child theme to resolve the challenge.
https://purothemes.com/wp-content/uploads/2018/03/ultra-child-tag-author-excerpt.zip
Hope that helps.
April 3, 2018 at 1:15 pm #9237
jfcyrParticipantHello
I have installed and activated the child theme you provided. I have uploaded the Customizer settings as well (great plug-in BTW).
I see that the “content.php” template is supposed to take care of the display of tags and authors pages and show only excerpts.
Unfortunately, something is not working as tags and authors pages still show the whole content.
See here:
http://reflexphotonics.com/tag/lightspace/
…April 3, 2018 at 2:14 pm #9241
Andrew MisplonKeymasterThanks for the update. The child theme assumed the main blog layout, the left thumb layout in use requires a different file to be adjusted. Try deleting the child and installing this one:
https://purothemes.com/wp-content/uploads/2018/04/ultra-child-tag-author-excerpt-2.zip
April 3, 2018 at 2:17 pm #9242
Andrew MisplonKeymasterThe parent will also need to be updated to version
2.3
when you have a moment. The update should be ready in your dashboard. Thanks 🙂April 3, 2018 at 2:23 pm #9243
jfcyrParticipantNot showing yet in the dashboard… I am running 2.2.6.
April 3, 2018 at 2:32 pm #9244
Andrew MisplonKeymasterThanks for trying. Please, go to
Customize > Theme Settings > Premium
and check that your order number is inserted.If you’re working on a multi-site install, please, upgrade manually. The ZIP file link is in your original download email. I can resend if you let me know the purchasing email address.
Set as private reply below the comment box.
April 3, 2018 at 2:35 pm #9245
jfcyrParticipantNot quite there yet.
I have activated the new child theme, deleted the old one, uploaded the Customizer options and now the tag and author pages are showing only one blog title (even when there are more than one for that given tag or author), no excerpts, and the menus are non functional on these pages…April 3, 2018 at 2:37 pm #9246
Andrew MisplonKeymasterSorry for not being clearer about this, I realised late. The child uses the new excerpt function which is only in
2.3
.The Customizer options don’t need to be inserted each time, you’ve moved them across for the child slug already so they should be there now.
Please, revert to the parent until
2.3
is installed, then you can go back to the child.April 3, 2018 at 2:39 pm #9247
jfcyrParticipantThis reply has been marked as private. - AuthorPosts
The topic ‘Modifying "Tag" and "Author" page templates’ is closed to new replies.