Skip to content

zkreations/blogger-admin-wp

Repository files navigation

Blogger AdminWP

This project is designed to override the styles of Blogger's administration panel, specifically the "Layout" section, which is used to manage the template's widgets. It is easy to install and does not require advanced knowledge.

Preview

Installation

Copy the contents of the main.css or main.min.css file, then in your Blogger XML template, add the following code just before the </head> tag:

<b:template-skin><![CDATA[
  /* Paste the contents of main.css or main.min.css here */
]]></b:template-skin>

If you are working on a larger project using a development environment (such as Hamlet), you can install it as an npm dependency:

npm install blogger-admin-wp

Then, you need to include the CSS file in your project. The import path would be something like this:

node_modules/blogger-admin-wp/main.min.css

Usage

Once installed, you will see some changes in Blogger's admin panel. The next step is to create the layout, which consists of columns. Each column must have a container with the class layout-section, as follows:

<div class='layout-section'>
  <!-- Rest of the content -->
</div>

This class only affects the design mode. However, if this mandatory container interferes with your template's design, you can create it conditionally:

<b:tag cond='data:view.isLayoutMode' name='div' class='layout-section'>
  <!-- Rest of the content -->
</b:tag>

This way, the container will only be displayed in design mode and will not affect your template's layout. Alternatively, you can add the layout-section class to an existing container in your design. Each container with the layout-section class will be displayed as a column in design mode.

Enabling editing button

By default, to edit a widget you can click anywhere on a widget. If you want to disable this functionality and show an edit button, create a container that wraps all your layout sections and add the layout-edit class:

<b:tag cond='data:view.isLayoutMode' name='div' class='layout-edit'>
  <!-- Rest of the content -->
</b:tag>

Customization

If you want to customize the styles, you can edit the variables located in abstracts/_variables.scss and recompile the CSS file.

License

blog-admin-wp is licensed under the MIT License.

About

Layout for Blogger that mimics the WordPress admin panel

Topics

Resources

License

Stars

Watchers

Forks