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

Is there a 'best' way to set up #230

Closed
joshsmith01 opened this issue Feb 17, 2015 · 1 comment
Closed

Is there a 'best' way to set up #230

joshsmith01 opened this issue Feb 17, 2015 · 1 comment

Comments

@joshsmith01
Copy link
Contributor

Is there a best way to set up sidebars with widgets in FoundationPress? I am struggling to find the correct layout.

Do I set the widgets-areas.php to add the rows or widths or do I add them to each widget?

@sky1tech
Copy link

Depends on where you want them to display. The widget-areas.php file simply registers the sidebars (Right and Left) so that boxes on the Widgets page (under Appearance) will show up so you can drop widgets there manually.

If you want them to display on a page, you select the Default Template (Right Sidebar) or Left page template under Templates while editing a page. Review the code in those templates to see what's going on.

The page template files with sidebars are page.php (Default Template) and page-sidebar-left.php (Left Sidebar)

Left sidebar uses this call

Right sidebar uses this:

Then go review the code in sidebar.php to see what's going on.

After you study the markup, go see Foundation's docs to determine how to make changes with the display.

Hope this helps...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants