SSL問題 https://www.bfm.fju.edu.tw/ 未被納入
解法:WP設定 一般 https://www.bfm.fju.edu.tw/web 改為 https://www.bfm.fju.edu.tw/web (不加入www)
::::新BFM網站:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ACCESSPRESS theme: ELIGHTEN
資料夾位置: 根目錄 public.html/www.bfm.fju.edu.tw/web
主機資訊
DB:tcscopec_bfm2017 DB user:tcscopec_tkp
https://www.bfm.fju.edu.tw/web/mybfm
後台管理者 bfmadmin pass: BranResearc
bfmmanager pass:1bxm2bxm
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
BFM外掛紀錄
(1)後台保護Protect WP-Admin (只使用保護網址 登入畫面使用AG Custom)
(2)Facebook Button by BestWebSoft (不須安裝此外掛)
(3)Download Attachment dFactory
(4)TinyMCE Advanced (new)
(5)Enhanced Media Library
(6)AG Custom Admin ++ (登入與後台客製美化)
::::::GA 追蹤碼安裝例:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
安裝外掛:Google Analytics by MonsterInsights
記得先產生新的GA追蹤碼。再回到外掛,先處理驗證Authenticate,依指示進行,取得認證碼,並貼上。
::::::頁尾修改 < 直接改footer.php >:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<div class="site-info">
<?php
$enlighten_footer_text = get_theme_mod('enlighten_footer_text');
?>
<span class="footer_text"><?php if($enlighten_footer_text){echo esc_attr($enlighten_footer_text);} ?> <span class="sep"> | </span> <?php _e('Powered by','enlighten');?> : <a target="_blank" href="<?php echo esc_url('http://www.bfm.fju.edu.tw/');?>"><?php _e('BFM','BFM'); ?></a> <?php _e('|','by');?> <a target="_blank" href="<?php echo esc_url('http://www.bfm.fju.edu.tw/web');?>"><?php _e('FU JEN UNIVERSITY','FU JEN UNIVERSITY');?></a></span>
</div><!-- .site-info -->
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
(1) 增加portfolio (Intro) 內文引用長度。 英文版 改回40 不然引用文字會變太長
外觀/主題編輯器
Enlighten: section-portfolio.php (template-parts/section-portfolio.php)
</div>
<?php } ?>
<?php if($enlighten_content){ ?>
<div class="port_content_wrap wow fadeInUp"><?php echo wp_kses_post(wp_trim_words($enlighten_content,'100','...')); ?></div>
<?php } ?>
</div>
</div>
<?php
endwhile;
?> </div> <?php
?> </div> <?php
endif;
}
}
(2) 首頁slider的 標題與引用文字的長度 英文版 改回40
Enlighten: enlighten-functions.php (inc/enlighten-functions.php)
<div class="slider_title wow fadeInUp"><?php echo esc_attr(wp_trim_words(get_the_title(),'100','...')); ?></div>
<?php } ?>
<?ph預覽文字增加p if(get_the_content()){ ?>
<div class="slider_content wow fadeInUp"><?php echo apply_filters('the_content' , wp_kses_post(wp_trim_words(get_the_content(),100,'...')));?> </div>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</a>
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::使用Wordpress 摘要欄位,讓文首頁文章的引用文字變多::::::
::::::::::分類顯示文章的引用文字增加:::::content.php:::::::::::80改為300 500::::::::::::::::::::::::::::::::::::::::::::::::
(3) 底端 LATEST NEW 引用文字增加 :::::::::::::::::::::::::::::::::::::::::::::::::::::::英文版 改回60
Enlighten: section-news_twitter_message.php (template-parts/section-news_twitter_message.php)
原20 修改為320
<?php if(get_the_title()){ ?>
<div class="rn_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
<?php } ?>
<?php if(get_the_content()){ ?>
<div class="rn_content"><?php echo wp_kses_post(wp_trim_words(get_the_content(),'320')); ?></div>
<div class="read_more_ln"><a href="<?php the_permalink(); ?>"><?php _e('Read More','enlighten'); ?></a></div>
<?php } ?>
</div>
<?php } ?>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
(4) SERVICE SECTION 引用文字增加:::::::::::::::::::改為32約引用4行:::::::::::::::::::::::::::::::::
Enlighten: section-service.php (template-parts/section-service.php)
<?php if($enlighten_content){ ?>
<div class="service_content"><?php echo esc_attr(wp_trim_words($enlighten_content,'32','...')); ?></div>
<?php } ?>
</div>
</div>
<?php
再改functions.php 位置:wp-content/themes/enlighten/ (改SERVICE區塊的預覽圖片 太小 49x46)
70行 add_image_size('service_image','98','92',true);
*改了以後,要傳新照片,會產較大的縮圖49x46-->98x92,但效果不好,回用原始設定。
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
hp
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package enlighten
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if(has_post_thumbnail()) : ?>
<?php $enlighten_img = wp_get_attachment_image_src(get_post_thumbnail_id(),'single_page');
$enlighten_img_src = $enlighten_img[0]; ?>
<div class="post-image-wrap">
<a href="<?php the_permalink(); ?>">
<img src="<?php echo esc_url($enlighten_img_src); ?>" />
</a>
</div>
<?php endif; ?>
<div class="post-meta">
<?php
if ( is_single() ) {
?> <a href="<?php the_permalink() ?>"><h1 class="entry-title"><?php the_title(); ?></h1></a> <?php
} else {
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta clearfix">
<div class="post-date">
<?php enlighten_posted_on(); ?>
</div>
<div class="post-comment"><a href="<?php comments_link(); ?>"><i class="fa fa-comment-o"></i><?php comments_number(0); ?></a></div>
</div><!-- .entry-meta -->
<div class="entry-content">
<?php echo apply_filters('the_content' , wp_kses_post(wp_trim_words(get_the_content(),300,'...')));?>
<a href="<?php the_permalink(); ?>"><?php _e('Continue Reading', 'enlighten'); ?></a>
<?php /*
<?php
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::STAFF 照片留間距:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<img src="smiley.gif" alt="Smiley face" width="42" height="42" align="middle">
style="margin-right: 80px;"