Problem/Motivation

The Footer is not used as a region in the theme and only prints the feed icons in the Twig template. Therefore an empty footer div is printed unless the feed icons are active which they are not by default.

Code printing the footer in page.html.twig...

<footer id="footer" role="contentinfo" class="layout-column">
      {{ feed_icons }}
 </footer>

Proposed resolution

Add an if statement for the content printed within the footer so an empty div is not always printed.

Remaining tasks

Write and test patch.
Add patch to issue,
Update issue summary with actions/decisions taken and screenshots as back up.
Test patch.
Review with screenshots.

User interface changes

None

API changes

None

Comments

emma.maria’s picture

Issue summary: View changes
lauriii’s picture

Issue tags: +Novice
chandeepkhosa’s picture

Assigned: Unassigned » chandeepkhosa

assigning to myself

chandeepkhosa’s picture

here is my patch, enjoy!

chandeepkhosa’s picture

Assigned: chandeepkhosa » Unassigned
Status: Active » Needs review

ready for review

chandeepkhosa’s picture

2nd version of patch, without whitespace, ready for review

emma.maria’s picture

I applied the patch and clicked around the site, none of the page layouts are broken as a result of the patch and the footer no longer prints.
The code was removed cleanly from the twig file with no errors or coding standards broken.

Some screenshots to show non broken layout...

emma.maria’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Needs review

What do you mean:

which are not used in the back end and were copied over to Seven by mistake

Looking at template_preprocess_page feed_icons is very much alive and well. If someone adds a feed to an admin page with this patch seven would not support that.

lauriii’s picture

Status: Needs review » Needs work

Is the issue instead of footer not being used that seven can spit empty footer tags?

lewisnyman’s picture

Title: Remove Footer region in Seven as it is not used. » Do not print the footer container in Seven when not in use

hmm ok, is that a use case? I guess it's possible then we should support it. Let's just add an if statement

emma.maria’s picture

Issue summary: View changes
emma.maria’s picture

Sorry for the previous hard treatment of the footer. I have wrapped the footer markup in an if statement so the footer wrapper does not print empty when the feed icons are not in use.

emma.maria’s picture

Status: Needs work » Needs review
lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me. Assuming the test comes back green.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 960fedc and pushed to 8.0.x. Thanks!

  • alexpott committed 960fedc on 8.0.x
    Issue #2317811 by ChandeepKhosa, emma.maria: Do not print the footer...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.