Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Example of a mobile-first page with a Left Sidebar #70

Closed
wants to merge 1 commit into from
Closed

Example of a mobile-first page with a Left Sidebar #70

wants to merge 1 commit into from

Conversation

manwithacat
Copy link
Contributor

A template for a page with sidebar on the left. This is using Foundation Source Ordering, so the sidebar is on the left on a large display, but appears below the content on medium and small displays.

I had to move the aside elements out of the sidebar.php to make this work, hence why there's changes to the other page templates. My commits always seem to look messy with whitespace changes. Annoying.

@manwithacat manwithacat mentioned this pull request Jul 5, 2014
@olefredrik
Copy link
Owner

Hi. Nice example in page-sidebar-left.php. But I can't see why it's necessary to modify 5 files to demontrate this?

@manwithacat
Copy link
Contributor Author

I thought it'd be easier to move the <aside> declarations which contain the pull class into the main templates, so it's the same sidebar.php for each template.

An alternate approach would be to make a new sidebar-left.php and in the Left sidebar template call it with `get_sidebar("left");

@olefredrik olefredrik closed this Jul 15, 2014
@manwithacat manwithacat deleted the upstream branch July 27, 2014 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants