Cannot change shop page title
-
Changing the shop page title in the WordPress page editor does not work for me. The same page title is always displayed (“Shop” in english and “Boutique” in french). I have tried to look in my theme templates (twenty twentyfour) to see if this was hard coded somehow but could not find anything.
grep -r "Boutique" ./wp-content/themes
doesn’t return anything
I even ran a search-replace command with wp-cli on my full database to be sure the page title I wanted to remove was not present, but this didn’t fix my problem.
The most probable explanation to me at this point is that the shop page title is hardcoded in the translation files (wp-content/languages/plugins/woocommerce-fr_FR.po:)
grep -r "Boutique" ./wp-content/languages
returns a couple of matches like
./languages/plugins/woocommerce-fr_FR.po:msgstr "Boutique" ./languages/plugins/woocommerce-fr_FR.po:msgstr "Page Boutique" ./languages/plugins/woocommerce-fr_FR.po:msgstr "Boutique"
Can you confirm that, tell me if it’s normal behavior, and if the only way to solve that is by editing these po files?
Edit : ok now I’m confused. I tried to switch to another theme such as Storefront and now I’m seeing the correct title. But at the same time, there is nowhere inside the twenty twentyfour theme files where the shop page title seems to be hardcoded.
Edit 2: found someone with the same problem: https://www.ads-software.com/support/topic/change-shop-to-my-burger-joint-in-twenty-twenty-four/ But it’s a pity the person who posted the solution posted images that are not online anymore.
- The topic ‘Cannot change shop page title’ is closed to new replies.