반응형

 

First, you need to find the following code in the HTML.

This is not applicable on mobile; it only functions on desktop.

  1. Search term: copyright
  2. Please make changes in two locations.

 

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 != &quot;&quot;'>
       <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 != &quot;&quot;'>
       <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.

 

 

 

 

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 != &quot;&quot;'>
    <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 != &quot;&quot;'>
    <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

 

 

24110501_JessicaTEng

For more information, please visit   https://olympithecus.blogspot.com/

반응형