oceanpower.com.tw
D: tcscopec_opi201610 u: tcscopec_tkp
前:opiku (管員) 後:Opi899Opi89
前:OPI (編輯) 後:899makeMoney899
主機資訊
MySQL:tcscopec_opi201610 資料庫使用者:tcscopec_tkp 使用者密碼:gxx8xx
::::::Google Analytics:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
外掛insert header and footer Tag Assistant出現黃色。
改用外掛,Google Analytics by MonsterInsights。
先驗證該軟體可讀取GA,貼回驗證碼,即可選GA內的資源。
可運作,Tag Assistant出現綠色,Google Analytics
UA-44140009-13。
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Tag Manager,
oceanpower.com.tw/wp-content/themes/uncode 下載原始header.php
用PSPad添加
請將這段程式碼放在網頁最上方的 <head> 中:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NCCQ2C');</script>
<!-- End Google Tag Manager -->
此外,請將這段程式碼複製到 <body> 開頭代碼正後方:
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NCCQ2C"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
測試成功 綠色
Google Tag Manager
GTM-MRN49ZG
::::AdWords再行銷代碼:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
先不用動態廣告 也不跟GA連結 前後兩處都不勾。
<!-- Google 再营销代码的内容 -->
<!--------------------------------------------------
再营销代码不得与个人身份信息相关联,也不得放置在与敏感类别相关的网页上。有关如何设置代码的详细信息和说明,请访问:http://google.com/ads/remarketingsetup
--------------------------------------------------->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 966262913;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/966262913/?guid=ON&script=0"/>
</div>
</noscript>
::::::UNCODE header.php 初始保留程式碼:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Uncode
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> <?php uncode_html_tag_schema(); ?> >
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<?php
/**
* @see uncode_header_before() - 5
*/
do_action( 'uncode_header_before' );
/**
* @see uncode_main_header() - 15
*/
do_action( 'uncode_main_header' );
do_action( 'uncode_header_after' );
do_action( 'uncode_main_banner' );
?>
<div id="content" class="site-content">
::::::UNCODE footer.php 初始保留程式碼::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Uncode
*/
?>
</div><!-- #content -->
<?php
do_action( 'uncode_footer_before' );
/**
* @hooked uncode_footer - 20
*/
do_action( 'uncode_footer' );
do_action( 'uncode_footer_after' );
?>
<a href="#" class="scrollup"><i class="fa fa-angle-up" aria-hidden="true"></i> </a>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
::::::使用Wordpress 摘要欄位,讓文首頁文章的引用文字變多::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
首頁標題的背景顏色與背景圖片
修改 wp-content/themes/uncode/style.css 第2067行
.main-banner:before{
background-image:url('http://www.oceanpower.com.tw/wp-content/uploads/H3_1900x677.jpg');
background-repeat:no-repeat;
content:'';
position:absolute;
background-color:rgba(69,100,178,4); 原始為 background-color:rgba(0,0,0,0.4);
width:100%;
height:100%;
}
=======================================================================================