Join our new community forum for support & discussion
Join NowHome › Support › Themes › ListingHive › i need help changing the word “listings” and “vendors
i need help changing the word “listings” and “vendors
-
AuthorPosts
-
hosegift 1 year ago
i need help changing the word “listings” and “vendors
When i inserted the code below on code snippetfunction 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
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 1 year agoYevhen 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?
@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 1 year agoI was able to update it through the menu’s page.
thank you!hosegift 1 year agoin addition to using Loco
hosegift 1 year agoAlthough, the url still shows listings
can you help with this?
thank youUnfortunately 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-20832hosegift 1 year agothank you!
hosegift 1 year agocould 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 1 year agoHello
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@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 1 year agoHi 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!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.
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.
-
AuthorPosts
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.