Kustomasi tata letak kali ini adalah menghapus beberapa widget dan bagian yang tidak diperlukan supaya lebih efisien.
Untuk tujuan tersebut masuk ke Tema > Edit HTML.
Menghapus Widget Navbar
Cari dan hapus:
<b:section class='navbar' id='navbar' maxwidgets='1' name='Navbar' showaddelement='no'><b:widget id='Navbar1' locked='true' title='Navbar' 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\x3d7004475105339476906\x26blogName\x3dKustomasium\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dDISABLED\x26layoutType\x3dLAYOUTS\x26searchRoot\x3dhttps://kustomasium.blogspot.com/search\x26blogLocale\x3din\x26v\x3d2\x26homepageUrl\x3dhttp://kustomasium.blogspot.com/\x26vt\x3d1891958312177032927',
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>
Menghapus bagian Seluruh Kolom dan Cross-column 2
Cari dan hapus:
<div class='tabs-outer'><div class='tabs-cap-top cap-top'>
<div class='cap-left'/>
<div class='cap-right'/>
</div>
<div class='fauxborder-left tabs-fauxborder-left'>
<div class='fauxborder-right tabs-fauxborder-right'/>
<div class='region-inner tabs-inner'>
<b:section class='tabs' id='crosscol' maxwidgets='1' name='Cross-Column' showaddelement='yes'/>
<b:section class='tabs' id='crosscol-overflow' name='Cross-Column 2' showaddelement='no'/>
</div>
</div>
<div class='tabs-cap-bottom cap-bottom'>
<div class='cap-left'/>
<div class='cap-right'/>
</div>
</div>
Menghapus bagian sidebar-right-2-1, sidebar-right-2-2, sidebar-right-3
Cari <macro:include id='main-column-right-sections' name='sections'> ganti <macro:param default='2' name='num'/> menjadi <macro:param default='1' name='num'/>.Menghapus bagian footer-1, footer-2-1, footer-2-2
Cari <macro:include id='footer-sections' name='sections'> ganti <macro:param default='2' name='num'/> menjadi <macro:param default='0' name='num'/>.Menghapus Widget Attribution
Cari dan hapus:
<b:widget id='Attribution1' locked='true' title='' type='Attribution'><b:widget-settings>
<b:widget-setting name='copyright'/>
</b:widget-settings>
<b:includable id='main'>
<div class='widget-content' style='text-align: center;'>
<b:if cond='data:attribution != ""'>
<data:attribution/>
</b:if>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>
Bonus:
Menambah widget di bagian sidebar
Cari <b:section-contents id='sidebar-right-1'> ganti dengan <b:section-contents id='sidebar-right-1' maxwidgets='' showaddelement='yes'>.
Menambah widget di bagian footer
Cari <b:section class='foot' id='footer-3' name='Footer' showaddelement='no'> ganti dengan <b:section class='foot' id='footer-3' name='Footer' maxwidgets='' showaddelement='yes'>.
Simpan perubahan.
Tidak ada komentar:
Posting Komentar