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

    View post on imgur.com

    Best Regards,
    Dara

    #724500

    Hey 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 7 years, 10 months ago by Yigit. Reason: fixed a typo in the code
    #724508

    Thanks 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?
    : )
    Dara

    #724510

    now Icannot save my php after removing the code without getting a fatal error message!

    #724511

    website not longer works!

    #724513

    Fatal error: Call to undefined function add_filters() in /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.php on line 9

    #724514

    help! 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’);

    #724515

    Hey!

    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,
    Yigit

    #724517

    Here is the FTP login in the private message

    #724520

    Hi!

    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,
    Yigit

    #724522

    This should work. Is it because I am in the PHP area still? I am no technician at all.

    #724525

    I am checking with our client

    #724526

    Hi!

    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,
    Yigit

    #724530
    #724541

    did you get it? (the pastebin info)

    #724549

    ?Any news

    #724550

    Hey!

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

    Best regards,
    Yigit

    #724555

    Fatal 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 anything

    what is working fine?

    please excuse the apparent panic

    #724556

    Hi!

    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,
    Yigit

    #724558

    I 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 7 years, 10 months ago by DaraEmerson.
    #724560

    Hi!

    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 logins

    Cheers!
    Yigit

    Edit: 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 7 years, 10 months ago by Yigit.
    #724563

    thanks
    I am sending you the FTP login again.
    It worked well before

    (where is the code you posted ?)

    #724569

    Hi!

    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 code

    Regards,
    Yigit

    #724576

    Thanks 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 7 years, 10 months ago by DaraEmerson.
    #724582

    Hi Dara!

    Yes, that mispelled “world” was the issue :)
    I have fixed the issue. Please review your website now

    Cheers!
    Yigit

    #724592

    ha!
    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,
    Dara

    The code did work like a dream as usual.

    #724593

    Hey Dara!

    I am sorry typos both you and i made took you from taking a walk.

    Thank you! Merry christmas and happy new year to you too!

    Always happy to help! :)

    Best regards,
    Yigit

Viewing 27 posts - 1 through 27 (of 27 total)
  • The topic ‘remove word "Posts" from search results via tags’ is closed to new replies.