Add custom logo and message
-
Hi,
I have found something in your support pages. https://www.ads-software.com/support/topic/add-custom-logo-and-message/
I don’t seem to be able to make it work.
I put this in my function child them PHP file:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } function custom_login_page() { ?> <style type="text/css"> body.login div#login h1 a { background-image: url(https://path-to-image.com/logo.png); } body.login p { text-align: center; } </style> <?php } add_action( 'login_enqueue_scripts', 'custom_login_page' ); function add_message() { echo '<p>Hello World!</p>'; } add_action( 'password_protected_login_message', 'add_message' ); ?>
I have tried a few syntaxes since my PHP knowledge is limited.
Should I do something different?
Thanks in advance.
Cheers
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add custom logo and message’ is closed to new replies.