Tagged: woocommerce
-
AuthorPosts
-
September 13, 2019 at 12:52 pm #1137986
Hi,
I customized the homepage of my Woocommerce shop, creating a new page and using the advanced layout editor.
Now, I’m not able to change the url of shop home page in the page title of a single product (either in the title, “Shop”, and in the breadcrumbs).
I already tried to follow your suggestions (#2: adding code to functions.php) in https://kriesi.at/documentation/enfold/woocommerce-shop/, but the system crashes.
I also tried to add the following code to functions.php:add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
function woo_custom_breadrumb_home_url() {
return ‘http://www.armonialab.com/gsg/shop2’;
}
add_filter( ‘woocommerce_breadcrumb_defaults’, ‘woo_custom_breadrumb_home_url’, 20 );but nothing changed.
Could you help, please?
Thanks.
September 17, 2019 at 5:20 am #1139007Hey AlbRos,
Thank you for the update.
We removed the default shop page and manually set the permalink from “shop2” to “shop”. However, we can’t seem to add the following code in the functions.php without getting an error. This will enable the ALB for the shop page.
add_theme_support( 'avia_custom_shop_page' );
Please add that code in the functions.php file.
This is the error:
Impossibile comunicare con il sito per verificare errori irreversibili, la modifica PHP è stata annullata. Dovrai caricare la modifica in qualche altro modo, ad esempio usando SFTP
Best regards,
IsmaelSeptember 17, 2019 at 10:28 am #1139048Hi Ismael,
thank you for your answer.
Some notes:1. As this website has been built on a test server and it will be re-built on another server, I need to know how did you make the shop homepage url change (even as a private message – otherwise I’ll have to ask you again a support…).
2. I tried to add your code in the functions.php file (the one in wp-includes directory, is it correct?), but I find an error again (if you want, I can give you ftp access).
3. A strange behaviour of general homepage url: in Settings–>reading, I set it at the page “00test”. However, if you click on the logo you will always go to the page named “Home”. I already reloaded permalinks but nothing changed.
As a summary, I need to have a setting as follow:
– homepage of the website: the page called “00test” (now it goes to the page “home”)
– homepage of the shop: the page called “Shop” (and that’s ok, now)
– Link of the “Ritorna al negozio” (back to the shop) button in the cart page going to “shop” page (actually, it goes to “pagina di esempio” – ???)Thanks for your help.
Alberto
- This reply was modified 5 years, 2 months ago by AlbRos.
September 18, 2019 at 3:28 pm #1139523Hi,
Thank you for the update.
1.) We removed the old or default “Shop” page, then adjusted the permalink or URL of the new shop page manually.
2.) Yes, please post the FTP details in the private field.
3.) You have to set the front page in the Enfold > Theme Options panel. Don’t forget to reset the Settings > Reading options back to default.
Best regards,
IsmaelSeptember 18, 2019 at 5:45 pm #1139603Hi Ismael,
1. ok, thanks.
2. see private content
3. I did it, now it’s okBest regards,
AlbertoSeptember 19, 2019 at 10:40 am #1139837Hi,
The snippet is already there when we edited the functions.php file. And the shop page seems to be displaying as it should be. (see private field)
Thank you for the update.
Best regards,
IsmaelSeptember 19, 2019 at 11:13 am #1139853Hi,
yes, I see the shop homepage it’s ok now.
There is still a url problem in two cases:
1. In “Cart” page, the url of the button “Ritorna al negozio” (back to the shop) goes to “pagina di esempio” page and not to “shop”.
2. Same problem, if I you look at breadcrumbs in a single product page: see the page in private field.
Thanks,
AlbertoSeptember 20, 2019 at 4:43 am #1140096Hi,
Thank you for the update.
We can’t access the dashboard anymore using the login details above. Did you change it? Please try to set the current shop page as the base shop page in the WooCommerce > Settings > Products panel.
Best regards,
IsmaelSeptember 20, 2019 at 7:25 am #1140128Hi Ismael,
I did that setting and now all it’s ok.
Thank you very much for your help.
Best regards,
AlbertoSeptember 20, 2019 at 9:36 pm #1140347Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Change url of Woocommerce shop homepage’ is closed to new replies.