Join our new community forum for support & discussion

Join Now

Home Support Themes ListingHive i need help changing the word “listings” and “vendors

i need help changing the word “listings” and “vendors

  • Author
    Posts
  • hosegift

    i need help changing the word “listings” and “vendors
    When i inserted the code below on code snippet

    function start_modify_html() {
    ob_start();
    }
    function end_modify_html() {
    $html = ob_get_clean();
    $html = str_replace( ‘Listing’, ‘newword’, $html );
    $html = str_replace( ‘LISTINGS’, ‘newword’, $html );
    $html = str_replace( ‘Vendor’, ‘newword $html );
    echo $html;
    }
    add_action( ‘wp_head’, ‘start_modify_html’ );
    add_action( ‘wp_footer’, ‘end_modify_html’ );

    it only changed the words for the first page.
    can someone help.
    I would like to change it for the entire website.

    I also selected “Run snippet everywhere” on code snippet. Still the change was reflected only in the home page

    yevhen developer

    Please try to use Loco Translate. This strings is available in Loco Translate/Plugins/HivePress section. Also you can follow this tutorial https://help.hivepress.io/article/12-how-to-translate-an-extension

    DianaLizarazo

    Yevhen I tried using loco translate but for example the “# listings” that appear below the profiles of hosts is always in English even if I translated into spanish.

    Any idea which could be the problem?

    hosegift

    thank you @yevhen i will try it now and get back to you. thank you again

    yevhen developer

    @DianaLizarazo This is a complex string available in 3 versions (for zero items, one item and multiple items), please make sure that it is translated correctly in Loco Translate/Plugins/HivePress section.

    hosegift

    Hi @yevhen thank you for the information.
    I tried it and was able to translate all the required words using the Loco app.
    However, when i click on one of the top category post and it goes to that page
    it sort of reverts to the original text.

    hosegift

    I was able to update it through the menu’s page.
    thank you!

    hosegift

    in addition to using Loco

    hosegift

    Although, the url still shows listings
    can you help with this?
    thank you

    yevhen developer

    Unfortunately there is not such option with Loco Translate. But as solution you can try to change links name. Please check these topic for listing link
    https://hivepress.io/support/topic/permalink-modification/#post-18993
    https://hivepress.io/support/topic/permanent-link/#post-20832

    hosegift

    thank you!

    hosegift

    could not use those articles to figure it out

    When i click on add listings

    it shows

    https://something.com/submit-listing/category/

    can you show me hoe to make it this

    https://something.com/submit-group/category/

    or
    https://something.com/category/

    thank you

    cartoonnegar

    Hello
    How can i upload video(mp4) instead of jpg and png for my listing.it tell me only jpg and png is allowed?
    thank you

    ihor developer

    @hosegift Please check the reply here https://hivepress.io/support/topic/permalink-modification/#post-29846


    @cartoonnegar
    Sorry, there’s no such option in the image gallery, but you can embed videos into the listing description (simply past YouTube or Vimeo URL) or add a new Attachment attribute for this purpose.

    hosegift

    Hi ihor, when the Loco plugin gets updated the change to the word “listings” is reverted.
    is there a way i can use code snippets instead of the plugin?
    thank you!

    ihor developer

    Please make sure that you select the Custom location when you add a new language in Loco, otherwise any changes may be overridden on update. Using the Loco plugin is the best way to change any static texts within the theme/plugin code.

    hosegift

    Hi @ihor i did select custom location but for some reason the change was reverted.

    ihor developer

    This is strange, if the language files are kept outside of the Loco and HivePress directories they shouldn’t be affected, please try to re-create the language file (creating a backup first) to make sure that a custom location is selected initially. I highly recommend using Loco because making changes in the files directly would require many customizations.

    hosegift

    thank you for your response @ihor. I have started creating the lanaguage files again.

Viewing 19 posts - 1 through 19 (of 19 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.