vpgomes
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
None, I’m using two functions:
function translation($pt, $en, $es) { $lang = get_site_language(); if ($lang === 'en') { return $en; } elseif ($lang === 'es') { return $es; } else { return $pt; } } function get_site_language() { $uri = get_page_uri(); if (strpos($uri, 'en') === 0) { return 'en'; } elseif (strpos($uri, 'es') === 0) { return 'es'; } else { if ($_GET['lang'] == 'en' || $_GET['lang'] == 'es') { return $_GET['lang']; } elseif (preg_match('/\/[posts|category|tag]\-en/', $_SERVER['REQUEST_URI'])) { return 'en'; } elseif (preg_match('/\/[posts|category|tag]\-es/', $_SERVER['REQUEST_URI'])) { return 'es'; } else { return 'pt'; } } }Forum: Fixing WordPress
In reply to: Gutenberg block editor doesn’t show, just the classicThis two other posts were created on function.php on my custom theme. The problem was that there was no ‘suports’ and ‘show_in_rest’ tag on the code, so I added it and worked.
The two lines I added were'show_in_rest' => true, 'supports' => array('title', 'editor', 'thumbnail')
Thanks Steven for the help.Forum: Fixing WordPress
In reply to: Gutenberg block editor doesn’t show, just the classicI have ninja forms for example, if I disable all plugins with Health Check it won’t make the forms stop working or reset the configuration?
- This reply was modified 5 years ago by vpgomes.
Forum: Fixing WordPress
In reply to: Gutenberg block editor doesn’t show, just the classicAnd my wp version is 5.3.8
Forum: Fixing WordPress
In reply to: Gutenberg block editor doesn’t show, just the classicI don’t have any Classic editor plugin, that’s the problem.
Viewing 5 replies - 1 through 5 (of 5 total)