前言介紹
- 這款 WordPress 外掛「Fundamento」是 2022-03-27 上架。
- 目前有 90 個安裝啟用數。
- 上一次更新是 2024-10-28,距離現在已有 188 天。
- 外掛最低要求 WordPress 5.2 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
w3dev | torchsmith |
外掛標籤
skin | globals | template | elementor |
內容簡介
你是否曾經希望修改 Elementor 在您的網站上呈現其小工具的方式?
Fundamento 提供了一種更簡單的方式,讓您可以將額外的 CSS 類注入到 Elementor 的小工具中。
使用方法
藉由在您的 functions.php 文件中使用以下代碼,告訴 Elementor 您有一個新的外觀可用:
新增一個應用程式以初始化 Fundamento,然後添加一個對 Fundamento 的 register_skin() 函數的調用:
if(is_plugin_active('fundamento/fundamento.php')) {
function fundamento_init() {
// 創建新的 Fundamento 實例
$f = \Fundamento\Plugin::instance();
// 註冊新的外觀
$f->register_skin([
'name' => 'Red', // 您的新外觀名稱,它將出現在 Elementor 中
'element' => 'button', // 您要套用皮膚的元素
'is_default' => true, // 選填 - 是否將此外觀作為預設設置在所有此類元素上
'css' => get_stylesheet_directory_uri() . '/skins/button/red.css', // 選填 - 讓 Fundamento 加入額外的 css 檔案
'js' => get_stylesheet_directory_uri() . '/skins/button/red.js', // 選填 - 讓 Fundamento 加入額外的 js 檔案
]);
}
add_action('elementor/init', 'fundamento_init');
}
在您的 CSS 檔案中新增選擇器:
/* 類別始終是 .skin-{element}-{name} */
/* 名稱轉換為小寫,空格則改為 "-" */
.skin-button-red {
background: #f00;
}
藉由在您的 functions.php 文件中使用以下代碼,告訴 Elementor 您有一個新的內邊距預設:
新增一個應用程式以初始化 Fundamento,然後添加一個對 Fundamento 的 register_padding() 函數的調用:
if(is_plugin_active('fundamento/fundamento.php')) {
function fundamento_init() {
// 創建新的 Fundamento 實例
$f = \Fundamento\Plugin::instance();
// 註冊新的外觀
$f->register_padding([
'name' => 'Standard', // 您的內邊距預設名稱,它將出現在 Elementor 中
'element' => 'section', // 您要套用內邊距預設的元素
'padding' => '30px', // 此預設應套用的內邊距值和單位
'is_default' => true, // 選填 - 是否將此內邊距預設作為預設設置在所有此類元素上
]);
}
add_action('elementor/init', 'fundamento_init');
}
原文外掛簡介
Have you ever wanted to alter the way Elementor renders one of its widgets on your website?
Fundamento provides an easier way to achieve this by allowing you to inject extra CSS classes into Elementor’s widgets.
Usage
Tell Elementor that you have a new skin available by utilizing the following code in your functions.php file:
Add an action to initialize Fundamento, then add a call to Fundamento’s register_skin() function:
if(is_plugin_active('fundamento/fundamento.php')) {
function fundamento_init() {
// create a new Fundamento instance
$f = \Fundamento\Plugin::instance();
// register a new skin
$f->register_skin([
'name' => 'Red', // The name of your new skin, as it will appear in Elementor
'element' => 'button', // The elementor element you are skinning
'is_default' => true, // optional - should this skin be set by default on all elements of this type
'css' => get_stylesheet_directory_uri() . '/skins/button/red.css', // optional - have Fundamento enqueue an extra css file
'js' => get_stylesheet_directory_uri() . '/skins/button/red.js', // optional - have Fundamento enqueue an extra js file
]);
}
add_action('elementor/init', 'fundamento_init');
}
Add the selector to your css file:
/* Class will always be .skin-{element}-{name} */
/* Name is transformed to lowercase and spaces are replaced with "-" */
.skin-button-red {
background: #f00;
}
Tell Elementor that you have a new padding preset by utilizing the following code in your functions.php file:
Add an action to initialize Fundamento, then add a call to Fundamento’s register_padding() function:
if(is_plugin_active('fundamento/fundamento.php')) {
function fundamento_init() {
// create a new Fundamento instance
$f = \Fundamento\Plugin::instance();
// register a new skin
$f->register_padding([
'name' => 'Standard', // The name of your padding preset, as it will appear in Elementor
'element' => 'section', // The elementor element you are skinning
'padding' => '30px', // The value and unit of the amount of padding this preset should apply
'is_default' => true, // optional - should this skin be set by default on all elements of this type
]);
}
add_action('elementor/init', 'fundamento_init');
}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Fundamento」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 |
延伸相關外掛(你可能也想知道)
Elementor Website Builder – More Than Just a Page Builder 》, 全球超過 1000 萬個網站的領先網站建立平台, Elementor 是專為 WordPress 設計的領先網站建立平台,使網站製作者能夠使用直覺式的視覺建立工具建立專業、像...。
Ultimate Addons for Elementor (Formerly Elementor Header & Footer Builder) 》lt;br />– Save the section.– Set content settings and design settings.– Publish it., Step 6 – Set the created template as h...。
Essential Addons for Elementor – Popular Elementor Addon With Ready Templates, Advanced Widgets, Kits & WooCommerce Builders 》Elementor 增強套件:90+ 創意元素和擴充功能能提升你的 Elementor 建站體驗。使用這些易於使用的元素,可以更輕鬆地製作出比以前更漂亮的 WordPress 網頁和...。
Starter Templates – AI-Powered Templates for Elementor & Gutenberg 》免費模板,支援 Elementor、Beaver Builder 和 Block Editor, 使用 Starter Templates 外掛,只需數分鐘即可建立專業且完美的網站。此外掛為使用者提供超過 2...。
Envato Elements – Photos & Elementor Templates 》使用 Envato Elements WordPress 外掛,您可以更快地建立專業 WordPress 網站。, 在 WordPress 上瀏覽並匯入 Elementor 範本和高級庫存照片,無需離開 WordPr...。
Premium Addons for Elementor 》使用超過60個高度可自訂的外掛和小工具以及400多個預製範本,讓你能夠無需編碼更快地建立複雜的網站,提升你的Elementor頁面建構器的能力。Elementor和Premiu...。
Royal Elementor Addons and Templates 》f="https://royal-elementor-addons.com/elementor-pricing-tables-widget/?ref=rea-wpo-pp-details-tab" rel="nofollow ugc">Pricing Table, Team members, ...。
Happy Addons for Elementor 》p> Happy Addons for Elementor 是一個最好的附加元素,包括頂部和底部樣式設計、單個文章模板設計和存檔頁面模板設計,還有143+免費和專業 Widgets以及23+處...。
Unlimited Elements For Elementor 》透過 Unlimited Elements for Elementor,將你的 Elementor 頁面建置體驗提升至新的層次。這是你需要的最後一個小工具套件,一切都在這裡,並提供超過 100 個...。
Sticky Header Effects for Elementor 》Sticky Header Effects for Elementor 是一個插件,為 Elementor Pro 2.0 中引入的「sticky」標題特性添加了實用選項。當訪客開始向下滾動頁面時,它為用戶提...。
Jeg Elementor Kit 》這是為了 Elementor 頁面建構器所設計的額外小工具,它包含 40 種高度可自訂的小工具。, 必要小工具, 我們提供小工具,您可以按照自己的需求進行自訂。, , 手...。
Qi Addons For Elementor 》Qi Addons for Elementor是由獲獎的高銷售量WordPress主題作者之一,Qode Interactive開發的自定義和完全彈性的Elementor小工具的最大免費庫。 Qi Addons的免...。
ShopLentor – WooCommerce Builder for Elementor & Gutenberg +20 Modules – All in One Solution (formerly WooLentor) 》如果你擁有一個 WooCommerce 網站,你幾乎一定會想要使用這些功能:Woo Builder(Elementor WooCommerce Builder)、WooCommerce 模板、WooCommerce 小工具、...。
The Plus Addons for Elementor – Elementor Addons, Page Templates, Widgets, Mega Menu, WooCommerce 》tection and Resolution, Fast Loading Speed, and Responsive Design, , And much more!, , Join us today and take your Elementor experience to the next...。
Template Kit – Import 》一個範本套件是一組預先設計好的起始範本,供 WordPress 網站建立者使用,並具有統一的視覺風格。, 您可以使用此外掛程式匯入 Elementor 的範本套件。, 啟用...。