• Resolved tradersammy

    (@tradersammy)


    Hi, I had a problem yesterday with my english home page showing page format errors but I fixed it. Turns out I had to go to WP dashboard > Settings > General and remove the “www” in the WordPress Address (URL) and Site Address (URL).

    But today when I go to foreign language home page, its showing the same errors. When I deactivate Polylang, then the foreign language home page formats correctly.

    • This topic was modified 5 days, 1 hour ago by tradersammy.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tradersammy

    (@tradersammy)

    I forgot to add that it’s most noticeable in inspect mode, in phone view.

    Thread Starter tradersammy

    (@tradersammy)

    I seemed to have found the solution – appearantly Polylang does some things with the permalinks, and I had to add this code to the functions.php.

    add_action('wp', 'polylang_remove_rewrite_rules');

    functionpolylang_remove_rewrite_rules()

    {

    if(function_exists('pll_the_languages')) {

    delete_option('rewrite_rules');

    }

    }

    Seemed to have fixed it. I got it from the web.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.