-
AuthorPosts
-
July 1, 2020 at 4:37 pm #1227278
Hello,
I would like to change the information in the meta-data of the post.Instead of showing the author like in the picture below I would like to show the tags related to the post.
The problem is that I can’t find where I could edit the code.
https://kriesi.at/support/topic/enfold-modifying-the-information-displayed-below-post-title/
I think this exactly what I need, but it seems over dated cause I can’t find that PHP page in the theme editor.
(I don’t mind the div breaking if there’s too many tags causes normally the users won’t add more than 1 tag.)
Best regards.July 3, 2020 at 8:18 pm #1227821Hey GiroudMathias,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJuly 6, 2020 at 2:29 pm #1228292I can’t link my website, but I can give you more context.
My users will add a tag (only one) through the blog post maker like in the screenshot above :
https://ibb.co/60LwQD2And I would like to make these tags appear in the blog posts listing in this place (where in my previous post I could make appear the author) :
https://ibb.co/Jq2P2NKIn case you are wondering, I have the tags enabled, but it’s not appearing anywhere :
https://ibb.co/3hSvDgWIn my blog post listing I have this setup :
https://ibb.co/Yj5mnqs
(style : Simple with Title + meta-data)
But it seems like the tags are not considered as meta-data so they don’t appear. I don’t mind adding them myself and I don’t want to use a different style for my listing.As I said in the previous post, im trying to do something similar to this : https://kriesi.at/support/topic/enfold-modifying-the-information-displayed-below-post-title/
I just can’t find the file I should edit.Thank you for helping,
Best regards.- This reply was modified 4 years, 4 months ago by GiroudMathias.
July 7, 2020 at 1:02 pm #1228571Hi GiroudMathias,
Well, you will need to make changes in the /includes/loop-index.php.
Which version of Enfold are you running?
Best regards,
VictoriaJuly 8, 2020 at 9:53 am #1228810Thank you, that’s exactly what I was looking for, here’s the result :
https://ibb.co/bzN7NzMSo for people curious about what I did :
(OG code)echo '<span class="blog-author minor-meta">' . __( 'by','avia_framework' ) . ' '; echo '<span class="entry-author-link" ' . avia_markup_helper( array( 'context' => 'author_name', 'echo' => false ) ) . '>'; echo '<span class="author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>';
What I added/removed :
echo '<span class="blog-author minor-meta">' . /*__( 'by','avia_framework' ) .*/ ' '; echo '<span class="entry-author-link" ' . avia_markup_helper( array( 'context' => 'author_name', 'echo' => false ) ) . '>'; echo '<span class="author"><span class="fn">'; //the_author_posts_link(); the_tags( '', ', ', '<br />' ); echo '</span></span>'; echo '</span>'; echo '</span>';
Take note that the author has to be enabled in the enfold theme options to make the tags appear since we replaced the author with the tags.
My Enfold version is 4.7.5.
Best regards.
July 13, 2020 at 4:57 pm #1229990Hi GiroudMathias,
Glad you got it working for you and thank you for sharing! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.