Make WordPress Core


Ignore:
Timestamp:
11/09/2021 10:24:47 PM (2 years ago)
Author:
hellofromTonya
Message:

Twenty Twenty-One: Add privacy policy link to footer.

If a privacy policy is set, the page links to the footer of the site. As done in the other bundled themes, this link is added using the_privacy_policy_link().

Follow-up to [49216].

Props ryelle, desrosj, kapilpaul, sabernhardt, audrasjb, justinahinon.
Fixes #53445.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/06-components/footer.scss

    r49726 r52082  
    3232    }
    3333
     34    .privacy-policy,
    3435    .powered-by {
    3536        margin-top: calc(0.5 * var(--global--spacing-vertical));
     
    4041        align-items: center;
    4142
     43        .site-name {
     44            margin-right: calc(0.5 * var(--global--spacing-vertical));
     45        }
     46
     47        .privacy-policy,
    4248        .powered-by {
    4349            margin-top: initial;
    4450            margin-left: auto;
     51        }
     52
     53        .privacy-policy + .powered-by {
     54            margin-left: calc(0.5 * var(--global--spacing-vertical));
    4555        }
    4656    }
Note: See TracChangeset for help on using the changeset viewer.