我創建了自定義主題,我正在嘗試使用 wpform 創建聯系表單,但由于某些原因,該表單沒有顯示在我的頁面上
這是自定義主題的代碼
<?php
/* Template Name: CallUS*/
get_header();?>
<section>
<div class="u-clearfix u-sheet u-valign-middle-xs u-sheet-1">
<h1>
call us
</h1>
<img
class="u-image u-image-default u-image-1 u-hidden-xs"
src="<?php bloginfo('template_directory');?>/images/---1113.png"
alt=""
data-image-width="800"
data-image-height="972"
/>
</div>
</section>
<?php get_footer();?>

方式02:
如果您從選單轉到WPForms,那么您可以看到每行的短代碼列。它會像[wpforms id="123"]

從那里復制您的設計短代碼并將其直接使用到您的檔案中,如下所示:
<?php
/* Template Name: CallUS*/
get_header();?>
<section>
<div class="u-clearfix u-sheet u-valign-middle-xs u-sheet-1">
<h1>
call us
</h1>
<img
class="u-image u-image-default u-image-1 u-hidden-xs"
src="<?php bloginfo('template_directory');?>/images/---1113.png"
alt=""
data-image-width="800"
data-image-height="972"
/>
<?php echo do_shortcode('[wpforms id="3306"]');?>
</div>
</section>
<?php get_footer();?>
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/399805.html
標籤:php WordPress的
上一篇:帶有多張桌子的預包裝房間資料庫
