
-
AuthorPosts
-
October 13, 2016 at 10:18 pm #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
October 14, 2016 at 3:43 am #698948I also want to get help
October 18, 2016 at 12:39 am #700334Hi!
Login credentials are not working for me. Can you please check them once again?
Best regards,
YigitOctober 18, 2016 at 9:23 am #700477Hello Yigit!
Here you are the new credentials
Thank you very much
best regards
L.
October 18, 2016 at 2:14 pm #700640Hi,
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,
YigitApril 17, 2018 at 6:35 pm #943206I 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”.April 19, 2018 at 11:13 am #944032Hi,
Look for that code around line 60. You should see it under the “avf_tag_label_names” filter.
Best regards,
IsmaelFebruary 25, 2019 at 2:01 pm #1071281Hi,
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
February 26, 2019 at 2:44 pm #1071807Hi 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,
YigitFebruary 27, 2019 at 11:56 am #1072247Hi Yigit,
It works correctly Now, I would like to do the same on the block category page. What template should I change?
Thanks,
Jordi
February 27, 2019 at 12:33 pm #1072255Hi,
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,
YigitFebruary 27, 2019 at 12:55 pm #1072258Hi,
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
February 27, 2019 at 7:30 pm #1072347Hi 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,
YigitFebruary 28, 2019 at 10:34 am #1072577Hi Yigit,
It works correctly.
Thanks for all.
Jordi
February 28, 2019 at 10:36 am #1072578 -
AuthorPosts
- The topic ‘post-title tag-page-post-type-title : change title’ is closed to new replies.