Tagged: ,

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #698909

    Hello!
    I would like to ask you how to make a change in the visualization of the results of a tag research.
    When I click on a tag, the results appearing in a new page are grouped according to titles that I would like to edit.
    In other words, I want to change the intro title that specify if the result is a post (Articolo ), an element of the portfolio (Elementi del Portfolio) or a page (Pagine). For example I’d like to change the text “Elementi del Portfolio” in “Prodotti” and “Articoli” in “Articoli Collegati”.

    Please look at the private link below.

    Thank you very much for your precious suggestions

    Kind regards

    Laura

    #698948

    I also want to get help

    #700334

    Hi!

    Login credentials are not working for me. Can you please check them once again?

    Best regards,
    Yigit

    #700477

    Hello Yigit!

    Here you are the new credentials

    Thank you very much

    best regards

    L.

    #700640

    Hi,

    Please firstly install a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ then copy enfold/tag.php file to your child theme
    Then find following line in that file

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

    and change it as following

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

    and then find following line in the same file

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

    and change it as following

    echo "<h3 class='post-title tag-page-post-type-title'>This is your second title</h3>";

    Best regards,
    Yigit

    #943206

    I have the same problem but I do not find the string indicated in the tag.php file

    I would like to ask you how to make a change in the visualization of the results of a tag research.
    When I click on a tag, the results appearing in a new page are grouped according to titles that I would like to edit.
    In other words, I want to change the intro title that specify if the result is a post (Articolo ), an element of the portfolio (Elementi del Portfolio) or a page (Pagine). For example I’d like to change the text “Elementi del Portfolio” in “Prodotti” and “Articoli” in “Articoli Collegati”.

    #944032

    Hi,

    Look for that code around line 60. You should see it under the “avf_tag_label_names” filter.

    Best regards,
    Ismael

    #1071281

    Hi,

    On this line of code: $output .= “<h3 class=’post-title tag-page-post-type-title’>”.$label.”</h3>”;
    I would like to link after “$label” the name of tag but I don’t find the variable that having this name.

    Can you tell me which variable is it?

    Thanks in advance,

    Jordi

    #1071807

    Hi Jordi,

    Please change following line

    $label = apply_filters('avf_tag_label_names', $post_type_obj[$key]->labels->name);
                                    echo "<h3 class='post-title tag-page-post-type-title'>".$label."</h3>";

    to following one

                                    $label = apply_filters('avf_tag_label_names', $post_type_obj[$key]->labels->name);
                                    $current_tag = single_tag_title("", false);
                                    echo "<h3 class='post-title tag-page-post-type-title'>".$label."<span>: ".$current_tag."</span></h3>";

    Best regards,
    Yigit

    #1072247

    Hi Yigit,

    It works correctly Now, I would like to do the same on the block category page. What template should I change?

    Thanks,

    Jordi

    #1072255

    Hi,

    You are welcome! Blog categories should be displayed out of the box. Could you please post a screenshot and preferably a link to your page so we can make sure that we are on the same page?

    Best regards,
    Yigit

    #1072258

    Hi,

    I’ve send the links on private content box.

    First link is the page we’ve modified yesterday.

    Second link is the page that I would modify. I need to add the same title there are in the first link “Entradas de Alquilar carpa para boda” because I need to add a h1. In this page the title should be “Categoria de Banquetes” (e.g.: $label . de . $current_category or the correct category variable name)

    Thanks,

    Jordi

    #1072347

    Hi Jordi,

    Please copy /enfold/archive.php file to your child theme, edit the file and find

    <main class='content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>

    and add following code right below that line

    <?php if(is_category()){
      $get_single_term = single_term_title("",false);
      echo "<h1 class='category-title'>". $get_single_term ." category</h1>";
    }
    ?>

    Best regards,
    Yigit

    #1072577

    Hi Yigit,

    It works correctly.

    Thanks for all.

    Jordi

    #1072578

    Hi,

    You are welcome! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘post-title tag-page-post-type-title : change title’ is closed to new replies.