February 26, 2018 at 9:13 pm #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!February 27, 2018 at 9:08 am #918278
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 :)
NikkoSeptember 23, 2018 at 9:42 pm #1013424
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)?
HaviSeptember 24, 2018 at 11:55 am #1013564
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.
NikkoSeptember 24, 2018 at 4:54 pm #1013705
See how it says “Posts” at the top of the page?
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.
HaviSeptember 25, 2018 at 5:51 am #1013988
You can use the “avf_tag_label_names” filter to adjust the default title of tag pages.
IsmaelSeptember 25, 2018 at 5:27 pm #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.
HaviSeptember 25, 2018 at 5:40 pm #1014319
You can use the < !–more–> tag to set your excerpt for posts.
Jordan ShannonSeptember 25, 2018 at 6:30 pm #1014363
I spoke too soon. Now I have both an H1 with no content and an H3 with the term title.September 25, 2018 at 6:39 pm #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)September 25, 2018 at 6:42 pm #1014373
Fixed it!! Modified H3 to H1 :)
add_filter(‘avf_tag_label_names’,’new_tag_label’, 10, 1);
$currenttag = single_tag_title(”,false);
$title = ”
<h1 class=’post-title tag-page-post-type-title’>”.$currenttag. “</h1>
HaviSeptember 25, 2018 at 7:10 pm #1014409
The topic ‘Author Title Tags & Category H1s’ is closed to new replies.