php snippet is not saved.
-
I am a subscriber of WPBeginner website and YouTube.
Recently I watched the “Insert Headers and Footers” plugin evolve into WPCode via WPBeginner YouTube. Thanks for making a great plugin.Here is a short php code snippet to change the wordpress logo when admin login.
function my_login_logo() { ?> <style type="text/css"> body.login div#login h1 a {background-image: url('https://fastreport.co.kr/wp-content/uploads/2022/07/auto_issue_logo.svg'); background-size: contain; width: 275px; height: 39px; margin-bottom: 32px;} </style> <?php } add_action( 'login_enqueue_scripts', 'my_login_logo' );
Afterwards I changed the image address of https://fastreport.co.kr/wp-content/uploads/2022/07/auto_issue_logo.svg to https://cdn.fastreport.co.kr/fastreport/2022/07/22183728/auto_issue_logo.svg but it is not saved.
I found that the same issue is occurring on both the Newspaper theme and the GeneratePress theme site.
I tried disabling all plugins and changing to Twenty Twenty-Two theme, but still the same problem.
WPCode will refuse to save if there is an image URL that is different from the site address. I found the same issue with other snippets related to image URLs.I don’t know if this only happens when the image address is different from the site domain, or if it always happens when a different address is in the snippet. But this seems to be an obvious bug.
Please check. Thanks
The page I need help with: [log in to see the link]
- The topic ‘php snippet is not saved.’ is closed to new replies.