Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #899277

    Hi,

    at the tag archive page is on top a headline called “Posts”, see in the demo here:
    https://kriesi.at/themes/enfold-2017/tag/food/

    How can I delete this term “Posts” and replace it with a h1 headline of the TAG TITLE and the TAG DESCRIPTION please?

    Thank you.

    #899595

    Hey Chris,

    https://cl.ly/0m2t1q2a0i1N The description is right above it, if it’s not empty it will be there. You will need to edit /wp-content/themes/enfold/archive.php to make the changes you want.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #899673

    sorry, but this is not right; you have marked the description, but what I mean is the word “Posts”:

    … and I DO have added a description
    (site not yet online):

    So could you please tell me in which file (archive.php?) and line I can found this output of the word “Posts”?

    I haven’t found this in archive.php, but my PHP is not really good, so perhaps I have overseen it.
    (No, I do not want to use just display:none, because I want to edit this text)

    Thanks.

    #901371

    Hi Chris,

    This might get too complex for you, if like you say, your php is not that good.
    You might want to hire a freelancer to do it for you.

    I guess, in this case, archive.php calls to loop-index.php and there are many other conditions evaluated there.

    Best regards,
    Victoria

    #901385

    Could you please leave this to me, whether I can work something out or not? I just asked you in which file I need to look at, nothing more, the rest is up to me!

    Meanwhile I found this out for my own – and it is simple as it could be, if you know the right file:

    The word “Posts” on top of the tag archive page is found in tag.php!
    Not in archive.php, not in loop-index.php!
    Are you sure you know the theme???

    I had identified it simply by the h3 tag and a bit of thinking about what file could be responsible for the output of a TAG ARCHIVE, and replaced it with a line:

    //	echo "<h3 class='post-title tag-page-post-type-title'>".$label."</h3>";
    echo '<div style=" margin-top:20px; margin-bottom:40px;" class="hr hr-custom hr-center hr-icon-yes  "><span class="hr-inner   inner-border-av-border-fat" style=" width:200px; border-color:#f0edee;"><span class="hr-inner-style"></span></span><span class="av-seperator-icon" style="color:#f0edee;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span><span class="hr-inner   inner-border-av-border-fat" style=" width:200px; border-color:#f0edee;"><span class="hr-inner-style"></span></span></div>';

    The result is:
    the tag archive page shows the description, NOT the word “Posts” any more as shown in your demo, and in my case I added the avia line to separate the description from the following posts:

    https://www.dropbox.com/s/wg3wnyeahmlrfny/tagphp.jpg?dl=0

    This is “too complex” as you said???
    To comment out a single h3 line in tag.php????

    #902627

    Hi Chris,

    Sorry for the confusion. You know that you will need to copy this file to the child theme, right?

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #902864

    I do not use a child theme – that does not work, if you modify lots of theme files and some snippets don’t work in child themes at all – but no worry, I have my own “system” to record what files I have modified and what not, so that I can safely update the theme, and it works for me since many years with ENFOLD :-)

    #904225

    Hi,

    Alright. Please let us know if you need anything else. :)

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Tag archive page: how to replace "posts" with h1 headline and tag description?’ is closed to new replies.