ปกติเราโหลด theme wordpress มาใช้ฟรี ๆ แน่นอนก็ต้องมีการให้เครดิตเจ้าของเค้า...อันนี้เราเข้าใจ บางทีก็มี สปอนเซอร์ ด้วย
หาวิธีเอาออกจากบอร์ดแห่งนี้มาพอสมควร หาใน พี่ google อีก แต่ยังเอาออกไม่ได้ วันนี้เลยอยากจะถามว่า
ในเมื่อเอาออกไม่ได้ แล้วเราจะเพิ่มเข้าไปละค่ะ ไปเพิ่มตรงไหน เพิ่มได้ไหม แล้วถ้าไปเพิ่มนี่หน้าเว็บจะพังอีกไหมเนี่ย :(
บาง theme เวลาเราแก้ไข footer มันจะทำให้เราใช้งานเว็บไม่ได้ ประมาณถ้าแก้ไขเมื่อไหร่ก็อดใช้ใครเป็นบ้าง
อ้างถึงจาก: powerpleng ใน 08 กันยายน 2011, 15:54:16
ปกติเราโหลด theme wordpress มาใช้ฟรี ๆ แน่นอนก็ต้องมีการให้เครดิตเจ้าของเค้า...อันนี้เราเข้าใจ บางทีก็มี สปอนเซอร์ ด้วย
หาวิธีเอาออกจากบอร์ดแห่งนี้มาพอสมควร หาใน พี่ google อีก แต่ยังเอาออกไม่ได้ วันนี้เลยอยากจะถามว่า
ในเมื่อเอาออกไม่ได้ แล้วเราจะเพิ่มเข้าไปละค่ะ ไปเพิ่มตรงไหน เพิ่มได้ไหม แล้วถ้าไปเพิ่มนี่หน้าเว็บจะพังอีกไหมเนี่ย :(
ไม่ค่อยเก่งเรื่อง wp จูมล่าพอรุ้ค่ะ
<a href=yoursite target="_blank">ข้อความที่ต้องการ </a>
เพิ่มตรง Footer นั่นละครับใส่โค๊ดของเราไปเลย
ปล. ถ้าไม่ใช่ตามที่ต้องการขออภัยด้วยครับ
เข้าหลังบ้านตรง Theme Editor(ผู้แก้ไขธีม) ครับ แล้วด้านซ้ายมือจะมี footer.php
มองๆหาลิงค์ที่มีอยู่ก่อนแล้วก็จัดเพิ่มหรือลบตาม html รูปแบบทั่วๆไปครับ
อ้างถึงจาก: powerpleng ใน 08 กันยายน 2011, 15:54:16
ปกติเราโหลด theme wordpress มาใช้ฟรี ๆ แน่นอนก็ต้องมีการให้เครดิตเจ้าของเค้า...อันนี้เราเข้าใจ บางทีก็มี สปอนเซอร์ ด้วย
หาวิธีเอาออกจากบอร์ดแห่งนี้มาพอสมควร หาใน พี่ google อีก แต่ยังเอาออกไม่ได้ วันนี้เลยอยากจะถามว่า
ในเมื่อเอาออกไม่ได้ แล้วเราจะเพิ่มเข้าไปละค่ะ ไปเพิ่มตรงไหน เพิ่มได้ไหม แล้วถ้าไปเพิ่มนี่หน้าเว็บจะพังอีกไหมเนี่ย :(
บาง theme เวลาเราแก้ไข footer มันจะทำให้เราใช้งานเว็บไม่ได้ ประมาณถ้าแก้ไขเมื่อไหร่ก็อดใช้ใครเป็นบ้าง
Wp ลองหาปลั๊กอิน header&footer มาใช้ดูนะคะ มันจะเพิ่มพวก footer อะไรเข้าไปได้ง่ายๆ เหมือนเวลาเราอัพบล็อกเลยล่ะค่ะ :wanwan008:
แก้ footer ส่วนใหญ่ถ้า่จะแก้ลองไปดูในไฟล์ footer.php ก่อนนะคะ เกี่ยวกับ footer ส่วนใหญ่ก็จะอยู่ตรงนั้นแหล่ะค่ะ แต่ถ้าหาไม่เจอก็เปิดดูให้หมดเลย เพราะบางทีเราเคยไปเจอเจ้าของทีมเค้าฝัง footer ไว้อยู่แถวๆ config.ini ก็มี :P
ทีนี้ถ้าเป็นทีมที่ทำจาก Artisteer 3.0 จะแก้ footer ให้ไปดูตรงโฟลเดอร์ onecolumn-page > page.php กับโฟลเดอร์ templates > page.php ทีมที่ทำจาก artisteer 3 Footer จะใส่อยู่แถวๆ นั้นอ่ะค่ะ
ส่วนทีมที่แก้ Footer ไม่ได้ แปลว่าเค้าล็อคมาไม่ให้แก้น่ะค่ะ ต้องปลดล็อค อันนั้นก็ต้องดูที่ทีมอีกทีว่าจะแก้ได้ยังไง :P แต่หลังๆ เราก็รำคาญขี้เกียจมานั่งแก้พวกนี้ล่ะค่ะ ทำทีมใช้เองไปเลยง่ายกว่าเยอะค่ะ :wanwan004:
ถ้าเป็นธีมที่เข้ารหัสไว้ก็ต้องเข้าไปแก้ที่ function.php ด้วย แต่จะยากหรือง่ายอันนี้ผมไม่รู้ แล้วแต่ธีม :wanwan044:
ใครพอจะแนะนำ วิธีที่ทำแล้วได้ผลจริง บ้างไหมจ๊ะ
ถ้าแบบไม่ใส่รหัส ก็แก้ที่ไฟล์ footer ธรรมดา
แต่ถ้าใส่รหัส ลองดูกระทู้นี้ http://www.thaiseoboard.com/index.php?topic=215915.0
ขอบคุณมากนะค่ะ แต่เข้าไปแล้วมันไม่มีเหมือนที่คุณบอก หาไม่เจอ แต่มันเป็นแบบนี้
<div class="outer">
<div id="footer">Copyright © <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a> - <?php bloginfo('description'); ?> - Powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a></div>
<?php // This theme is released free for use under creative commons licence. http://creativecommons.org/licenses/by/3.0/
// All links in the footer should remain intact.
// These links are all family friendly and will not hurt your site in any way.
// Warning! Your site may stop working if these links are edited or deleted ?>
<div id="credits">Design by <a href="http://www.cyberoptik.net">Chicago Web Design</a> - <a href="http://www.myfreeiphone.co.uk/Best-iphone-contract-deals-in-the-uk.htm">iPhone Deals</a>, <a href="http://www.13logs.com">Blogs Network</a>, <a href="http://angry-birds-online.com">angry birds download</a></div>
</div>
</div>
</div>
<?php
wp_footer();
echo get_theme_option("footer") . "\n";
?>
</body>
</html>
แถมที่ functions.php ก็มีประมาณว่า แบบนี้ คือมัน check footer ด้วยใช่ไหมค่ะ
function check_theme_footer() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = '<div id="credits">Design by <a href="http://www.cyberoptik.net">Chicago Web Design</a> - <a href="http://www.myfreeiphone.co.uk/Best-iphone-contract-deals-in-the-uk.htm">iPhone Deals</a>, <a href="http://www.13logs.com">Blogs Network</a>, <a href="http://angry-birds-online.com">angry birds download</a></div>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { theme_usage_message(); die; } } } check_theme_footer();
<div id="credits">Design by <a href="http://www.cyberoptik.net ">Chicago Web Design</a> - <a href="http://www.myfreeiphone.co.uk/...e-contract-deals-in-the-uk.htm ">iPhone Deals</a>, <a href="http://www.13logs.com ">Blogs Network</a>, <a href="http://angry-birds-online.com ">angry birds download</a></div>
</div>
เอาออกแล้วกดเซฟ
ทำแล้วหน้าเว็บ พัง
อ้างถึงจาก: powerpleng ใน 09 กันยายน 2011, 13:44:07
ขอบคุณมากนะค่ะ แต่เข้าไปแล้วมันไม่มีเหมือนที่คุณบอก หาไม่เจอ แต่มันเป็นแบบนี้
<div class="outer">
<div id="footer">Copyright © <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a> - <?php bloginfo('description'); ?> - Powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a></div>
<?php // This theme is released free for use under creative commons licence. http://creativecommons.org/licenses/by/3.0/
// All links in the footer should remain intact.
// These links are all family friendly and will not hurt your site in any way.
// Warning! Your site may stop working if these links are edited or deleted ?>
<div id="credits">Design by <a href="http://www.cyberoptik.net">Chicago Web Design</a> - <a href="http://www.myfreeiphone.co.uk/Best-iphone-contract-deals-in-the-uk.htm">iPhone Deals</a>, <a href="http://www.13logs.com">Blogs Network</a>, <a href="http://angry-birds-online.com">angry birds download</a></div>
</div>
</div>
</div>
<?php
wp_footer();
echo get_theme_option("footer") . "\n";
?>
</body>
</html>
แถมที่ functions.php ก็มีประมาณว่า แบบนี้ คือมัน check footer ด้วยใช่ไหมค่ะ
function check_theme_footer() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = '<div id="credits">Design by <a href="http://www.cyberoptik.net">Chicago Web Design</a> - <a href="http://www.myfreeiphone.co.uk/Best-iphone-contract-deals-in-the-uk.htm">iPhone Deals</a>, <a href="http://www.13logs.com">Blogs Network</a>, <a href="http://angry-birds-online.com">angry birds download</a></div>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { theme_usage_message(); die; } } } check_theme_footer();
function check_theme_footer() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 1 || substr_count($uri, "wp-login") > 1 ) { /* */ } else { $l = '<div id="credits">Design by <a href="http://www.cyberoptik.net">Chicago Web Design</a> - <a href="http://www.myfreeiphone.co.uk/Best-iphone-contract-deals-in-the-uk.htm">iPhone Deals</a>, <a href="http://www.13logs.com">Blogs Network</a>, <a href="http://angry-birds-online.com">angry birds download</a></div>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 1 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { theme_usage_message(); die; } } } check_theme_footer();
แก้เลข 0 ให้เป็น 1 สามตำแหน่งนี้จากนั้นเข้าไปแก้ลิงค์ใน footer.php ได้เลย
ถ้าได้บอกด้วยนะครับ
:wanwan008: ผลปรากฎว่า......ได้......ดีใจจังหามาหลายวัน.... :wanwan017: :wanwan017: :wanwan017: ถ้า+ ได้จะบวกให้ 10 เลยค่ะ
ทำไมมันง่ายกว่าที่เคยงม มาอีก
+ ไปแล้วจร้าาาา
ดีใจด้วยครับผม
อ้างถึงจาก: powerpleng ใน 09 กันยายน 2011, 14:05:35
:wanwan008: ผลปรากฎว่า......ได้......ดีใจจังหามาหลายวัน.... :wanwan017: :wanwan017: :wanwan017: ถ้า+ ได้จะบวกให้ 10 เลยค่ะ
ทำไมมันง่ายกว่าที่เคยงม มาอีก
+1 ท่้าน skylark99 แทนให้นะคะ :wanwan004:
แต่คุณ powerpleng ก็ + ได้แล้วนะคะ 105 มู้ กด + ได้แล้วค่ะ :wanwan019:
+ให้ท่านskylark99 เหมือนกันครับ
ขอบคุณครับ ผมแก้ได้แล้ว