• Resolved alewis

    (@alewis)


    Hi.

    Firstly, I’d like to say what an amazing job you have done here. The admin menu looks fantastic.

    I have the need to show the admin menu panel on each page of my intranet site. I’m using the “admin menu in front end” plugin to accomplish this.

    Sadly, when I visit a non-admin page, I still see my admin menu, but the default WordPress admin style applies.

    Have you any idea why this might be / how I could go about applying the Aquila styling sitewide?

    Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author GuyPrimavera

    (@guyprimavera)

    Hi A Lewis,

    Thanks for your kind words! Yes, in theory the style can be brought to the front-end, but I think the other plugin “Admin Menu in Front End” will probably be changing the markup for the admin area a bit, so I doubt it will work 100%.

    You can add this code to your theme’s functions.php file :

    /// Aquila style on front-end
    
    function aquila_style_on_front_end() {
    
        wp_register_style( 'aquila-admin-style', plugins_url( 'aquila-admin-theme/css/aquila.css' ) );
        wp_enqueue_style( 'aquila-admin-style' );
    
        wp_enqueue_style( 'wp-color-picker');
        wp_enqueue_script( 'wp-color-picker');
    
        if(function_exists( 'wp_enqueue_media' )){
        wp_enqueue_media();
        } else {
        wp_enqueue_style('thickbox');
        wp_enqueue_script('media-upload');
        wp_enqueue_script('thickbox');
        }
    
    }
    add_action( 'wp_head', 'aquila_style_on_front_end', 99 );

    This script will bring the Aquila admin stylesheet to the front-end of the site, but I doubt it’ll work completely as you expect without a lot of modification either to the Aquila stylesheet or the other plugin.

    Let me know if you have any other questions.

    Thanks.

    • This reply was modified 6 years, 1 month ago by GuyPrimavera. Reason: code didn't display properly
    Thread Starter alewis

    (@alewis)

    Hello Guy.

    Credit where it is due, you have done a marvellous job with this plugin/theme.

    Thank you so much for that! That has worked – I will need to tweak the front end admin menu stylesheet, but it doesn’t look like it’ll take too much changing ??

    Thank you again for both the great plugin, and your help!

    Al

    Plugin Author GuyPrimavera

    (@guyprimavera)

    No worries!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not applied site wide’ is closed to new replies.