Forums

block css (13 posts)

  1. Vast HTML
    Member
    Posted 2 years ago #

    i want to modify the login.php. how can i block the color-freash.css and login.css from being entered into the header info?

  2. Vast HTML
    Member
    Posted 2 years ago #

    ?

  3. iridiax
    Member
    Posted 2 years ago #

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    If you just want to re-style the login, have a look at the BM Custom Login plugin.

  5. Vast HTML
    Member
    Posted 2 years ago #

    @ esmi i have my own project i got to do, i cant use a plugin.

    @Iridiax that does not show me how to block the original css.

  6. Vast HTML
    Member
    Posted 2 years ago #

    I know this is possible please someone help me :(

  7. iridiax
    Member
    Posted 2 years ago #

    What are you trying to do and why do you need to block these files instead of just restyling them?

  8. Mark / t31os
    Moderator
    Posted 2 years ago #

    You don't need to block it, you can over-ride the CSS with your own..

    In the theme functions.php:

    function custom_login_css() {
    	echo '
    	<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/login.css" />
    	';
    }
    add_action('login_head', 'custom_login_css');

    Then when adding your own CSS to that file, just add !important onto the end of definitions that won't stick...

    Works for me... ;)

    You can of course change the path, stylesheet and function name as you see fit.

  9. Vast HTML
    Member
    Posted 2 years ago #

    I need a way to block the css though not just override it. I know that i can override it with my own css but there is a few manipulations i want to make that i need to make that it would be easier to just block and not override. I have seen this done before so i know there is a way.

  10. Mark / t31os
    Moderator
    Posted 2 years ago #

    I spent hours looking for a way once before, i'd appreciate seeing the method if you find it again...

    Other then whats been mentioned already of course.. ;)

  11. Vast HTML
    Member
    Posted 2 years ago #

    haha if i find it ill post. still looking.

  12. Vast HTML
    Member
    Posted 2 years ago #

    I found out how to block the css like i was looking for, made a plugin from it, which is what i was doing in the first place :) http://wordpress.org/extend/plugins/login-xchange/

  13. Mark / t31os
    Moderator
    Posted 2 years ago #

    Nice find.. (i did actually have a search again yesterday, and still missed it).

    Thanks for taking the time to post back... ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.