[Resolved] Modifying "Tag" and "Author" page templates

  • Author
    Posts
  • #9210

    jfcyr
    Participant

    Hello
    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?

    #9211

    Andrew Misplon
    Keymaster

    Hi 🙂

    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.

    Template Hierarchy

    Template Hierarchy

    You could do this by copying archive.php to the child theme and then renaming it to tag.php and the copying it again and renaming to author.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?

    #9212

    jfcyr
    Participant

    Hello
    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.6

    #9213

    Andrew Misplon
    Keymaster

    No 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.

    Customizer Settings Export/Import

    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.

    #9214

    jfcyr
    Participant

    I’ll install “Customizer Export/Import” plugin.
    Would this plugin be handy down the road: https://wordpress.org/plugins/child-theme-configurator/

    #9215

    Andrew Misplon
    Keymaster

    Thanks.

    A plugin to assist with the creation of a child theme isn’t necessary. I’ll send a child theme already setup.

    #9221

    Andrew Misplon
    Keymaster

    Here 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.

    #9237

    jfcyr
    Participant

    Hello
    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/

    #9241

    Andrew Misplon
    Keymaster

    Thanks 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

    #9242

    Andrew Misplon
    Keymaster

    The 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 🙂

    #9243

    jfcyr
    Participant

    Not showing yet in the dashboard… I am running 2.2.6.

    #9244

    Andrew Misplon
    Keymaster

    Thanks 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.

    #9245

    jfcyr
    Participant

    Not 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…

    #9246

    Andrew Misplon
    Keymaster

    Sorry 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.

    #9247

    jfcyr
    Participant
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 20 total)

The topic ‘Modifying "Tag" and "Author" page templates’ is closed to new replies.

Scroll to top