Tagged: , ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #918017

    I tried searching and couldn’t find a solid answer. I am trying to edit the Title tag of our Author pages. Right now they just display first and last name. Additionally I want to add pagination to them, eg: “JR Hopwood | Page 2”. I tried to do this through the Yoast plugin but it does not seem to be applying (here’s an example: https://www.bluefinstrategy.com/articles/author/jrhopwood/)

    Additionally, how do I change the <h3> tag that says “Posts” to an H1 and actually adjust the copy on the tag pages; like on this page: https://www.bluefinstrategy.com/articles/tag/web-analytics/

    Thank you!

    #918278

    Hey jrhopwood,

    Enfold doesn’t have a feature of having a pagination beside the author name in blogposts, I’m not sure we can help you with it since it would take a lot of time to do and outside the scope of our support.

    As for changing the tag that says Posts from h3 to h1, you can modify it in tag.php file in the Enfold theme, line 60:

    $output .= "<h3 class='post-title tag-page-post-type-title'>".$label."</h3>";

    and line 100:

    echo "<h3 class='post-title tag-page-post-type-title'>".$label."</h3>";

    Just change h3 to h1, but I would suggest using a child theme first: https://kriesi.at/documentation/enfold/using-a-child-theme/ copy tag.php from the parent theme to the child theme and do the modification, this way, the changes wouldn’t be lost during the theme update. Hope this helps :)

    Best regards,
    Nikko

    #1013424

    Hi Nikko!
    I’m going to add one more small request to this ticket. How do I change the “Posts” to a variable that contains the Tag Title (so it’s a proper H1)?
    Thank you!!
    Havi

    #1013564

    Hi Havi,

    I’m not really sure about what you’re trying to achieve, can you give us a screenshot or probably a link where we can locate the “Posts” you’re referring.
    So we can identify it properly and try to give the solution.

    Best regards,
    Nikko

    #1013705

    Hi Nikko!

    Of course!

    See how it says “Posts” at the top of the page?

    https://bodasyweddings.com/tag/backyard-weddings/

    I want it to say “Backyard Weddings Posts” (or plain “Backyard Weddings”

    Basically, I want this to echo the Tag Name for every tag page.

    Then, I’ll turn it into an H1 (following the above instructions)

    Please, let me know if this helps.

    Warm regards,

    Havi

    #1013988

    Hi,

    You can use the “avf_tag_label_names” filter to adjust the default title of tag pages.

    Example: https://kriesi.at/support/topic/display-portfolio-tag-title/#post-1002591

    Best regards,
    Ismael

    #1014308

    Thank you, Ismael!! Worked like a charm!!!

    One last question. How can I have only a summary of the articles show on these Tag pages instead of the whole article? I have set wordpress to only show a summary. I don’t think that has an effect here.

    Warm regards,

    Havi

    #1014319

    Hi,

    You can use the < !–more–> tag to set your excerpt for posts.

    http://en.support.wordpress.com/splitting-content/more-tag/

    Best regards,
    Jordan Shannon

    #1014363

    Hi Jordan,

    I spoke too soon. Now I have both an H1 with no content and an H3 with the term title.

    https://bodasyweddings.com/tag/accesorios-para-novias/

    #1014370

    Good to know re: the excerpt method but creating excerpts is not a viable option (I would have to modify too much content) for this site right now. I guess it will have to stay this way.

    I am going to remove the H1 from lines 60 and 100 right now so I don’t have an empty H1. (Just a heads up)

    #1014373

    Fixed it!! Modified H3 to H1 :)

    add_filter(‘avf_tag_label_names’,’new_tag_label’, 10, 1);
    function new_tag_label($title){
    if(is_tag()){
    $currenttag = single_tag_title(”,false);
    $title = ”
    <h1 class=’post-title tag-page-post-type-title’>”.$currenttag. “</h1>
    “;
    }
    return $title;
    }

    Thank you!!

    Havi

    #1014409

    Hi,

    I’m glad this was able to be resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Author Title Tags & Category H1s’ is closed to new replies.