งั้นเรามาดู วิธีเอาแถบนำทาง (Navigation) ด้านบนของ Blogger ออกไป จากบล๊อกของเรากันครับ
1.เข้าไปที่ "แม่แบบ"
2.ไปที่ "แก้ไข HTML"
3.กด Ctrl+F แล้วค้นหาโค้ดดังต่อไปนี้ ("Navbar1")
4.จากนั้นลบโค้ดดังต่อไปนี้ทิ้งครับ แล้วกดบันเทลมเพลต
<b:section class='navbar' id='navbar' maxwidgets='1' showaddelement='no'>
<b:widget id='Navbar1' locked='true' title='แถบนำทาง' type='Navbar'>
<b:includable id='main'><script type="text/javascript">
function setAttributeOnload(object, attribute, val) {
if(window.addEventListener) {
window.addEventListener('load',
function(){ object[attribute] = val; }, false);
} else {
window.attachEvent('onload', function(){ object[attribute] = val; });
}
}
</script>
<div id="navbar-iframe-container"></div>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type="text/javascript">
gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() {
if (gapi.iframes && gapi.iframes.getContext) {
gapi.iframes.getContext().openChild({
url: 'https://www.blogger.com/navbar.g?targetBlogID\0757170224700188998072\46blogName\75%E0%B8%84%E0%B8%B3%E0%B8%84%E0%B8%A1+%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%84%E0%B8%B4%E0%B8%94+%E0%B8%84%E0%B8%B3%E0%B8%9E%E0%B8%B9%E0%B8%94%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B9%81%E0%B8%A3%E0%B8%87%E0%B8%9A%E0%B8%B1%E0%B8%99%E0%B8%94%E0%B8%B2%E0%B8%A5%E0%B9%83%E0%B8%88+%E0%B8%84%E0%B8%95%E0%B8%B4...\46publishMode\75PUBLISH_MODE_BLOGSPOT\46navbarType\75LIGHT\46layoutType\75LAYOUTS\46searchRoot\75http://rorwa.blogspot.com/search\46blogLocale\75th\46v\0752\46homepageUrl\75http://rorwa.blogspot.com/\46readAccessMode\75PRIVATE\46blogFollowUrl\75https://plus.google.com/104106635556716123397\46vt\0751325497185078291888',
where: document.getElementById("navbar-iframe-container"),
id: "navbar-iframe"
});
}
});
</script><script type="text/javascript">
(function() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = '//pagead2.googlesyndication.com/pagead/js/google_top_exp.js';
var head = document.getElementsByTagName('head')[0];
if (head) {
head.appendChild(script);
}})();
</script>
</b:includable>
</b:widget>
</b:section>
0 ความคิดเห็น:
แสดงความคิดเห็น