EDITS.WS

Tag: multilingual site with wordpress

  • How to Add Multilingual Search in WordPress (2 Ways)

    Do you want to add a multilingual search in WordPress?

    If you have a multilingual WordPress site, then adding a multilingual search feature can help users find information more quickly by searching in their own language.

    In this article, we’ll show you how to easily add multilingual search in WordPress and delight your users with a better user experience.

    How to add multilingual search in WordPress

    Why Should You Add Multilingual Search in WordPress?

    Often users have trouble finding information on multilingual websites because either there is no search feature that they can use, or the search feature shows them content in the wrong language.

    Adding a multilingual search feature helps users easily find the content they are looking for. This improves user experience which means users will stay longer on your website.

    Research shows that engaged users are more likely to convert, subscribe, or make a buying decision.

    That being said, let’s take a look at how to easily add a multilingual search in WordPress without breaking your website or writing any code.

    Method 1: Adding Multilingual Search Using TranslatePress

    If you haven’t made your multilingual website yet, or already using TranslatePress, then this method is for you.

    TranslatePress is the best WordPress translation plugin on the market. It allows you to easily create a multilingual website using a live editor for quick and easier translation.

    It works out of the box and allows default WordPress search to display multilingual results.

    The disadvantage of this method is that it uses the default WordPress feature which is not very good at fetching the right results.

    If you haven’t used TranslatePress before or need help, then see our tutorial on how to easily create a multilingual WordPress website.

    Note: Keep in mind that the free version of TranslatePress only allows you to translate your website into one other language. So if you want to add multilingual search in WordPress for more than two languages, then you’d need to buy the TranslatePress Premium version.

    Once you have translated some content on your WordPress website. It is time to add the search form.

    Add a Search Block to your WordPress Site

    WordPress comes with a built-in search block that you can add anywhere on your website.

    If you’re using a block-based theme like Ultra, then you’ll be using the full site editor to add the search block.

    Simply visit the Appearance » Editor page from the WordPress dashboard.

    This will launch the full site editor which looks a lot like the block editor you use for writing posts and pages.

    Now, click on the add block button (+) to add the Search block.

    Adding search block in site editor

    You can move the search block up and down to display it anywhere on the page.

    Search block also comes with a few style options that you can choose from the block toolbar or settings.

    Search block settings

    Once you are finished, don’t forget to click on the Save button to save your changes.

    You can now visit your website to see the search form in action.

    Search form preview

    On the other hand, if you’re using a theme that does not support the full-site editor, then you can add a search form as a widget.

    Simply go to the Appearance » Widgets page from the WordPress admin dashboard.

    Here, click the Add widget block button (+) and add the Search block to your widget area.

    Search widget

    Once the ‘Widget Block Menu’ opens up, locate the ‘Search’ block and add it to your WordPress sidebar.

    Don’t forget to click the ‘Update’ button at the top to save your changes.

    Once you’ve saved the changes, visit your site and see the search box in action.

    Website preview

    Method 2: Adding Multilingual Search Using SearchWP (Recommended)

    The default WordPress search feature used by TranslatePress is not very good. It is quite basic and only looks for search terms in certain places.

    This is where SearchWP comes in.

    It is the best WordPress search plugin on the market and allows you to easily replace the default WordPress search with a more powerful search feature.

    SearchWP

    SearchWP automatically builds a search index and matches search keywords in content, title, categories, tags, shortcodes, documents, products, and more.

    Plus, it automatically replaces the default search form upon activation so you don’t need to replace it if you were already using it on your site.

    That being said, let’s take a look at how to easily add a better multilingual search to your WordPress site.

    First, you need to install and activate the SearchWP plugin. For more information, see our guide on how to install a WordPress plugin.

    After that, go to the SearchWP » Settings page and then click on the ‘License’ menu option to enter your license key.

    You can get the license key from your ‘SearchWP Accounts’ page. Simply copy the license key from there.

    After that, paste it into the ‘License Key’ field and then click on the Activate button.

    SearcWP license

    Now, you are ready to create your first custom search engine.

    Simply go to the SearchWP » Settings page from the dashboard.

    From here, you will see SearchWP’s first default search engine for you. It is pre-configured to work for most websites including multilingual websites.

    You’ll see all your post types with different attributes. Next to each attribute there will be a slide that you can move to assign weight for that attribute.

    SearchWP settings

    You can also click on the Add/Remove Attributes button to include more areas in the search.

    For instance, you can add custom fields and taxonomies to the attributes as well.

    Add more attributes to search

    If you are unsure about a setting, you can leave it as it is. The default options would work for more use cases.

    Finally, click on the Save Engines button to store your settings.

    SearchWP will now start building your search index in the background.

    Now, all you need to do is add the search form to your site.

    Add a Search Block to your WordPress Site

    SearchWP replaces the built-in search feature, which means you can use the default WordPress search form and it would still use SearchWP to show the results.

    If you haven’t already added a search form to your website, then here is how you would add it.

    If you’re using a block-based theme, then you’ll be adding a search block using a full-site editor.

    Simply go to the Appearance » Editor page from the admin dashboard.

    On the edit screen, click on the add block button (+) at the top and add the search block.

    You can move the search block to the area where you want to display the search form by moving it up or down.

    Adding search block in site editor

    Finally, don’t forget to click on the Save button to save your changes.

    If you’re using a theme that doesn’t support the full-site editor, then you’ll need to add a search widget to your website’s sidebar or widget-ready area.

    For that, head over to the Appearance » Widgets page from the dashboard.

    Now click on the add block button (+) at the top to open up the ‘Widget Block Menu’.

    From here, locate and add the Search widget to your preferred widget area.

    Search widget

    Don’t forget to click the ‘Update’ button at the top to save your changes.

    Next, simply visit your website and use your improved search box.

    Website preview

    For more information and detailed instructions, take a look at our guide on how to improve WordPress search using SearchWP.

    We hope this article helped you learn how to add multilingual search in WordPress. You may also want to check out our tutorial on how to fix WordPress search errors, and our article on how to create a multilingual sitemap in WordPress.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post How to Add Multilingual Search in WordPress (2 Ways) first appeared on WPBeginner.

  • How to Easily Create a Multilingual Sitemap in WordPress

    Are you looking to improve the search engine rankings of your site’s multilingual pages?

    Creating a multilingual sitemap helps Google, Bing, and other search engines easily find your content and index it. You can get more international search traffic simply by giving search engines an easy way to find multilingual content on your WordPress site.

    In this article, we’ll show you how to create a multilingual sitemap for WordPress.

    How to create a multilingual sitemap in WordPress

    Why Create a Multilingual Sitemap in WordPress?

    A sitemap is a file that contains all the important content on your WordPress website. It is in the XML format and is targeted toward search engines instead of people.

    Creating an XML sitemap for your multilingual website helps search engines find and index your content faster. For instance, if you have different domains or subdomains translated into multiple languages, then you’ll need to create a sitemap for each website.

    Note: If you’re looking for an easy way to set up a website in different languages, then follow our step-by-step guide on how to easily create a multilingual WordPress site.

    A sitemap is extremely important for your WordPress SEO. Let’s say you just created a new multilingual website. Your new site won’t have many backlinks, and it can be hard for search engines to discover your new articles and pages.

    The sitemap provides a way for search engines to learn about your new content in another language. This way, your multilingual pages will start to get indexed and appear in search results.

    That being said, let’s take a look at how you can create a multilingual sitemap in WordPress.

    Creating a Multilingual Sitemap in WordPress

    By default, WordPress automatically creates an XML sitemap for new websites. You can add wp-sitemap.xml at the end of the domain, and WordPress will display the default XML sitemap.

    View default sitemap

    However, this feature is fairly limited and not very flexible. You can’t control which content to add or remove from the sitemap.

    The best way to create an XML sitemap in WordPress is by using the All in One SEO (AIOSEO) plugin. It is the best WordPress SEO plugin and helps you optimize your site for search engines.

    It also automatically creates a sitemap for a multilingual site and gives you more control over which pages and website sections you want to show in the sitemap.

    The sitemap feature is available in the AIOSEO Lite version for free. However, if you’re looking for more features like video sitemaps, news sitemaps, redirections manager, and link assistant, then we recommend using the AIOSEO Pro version.

    First, you’ll need to install and activate the AIOSEO plugin. If you need help, then please see our guide on how to install a WordPress plugin.

    Click let's get started AIOSEO setup wizard

    Upon activation, you’ll see the AIOSEO setup wizard. Simply click the ‘Let’s Get Started’ button and follow the onscreen instructions. For more details, you can visit our guide on how to set up All in One SEO plugin for WordPress.

    After that, you’ll need to go to All in One SEO » Sitemaps from your WordPress dashboard and ensure that the ‘Enable Sitemap’ option is enabled.

    AIOSEO sitemaps

    AIOSEO will automatically create a sitemap for your multilingual website.

    You can click the ‘Open Sitemap’ button to preview it or simply add ‘sitemap.xml’ to your website URL.

    XML sitemap preview

    Please note that if you’re using WPML to create multilingual sites, then AIOSEO will automatically serve sitemaps across different languages.

    For instance, your sitemap URL will be something like /nl/sitemap.xml, /de/sitemap.xml, or /fr/sitemap.xml.

    If you’re using TranslatePress to create your WordPress multilingual site, then you will need to install their SEO pack addon which is fully compatible with AIOSEO.

    Configuring Additional Multilingual Sitemap Settings

    To further customize your multilingual sitemaps, you can scroll down in AIOSEO Sitemaps settings to view more options.

    By default, the plugin lets you include all post types and taxonomies in the sitemap. It also gives the option to include date archives and author sitemaps.

    View more sitemap settings

    However, you can uncheck the ‘Post Types’ and ‘Taxonomies’ options and view more options.

    For example, let’s say you have translated content as a custom post type. You can simply check that option to include in the sitemap and exclude other post types.

    Add translations to sitemap

    Besides that, you can also add more pages from your multilingual website to the sitemap.

    For example, let’s say you’ve translated a pillar article or an evergreen content into another language. You can add the page URL to the sitemap using AIOSEO and help search engines easily find your content.

    Simply scroll down and click the ‘Additional Page’ toggle to enable the option. After that, you can add the page URL, and choose the priority and the frequency.

    Add additional pages to sitemap

    AIOSEO lets you exclude posts, pages, and specific terms from your WordPress sitemaps.

    For instance, you can add different multilingual posts and pages that you don’t to include in the sitemap. These can be contact us page, or terms of service pages translated in another language.

    First, you’ll need to enable the ‘Advanced Settings’ option. Then enter the URLs in the ‘Exclude Posts / Posts’ field and the terms in the ‘Exclude Terms’ field.

    View additional settings in sitemap

    Submitting Your Multilingual Sitemap to Search Engines

    Now that you’ve created a multilingual sitemap, the next step is to submit it to different search engines. This way, Google, Bing, and other search engines can easily find new content.

    Submit Multilingual Sitemap to Google

    Google Search Console is a free tool by Google that you can use to monitor your site’s performance on search results. It helps you see which keywords people use to find your website and resolve any errors that might prevent you from appearing on Google.

    Submitting your multilingual sitemap to the Search Console helps Google quickly discover new content.

    You can simply log in to your account and head to the ‘Sitemaps’ option from the menu on your left. Next, enter your multilingual sitemap URL under the ‘Add a new sitemap’ option and click the ‘Submit’ button.

    Submit your site to search console

    For more details, please see our guide on how to submit your website to search engines.

    Submit Multilingual Sitemap to Bing, Yahoo, and DuckDuckGo

    Similarly, you can submit the sitemap to Bing using the Webmaster Tools. The best part is that, when you submit your site to Bing, it’s also automatically submitted to the Yahoo and DuckDuckGo search engines.

    Submit sitemap in Bing

    You can see our step-by-step tutorial on how to add your website to Bing Webmaster Tools for more details.

    We hope that this article helped you learn how to create a multilingual sitemap in WordPress. You may also want to see our expert SEO tips to optimize your blog posts, and our expert pick of the best keyword research tools to improve your SEO rankings.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post How to Easily Create a Multilingual Sitemap in WordPress first appeared on WPBeginner.