Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Layers

Apraksts

The simplest and most elegant way of adding full-width, layered content areas to your website, with a simple shortcode: [layer]…[/layer]. Add as many layers and colors and images as you like.

Uzstādīšana

  1. Install and activate the plugin.
  2. Create a new page or edit an existing one.
  3. Under Page Attributes, change the Template to Layers and save.
  4. Now, add as many content sections as you like by adding the [layer]...[/layer] shortcode into the content area of your page.

Example with all the optional parameters:

[layer id="" class="" color="" padding="" background-color="" background-image=""]
Hello World!
[/layer]

You may add whatever id you like and as many classes (space-separated) as you like.

Built-in classes include:

left
center
right
layer-inner
overlay
force-white-text
force-black-text

layer-inner creates a more narrow content area within the layer, if needed.

overlay allows you to fade a background image for more legible text, if needed.

force-white-text and force-black-text can override theme styles to force all text within the layer to be white or black, if and when needed.

For color, padding, background-color, and background-image parameters, you may treat this just like normal CSS, adding either a color name like red or color code like #ff0000 or a full image URL.

I’ve tried to think of and address common pitfalls that might occur with themes and tested with the most popular themes to work out wonky design issues. Even so, there are just too many variables. It’s inevitable that this plugin will break someone’s design on the Layers page only (as everything is self-contained), so I’ll be available to support you by either adding updates to the plugin or offering you custom CSS for your unique situation.

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Layers” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Layers&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.