This topic has 15 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #95776
     love2playgames
    Participant

    Hi 7queen,

    Beside using a plugin i was using and try not to use extra plugin, is there’s a way I can load a background image on the admin login page?
    I got the css going, but it wouldn’t work in the Child.css and quick.css?

    body.login {
    background: #486c6d url(“https://www.damndramaqueen.com/wp-content/uploads/damndramaqueen-home-logo.png”) repeat scroll 0 0 !important;
    }

    Please advice, Thanks

    Attachments:
    You must be logged in to view attached files.
    #95858
     Laura
    Moderator

    Hello, it wont work at your style.css but you can add it to wordpress admin css with this function at functions.php

    COPY CODE
    
    add_action('admin_head', 'kleo_admin_login');
    
    function kleo_admin_login() {
      echo '<style>
        body.login {
    background: #486c6d url(“https://www.damndramaqueen.com/wp-content/uploads/damndramaqueen-home-logo.png”) repeat scroll 0 0 !important;
    }
      </style>';
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #95887
     love2playgames
    Participant

    Hi Laura,

    Hmm, I have no luck on the background? This is the only the functions.php I can find unless is the wrong functions.php ?
    /public_html/wordpress/wp-content/themes/twentyfifteen/functions.php

    I pasted to the very bottom, save it, uploaded to any of this directory below, no luck for both? Any idea, I must doing something wrong? Can you provide the right directory?

    /public_html/wordpress/wp-admin/css

    /public_html/wp-admin/css

    Please advice, Thanks,

    #96001
     Laura
    Moderator

    Hello, at wp-content/themes/sweetdate-child/functions.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #96015
     love2playgames
    Participant

    Hi Laura,

    hmm , I pasted the code in the functions.php. I got HTTP 500 Internal Server Error?

    I attached the code in the text file what I have in it.

    Help, Thanks

    Attachments:
    You must be logged in to view attached files.
    #96501
     Laura
    Moderator

    Hello, can you share ftp so i can test other ways?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #97137
     love2playgames
    Participant

    Hi Laura,

    Is there’s a file you can send to me perhaps I can also learn by this way? Just for my future reference if I ever need to fix it myself? Hope not 🙂

    Please advice, Thanks

    #97249
     Laura
    Moderator

    Hello, try this code instead

    COPY CODE
    
    function my_login_logo() { ?>
        <style type="text/css">
            .login {
        background-image: url(http://www.psdgraphics.com/file/abstract-design.jpg);
        padding-bottom: 30px;
        background-size: cover;
        background-attachment: fixed;
    }
        </style>
    <?php }
    add_action( 'login_enqueue_scripts', 'my_login_logo' );
    

    Change background image as you wish

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #97409
     love2playgames
    Participant

    Hi Laura,

    I still have no luck at all for the background? I even cleared the browser cache and refreshed the page.

    I wonder is it because the site was optimized at one time (which got something to do to the css )?

    BTW, do I need to put some kind of code inside the style.css ? Maybe that’s why is not reading? If so, what code do I need?

    I attached 2 files for you to review functions and where the file located

    Please adivce. Thanks,

    Attachments:
    You must be logged in to view attached files.
    #97480
     Laura
    Moderator

    Hello, well i tested the code at my website and worked perfectly so this might be an issue with your site, can you share ftp and admin credentials? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #97555
     love2playgames
    Participant

    Hi Laura,

    I will just use the plugin after all. It should already work putting this code, apparently, there might be a conflict with the site optimization and other css / javascripts. I better not to chance it for now. I did paid a lot money for someone to optimized the site. this is more important for me to keep.

    I will keep the codes for future use if ever get to the stage it can be use.

    Thanks so much for helping big time. 🙂
    Jimmy

    #97603
     Laura
    Moderator

    Hello, it was a pleasure to help you 🙂 If you need anything else, let me know

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #121438
     love2playgames
    Participant

    Hi Laura,

    I try to get this to work. I am confused from your replied on posted 10261 ? You say; it wont work at your style.css but you can add it to wordpress admin css with this function at functions.php

    Am I suppose put thi codes you give me in the “wordpress admin.css and the same codes in the functions.php in the sweetdate-child directory also?

    add_action(‘admin_head’, ‘kleo_admin_login’);
    function kleo_admin_login() {
    echo ‘<style>
    body.login {
    background: #486c6d url(“https://www.damndramaqueen.com/wp-content/uploads/damndramaqueen-home-logo.png”) repeat scroll 0 0 !important;
    }
    </style>’;
    }

    Beside share ftp and admin credentials? Can you possible show me the STEPS to do it? That way I know how to do it if I needed it in the future. I’m confused may be that’s why is not working?

    Please advise, Thanks,

    #121736
     Laura
    Moderator

    Hello, what i meant is to add that code to your child theme functions.php to see if it works
    Sorry for the misunderstanding
    About ftp, are the credentials so login to your hosting files, your hosting provider should give you ftp credentials, usually they are, server, username and password, sometimes server is the domain
    About admin credentials, those are the ones you use to login to wordpress 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #121781
     love2playgames
    Participant

    Hi laura,

    I am trying to put a new ticket in for support for other help! I don’t see on the sidebar to create a NEW ticket for this forums, unlike before? Can you tell me why and how to get back in?

    Please advice, thanks

    #122131
     Laura
    Moderator

    Hello, you will find it at Get support menu 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 16 posts - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?