imagewize/about-block 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

imagewize/about-block

最新稳定版本:v1.0.1

Composer 安装命令:

composer require imagewize/about-block

包简介

WordPress block plugin for displaying an about section with image and text layout

README 文档

README

A WordPress block plugin that provides a professional about section with image and text layout. Perfect for introducing yourself or your business on any WordPress page.

Features

  • Clean, modern layout with image and text columns
  • Responsive design with mobile-friendly padding
  • Customizable background colors
  • Support for rounded profile images
  • Typography with Open Sans font (with system font fallbacks)
  • Two-paragraph layout with different font sizes for visual hierarchy
  • Full support for WordPress block alignment (wide/full)

Installation

Via Composer

Install the package using Composer:

composer require imagewize/about-block

Via WordPress Admin

  1. Upload the plugin files to the /wp-content/plugins/about-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.

Theme Requirements

Your theme needs to have border support enabled for images. Add the following to your theme's theme.json:

{
  "settings": {
    "blocks": {
      "core/image": {
        "border": {
          "color": true,
          "radius": true,
          "style": true,
          "width": true
        }
      }
    }
  }
}

Without these settings, you won't be able to adjust the border properties of the profile image in the block.

Development

Local Development

  1. Clone the repository
  2. Run npm install
  3. Start development server: npm run start
  4. Build production version: npm run build

The development server will watch for changes and automatically rebuild the block.

Frequently Asked Questions

How do I customize the block content?

Once added to your page, click on any text to edit it directly. You can also upload your own profile image by clicking the image placeholder.

How do I change the background color?

Select the block and use the color settings in the right sidebar to modify the background color.

How do I make the block full width?

Select the block and use the alignment options in the toolbar to choose between default, wide, or full width.

Can I modify the block structure?

Yes, the block template is now unlocked allowing you to add, remove, or rearrange blocks within it. However, we recommend maintaining the basic column structure for optimal appearance.

What image size should I use?

We recommend using a square image of at least 300x300 pixels for the profile picture. The image will automatically be cropped to a circle shape.

Changelog

3.0.0-beta

  • Release and publication at Packagist

统计信息

  • 总下载量: 123
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-02-04