functions.php
define('site_name','株式会社ABC');
footer.php
<script>
$(function(){
$('.wsp-pages-title').each(function(){
var txt = $(this).html();
$(this).html(txt.replace(/Pages/g,'<?php echo esc_html(site_name);?>'));
});
});
</script>
define('site_name','株式会社ABC');
<script>
$(function(){
$('.wsp-pages-title').each(function(){
var txt = $(this).html();
$(this).html(txt.replace(/Pages/g,'<?php echo esc_html(site_name);?>'));
});
});
</script>
コメント