No plugin required
This can easily be done without a plugin and by using WP page templates
- Remove all information within
/* */ and add
/* Template Name: Spanish Pages */
- Edit a page then on the right side look for "template" which is under attributes, then change the page template to
Now you have a unique header and footer which will give you more control over your different languages.
What about Hreflang Plugins?
You could however use a hreflang manager however this simply controls the
<head> but if you want full control then having template pages is the way to go, espeically if you want different sidebars, footers and headers to match the langure of the page.
3 Methods to rewrite URLs with country speific codes e.g /es/
- Add a blank page called es with permalink
/es/, then make the page noindex, then on your pages that are spanish, simply use parent
es which will add the country code to the URL.
- Use a rewrite plugin.
- Use the WordPress Rewrite API