[wp-hackers] admin-bar-css
Dion Hulse (dd32)
wordpress at dd32.id.au
Mon Jan 2 00:34:10 UTC 2012
See, thats why I was asking.. If you wanted to simply forcably hide
the admin bar on the front end, then it'd have been stupid for me to
dig out the way to remove the styling...
On 2 January 2012 11:32, Braydon <ronin at braydon.com> wrote:
> |I don't understand why that matters.
>
> This is what did the trick:
> ||
> add_filter( ||'show_admin_bar'||, ||'__return_false'| |)|
>
> This should be the responsibility of each theme to add the admin bar, every
> theme should have new ways to implement these same features in different and
> progressive ways.
>
>
> On 01/01/2012 04:07 PM, Dion Hulse (dd32) wrote:
>>
>> What are you trying to do exactly? Disable the admin bar on the front
>> end, or simply add your own styling for it?
>>
>> On 2 January 2012 10:59, Braydon<ronin at braydon.com> wrote:
>>>
>>> How do you remove the style admin-bar-css from being added at wp_head() ?
>>>
>>> This is not working:
>>>
>>> add_action( 'wp_print_styles', 'my_remove_admin_bar_css', 100 );
>>>
>>> function my_remove_admin_bar_css(){
>>> wp_deregister_style( 'admin-bar-css' );
>>> }
>>>
>>> Or is this featured required for all front-end development?
>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> !DSPAM:4f00f56e170531336712104!
>>
>
>
> --
> Braydon Fuller
> http://braydon.com/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list