First: You need to locate the following code in the HTML.
It does not apply on mobile; it only works on desktop.
1. Search word: copyright
2. Please modify in two places
Code Before Modification
<macro:param default='foot' name='class'/>
<macro:param default='false' name='includeBottom'/>
</macro:include>
<!-- outside of the include in order to lock Attribution widget -->
<b:section class='foot' id='footer-3' name='Footer' showaddelement='no'>
<b:widget id='Attribution1' locked='true' title='' type='Attribution'>
<b:widget-settings>
<b:widget-setting name='copyright'>Your Blog Name</b:widget-setting>
</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>
Code After Modification
<macro:param default='foot' name='class'/>
<macro:param default='false' name='includeBottom'/>
</macro:include>
<!-- outside of the include in order to lock Attribution widget -->
<b:section class='foot' id='footer-3' name='Footer' showaddelement='true'>
<b:widget id='Attribution1' locked='false' title='' type='Attribution'>
<b:widget-settings>
<b:widget-setting name='copyright'>Your Blog Name</b:widget-setting>
</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>
3. Save the HTML.
Second: Add a new gadget to register the copyright.
4. In the layout, you can see that a delete button has been created in the copyright section. Click the delete button.
![]() |
copyright notice |
5. Create a new HTML/JavaScript gadget.
6. The content of the newly created HTML gadget is as follows. You only change "Jessica" and "2024."
© Copyright 2024 - <script>document.write(new Date().getFullYear());</script> | Jessica | All Rights Reserved.
7. Save the layout.
If you have progressed this far, the copyright notice will be positioned on the left instead of centered. Therefore, to position the copyright notice in the center, you need to modify the HTML.
8. Modify the HTML.
Code Before Modification
<div class='fauxborder-left footer-fauxborder-left'>
<div class='fauxborder-right footer-fauxborder-right'/>
<div class='region-inner footer-inner'>
<macro:include id='footer-sections' name='sections'>
<macro:param default='2' name='num'/>
<macro:param default='footer' name='idPrefix'/>
<macro:param default='foot' name='class'/>
<macro:param default='false' name='includeBottom'/>
</macro:include>
<!-- outside of the include in order to lock Attribution widget -->
<b:section class='foot' id='footer-3' name='Footer' showaddelement='true'>
<b:widget id='HTML3' locked='false' title='' type='HTML' version='1'>
<b:widget-settings>
<b:widget-setting name='content'><![CDATA[© Copyright 2024 - <script>document.write(new Date().getFullYear());</script> | Jessica GKR | All Rights Reserved.]]></b:widget-setting>
</b:widget-settings>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
Code After Modification
<div class='fauxborder-left footer-fauxborder-left'>
<div class='fauxborder-right footer-fauxborder-right'/>
<div class='region-inner footer-inner'>
<macro:include id='footer-sections' name='sections'>
<macro:param default='2' name='num'/>
<macro:param default='footer' name='idPrefix'/>
<macro:param default='foot' name='class'/>
<macro:param default='false' name='includeBottom'/>
</macro:include>
<!-- outside of the include in order to lock Attribution widget -->
<b:section class='foot' id='footer-3' name='Footer' showaddelement='true'>
<b:widget id='HTML3' locked='false' title='' type='HTML' version='1'>
<b:widget-settings>
<b:widget-setting name='content'><![CDATA[© Copyright 2024 -
<script>document.write(new Date().getFullYear());</script> |
Jessica GKR | All Rights Reserved.]]></b:widget-setting>
</b:widget-settings>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content' style='text-align: center;'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
9. Save the HTML.
10. End
Copyright2021olympithecus
No comments:
Post a Comment