wordpress前端效果库,可以用来制作首页和详情页。也可以用于Elementor来制作首页.
大家在用elementor做前端组件时,会另外去安装一些addons插件,但这些插件太卡了,制作成本很高。
相比这些插件,用我们这里开发的前端组件,同样用在elementor里,做出来的效率更高。
-----------------
文件区块配置的视频教程: https://www.bilibili.com/video/BV1CGdAYoEiB
如何使用呢?购买源码后,这里的一些主题,我都配置好了。
如果你选的主题,不在其中,则需要在主题里配置下,其实就是改下functions.php,加下面代码:
//-----------
function dmmy_custom_theme_enqueue() {
wp_enqueue_style( 'fa-all6', WPDMSTORE01PATH.'assets/vendor/all.css');
wp_enqueue_style( 'wpdmcompress', WPDMSTORE01PATH.'assets/wpdmcompress.css');
wp_enqueue_style( 'partentstyle', get_template_directory_uri ().'/style.css');
wp_enqueue_style( 'dmwpcss', WPDMSTORE01PATH.'assets/dmwp.css' );
//wp_enqueue_script( 'jquery');
wp_enqueue_script( 'dmwp22', WPDMSTORE01PATH . 'assets/dmwp.js',array('jquery'));
// wp_enqueue_script( 'bootstrap-js', WPDMPATH_MB001 . 'assets/vendor/bootstrap.bundle.min.js',array('jquery'));
//wp_enqueue_script( 'dmcustom', WPDMPATH_MB001.'dmcustom.js');
wp_enqueue_script( 'wpdmcompress', WPDMSTORE01PATH.'assets/wpdmcompress.js');
}
add_action( 'wp_enqueue_scripts', 'dmmy_custom_theme_enqueue',99 ); //99 is order
function dmmy_custom_theme_enqueue22() {
wp_enqueue_style( 'bootstrap55', WPDMSTORE01PATH . 'assets/vendor/bootstrap.min.css');
}
add_action( 'wp_enqueue_scripts', 'dmmy_custom_theme_enqueue22' );
//--------------
define( 'WPDMSTORE01ROOT',WP_CONTENT_DIR.'/wpdmstore/');
define( 'WPDMSTORE01PATH',content_url().'/wpdmstore/');
require WPDMSTORE01ROOT.'func/func_init.php';
-------------------------
footer.php加:
<?php
dmshowhomeidfix();
?>
以下底部代码可选:
<style type="text/css">
.dmfooter1{background: #151535}
.dmfooter2{background: #16164b}
.dmfooter3{background: #0e0e4b}
</style>
<footer id="footer-section" class="footer-section footer footer-dark">
<?php
wpdmblock('jteffe_footer/footer');
//wpdmblock('jteffe_chat/kfgroup');
?>
</footer>
-------------------
复制 home_dmlanding.php 文件到主题目录,或者用elementor做为模板。
代码:
<?php /* Template Name: 首页或登陆页 Landingpage */
get_header();
?><div class="wpdmindexwrap">
<?php the_content(); ?>
</div>
<?php
get_footer();
---------------