How to use “get_home_url()” link and apply custom CSS changes?
-
Hi
Thank you for your plugin. I have recently installed it on a client’s website to style his emails and it is very helpful in doing these things. But I am having some issues.
The WordPress installation has different addresses for home URL and site URL. It is necessary that the link of the header image point to the home URL.
Looking at your plugin’s template file email-header.php this is already the case. But the emails that are sent do not use this URL, instead they use the variable for WP_SITEURL as defined in the wp-config.php file.
I copied your plugin’s template files from “…/plugins/kadence-woocommerce-email-designer/templates/woo/emails” to the child-theme folder at “…/themes/child-theme-folder/woocommerce/emails”. I edited email-header.php and hard coded the link for the href attribute of the anchor tag that wraps around the image tag. But it had no effect.
And when I copied the default email template files of WooCommerce to the directory “…/themes/child-theme-folder/woocommerce/emails” I got a critical error in the Email Customizer and nothing worked, regardless of whether I edited the WooCommerce email template files or not.
So which template files are being used here? If it is not those in your plugin’s folder and neither those in the child-theme’s folder, then which ones is it? Can you point me to the right directory?
Here some details about the installation:
WordPress Version: 5.8.2
WooCommerce Version: 5.9.0
PHP Version: 7.4.26The installed theme is called Storefront which is from the WooCommerce developers themselves. It also is up-to-date. I use a child-theme for all the modifications that I do.
Furthermore the custom CSS style settings which I make are only applied in the preview window of the Email Customizer. The emails which are sent out do not apply the custom CSS style settings. The Emails do apply the settings which I make in the Email Customizer but not the custom CSS settings which I add.
Whether it be a conflict with another plugin or maybe some restrictions due to security settings on the server, what is your best guess to solve these problems, where to look first?
- The topic ‘How to use “get_home_url()” link and apply custom CSS changes?’ is closed to new replies.