Tagged: Blog, posts, search results
-
AuthorPosts
-
December 14, 2016 at 8:09 pm #724493
Daer Enfold Team,
Thanks for a solution!
When searching via TAGS the pages have all the word “Posts” in the upper left corner of page
how to remove this?Best Regards,
DaraDecember 14, 2016 at 8:19 pm #724500Hey DaraEmerson!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_tag_label_names','avia_remove_tag_title'); function avia_remove_tag_title(){ return ''; }
Cheers!
Yigit- This reply was modified 8 years ago by Yigit. Reason: fixed a typo in the code
December 14, 2016 at 8:26 pm #724508Thanks for the prompt reply!
UNFORTUNATELY:
oops! I get a “Fatal error” message!
luckily I could revert back and remove the code.
did I do something wrong?
: )
DaraDecember 14, 2016 at 8:27 pm #724510now Icannot save my php after removing the code without getting a fatal error message!
December 14, 2016 at 8:27 pm #724511website not longer works!
December 14, 2016 at 8:28 pm #724513Fatal error: Call to undefined function add_filters() in /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.php on line 9
December 14, 2016 at 8:31 pm #724514help! panic!
here is the php from the child theme which worked fine before adding the new code (above this)<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function custom_shortcode_func() {
ob_start();
echo “<span class=’post-meta-infos’>”;
echo “<time class=’date-container minor-meta updated’>”.get_the_time(get_option(‘date_format’)).”</time>”;
echo “<span class=’text-sep text-sep-date’>/</span>”;if ( get_comments_number() != “0” || comments_open() ){
echo “<span class=’comment-container minor-meta’>”;
comments_popup_link( “0 “.__(‘Comments’,’avia_framework’),
“1 “.__(‘Comment’ ,’avia_framework’),
“% “.__(‘Comments’,’avia_framework’),’comments-link’,
“”.__(‘Comments Disabled’,’avia_framework’));
echo “</span>”;
echo “<span class=’text-sep text-sep-comment’>/</span>”;
}if(!empty($cats))
{
echo ‘<span class=”blog-categories minor-meta”>’.__(‘in’,’avia_framework’).” “;
echo $cats;
echo ‘</span><span class=”text-sep text-sep-cat”>/</span>’;
}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=”vcard author”><span class=”fn”>’;
the_author_posts_link();
echo ‘</span></span>’;
echo ‘</span>’;
echo ‘</span>’;
echo ‘</span>’;
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_meta’, ‘custom_shortcode_func’);function custom_shortcode_func2() {
ob_start();
echo the_category( ‘, ‘ );
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_category’, ‘custom_shortcode_func2’);function custom_tags_shortcode() {
ob_start();
the_tags(‘‘.__(‘Tags:’,’avia_framework’).’ ‘);
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_tags’, ‘custom_tags_shortcode’);December 14, 2016 at 8:31 pm #724515Hey!
I made a typo, sorry. Please go to wp-content/themes/enfold-child/functions.php change the code to following one
add_filter('avf_tag_label_names','avia_remove_tag_title'); function avia_remove_tag_title(){ return ''; }
If you would like us to fix it for you, please post FTP logins here privately
Regards,
YigitDecember 14, 2016 at 8:33 pm #724517Here is the FTP login in the private message
December 14, 2016 at 8:36 pm #724520Hi!
I get a server timed out error when i use an FTP client and following logins do not work for me. Can you please check them once again?
Regards,
YigitDecember 14, 2016 at 8:39 pm #724522This should work. Is it because I am in the PHP area still? I am no technician at all.
December 14, 2016 at 8:41 pm #724525I am checking with our client
December 14, 2016 at 8:43 pm #724526Hi!
Still they do not work. Please post the content of functions.php file here using – http://pastebin.com/ so we can fix the error there and send you back for you to replace the content of the file
Best regards,
YigitDecember 14, 2016 at 8:45 pm #724530December 14, 2016 at 8:56 pm #724541did you get it? (the pastebin info)
December 14, 2016 at 9:09 pm #724549?Any news
December 14, 2016 at 9:13 pm #724550Hey!
I replaced my functions.php file however it does work totally fine. Also the error code is not in there.
Please make sure you make the changes on correct file – /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.phpBest regards,
YigitDecember 14, 2016 at 9:19 pm #724555Fatal error: Call to undefined function add_filters() in /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.php on line 9
where did you replace it?
I cannot get into the website at all now
I get the above message still
I cannot even get into the php file to correct.I did make the changes in the correct file.
now I cannot do anythingwhat is working fine?
please excuse the apparent panic
December 14, 2016 at 9:21 pm #724556Hi!
Error on your site shows what is causing it and that is “add_filters” i typed wrongly. However that code is not in the file you sent. Therefore, it cannot be the correct file. Or after deleting the content you forgot to upload it to your server and to overwrite the old one.
Best regards,
YigitDecember 14, 2016 at 9:24 pm #724558I removed the code you sent IMMEDIATELY after noticing that it crashed the site
whatever it is I have no possibility to correct anything now because I cannot get into the website at all to correct anything .
The website is unavailable and crashed.
what do you suggest I do?thanks
- This reply was modified 8 years ago by DaraEmerson.
December 14, 2016 at 9:25 pm #724560Hi!
I am suggesting you to go to – /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.php path via FTP and update the code i posted. I updated it above so it will work fine.
We can do it for you however, we need working FTP loginsCheers!
YigitEdit: If you tried to remove it while you were on Appearance > Editor, it would not be updated. It needs to be fixed via FTP.
- This reply was modified 8 years ago by Yigit.
December 14, 2016 at 9:31 pm #724563thanks
I am sending you the FTP login again.
It worked well before(where is the code you posted ?)
December 14, 2016 at 9:43 pm #724569Hi!
Logins are not working.
Here is the code i posted – https://kriesi.at/support/topic/remove-word-posts-from-search-results-via-tags/#post-724500
Which had a typo. You will find a similar code in correct functions.php file. You should simply remove it and insert updated codeRegards,
YigitDecember 14, 2016 at 9:55 pm #724576Thanks Yigit if you can try one more time.
My client sent me this now.
and I see there is a nd error on the world which is spelt wrong before.Thanks!
Dara- This reply was modified 8 years ago by DaraEmerson.
December 14, 2016 at 10:03 pm #724582Hi Dara!
Yes, that mispelled “world” was the issue :)
I have fixed the issue. Please review your website nowCheers!
YigitDecember 14, 2016 at 10:17 pm #724592ha!
spelling
: )
all that trouble from a slipped letter on two sides of the coin.and prior to trying to fix it I thought it is a good idea to shut down work for the night and take a walk.
I wish you sweet dreams and
hopefully will not chat with you until the new year.
so….. wishing you a very joyful christmas.Thanks in the end and appreciate the cheerful patience.
Best regards,
DaraThe code did work like a dream as usual.
December 14, 2016 at 10:20 pm #724593 -
AuthorPosts
- The topic ‘remove word "Posts" from search results via tags’ is closed to new replies.