WordPress插件的自定义代码段简单作业板

问题描述

我必须自定义SJB插件代码,以增加 list-view single-jobpost 页面中的作业类型列大小,并将面包屑添加 single -jobpost 页面

如何为插件创建自定义代码段,以便可以更新插件?我已经在使用代码片段插件https://fi.wordpress.org/plugins/code-snippets/),可以将其用于此目的吗?

自定义代码字符串:

/simple-job-board/templates/listing/list-view/type.PHP

<!– Start Job Type
================================================== –>
<div class=”col-md-3 col-sm-4 col-xs-12″>
<?PHP if ($job_type = sjb_get_the_job_type()) {
?>
<div class=”job-type”><i class=”fa fa-briefcase”></i><?PHP sjb_the_job_type(); ?></div>
<?PHP } ?>
</div>
<!– ==================================================
End Job Type –>

/simple_job_board/single-jobpost/job-Meta/job-type.PHP

<!– Start Job Type
================================================== –>
<div class=”col-md-3 col-sm-4″>
<?PHP if ($job_type = sjb_get_the_job_type()) {
?>
<div class=”job-type”><i class=”fa fa-briefcase”></i><?PHP sjb_the_job_type(); ?></div>
<?PHP } ?>
</div>
<!– ==================================================
End Job Type –>

/simple_job_board/templates/single-jobpost.PHP

<!-- Start Content Wrapper
================================================== -->
<div class="sjb-page">
    <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
<?PHP
if(function_exists('bcn_display'))
{
bcn_display();
}?>
</div>
    <div class="sjb-detail">
        <div class="list-data">
            <?PHP
            while ( have_posts() ) : the_post();
                /**
                 * Template -> Content Single Job Listing:
                 * 
                 * - Company Meta
                 * - Job Description 
                 * - Job Features
                 * - Job Application Form
                 */
                get_simple_job_board_template('content-single-job-listing.PHP');
            endwhile;
            ?>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<!-- ==================================================
End Content Wrapper -->

<?PHP

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)