Custom code snippets + lost translation
-
1. CUSTOM CODE SNIPPETS
I had to customize SJB plugin code in order to increase job-type column size in list-view and single-jobpost page.
How can I create a custom code snippet to columns so SJB plugin can be updated? I’m already using Code Snippets plugin (https://fi.ww.wp.xz.cn/plugins/code-snippets/), is it possible to use that to this purpose?
Customized code strings:
/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 –>2. LOST TRANSLATION
Last time I updated SJB plugin translations were lost.
How can I prevent this? I’m using Loco Translator.
The page I need help with: [log in to see the link]
The topic ‘Custom code snippets + lost translation’ is closed to new replies.