Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    null

    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.

    #1227821

    Hey GiroudMathias,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1228292

    I 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/60LwQD2

    And 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/Jq2P2NK

    In case you are wondering, I have the tags enabled, but it’s not appearing anywhere :
    https://ibb.co/3hSvDgW

    In 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, 2 months ago by GiroudMathias.
    #1228571

    Hi GiroudMathias,

    Well, you will need to make changes in the /includes/loop-index.php.

    Which version of Enfold are you running?

    Best regards,
    Victoria

    #1228810

    Thank you, that’s exactly what I was looking for, here’s the result :
    https://ibb.co/bzN7NzM

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

    #1229990

    Hi 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.