
內容簡介
將 ACF 的可彈性佈局列表轉換為漂亮且使用者體驗良好的快顯視窗。
如何實現?
預設會有一個可彈性佈局的「預設」圖像,但是你可以自行客製化,加入自己的圖像。
圖像規範
圖像的尺寸應為 366 x 150 或更大的 732 x 300。
圖像的檔名應以可彈性佈局的關鍵字為基礎(push_2_light),不應包含底線,而應使用破折號(push-2-light.[副檔名])。
圖像副檔名的優先順序為 .jpg、.jpeg、.png 和 .gif。
圖像放置位置
圖像應該放在你的佈景主題 wp-content\themes\my-theme\assets\bea-beautiful-flexible\ 目錄下。如果你有子佈景主題並加入了圖像,這些圖像將覆蓋父佈景主題上的圖像。
目錄的解析優先順序為:外掛目錄、子佈景主題目錄、佈景主題目錄。
此外,你也可以運用篩選器以收集你所有的圖像至同一資料夾中:
add_filter( 'bea.beautiful_flexible.images_path', $path );
最後,你可以透過這樣的方式篩選所有的圖像:
add_filter( 'bea.beautiful_flexible.images', $images );<h3>Who ?</h3>
貢獻者
特別感謝 HWK,我們在他的博客文章的基礎上,使用 JS+CSS 創建了這個 WordPress 外掛。
創作者
這個外掛是由 Be API 創建,自 2009 年以來一直是法國 WordPress 領先機構。我們位於巴黎,擁有超過 30 名員工,始終在招聘有趣且有才華的人才。因此,我們很樂意與您合作。
此外掛只是有維護,也就是我們不能保證免費支援。請考慮回報 問題,同時請耐心等待。
為了簡化問題提交過程並更快地解答,我們僅使用 Github,請勿使用 WP.Org 支援,因為不會被考慮。
外掛標籤
開發者團隊
原文外掛簡介
Transform ACF’s flexible layouts list into a nice and UX popup.
How ?
By default there is a “default” image for layouts. But the idea is to customize them by adding your own.
Image convention
The size of image should be 366 x 150 or bigger 732 x 300.
They should be named based on the flexible key (push_2_light) with no underscores but dashes (push-2-light.[extension]).
The following extensions will be resolved in that order: .jpg, .jpeg, .png and .gif.
Where images should be situated
They should more likely be situated into your theme wp-content\themes\my-theme\assets\bea-beautiful-flexible\. But if you have a child-theme and added images into it, these will overwrite those from parent-theme.
The following directories will be solved according to order: plugin’s folder, child theme’s folder, theme’s folder.
Also note that you can filter this path to gather all your images into a same folder :
add_filter( 'bea.beautiful_flexible.images_path', $path );
Finally, you could filter all images like this :
add_filter( 'bea.beautiful_flexible.images', $images );
Who ?
Credits
Special thanks to HWK, from his blogpost, we created a WordPress plugin with custom tuning (js+css).
Creator
Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.
This plugin is only maintained, which means we do not guarantee some free support. Consider reporting an issue and be patient.
To facilitate the process of submitting an issue and quicker answer, we only use Github, so don’t use WP.Org support, it will not be considered.
