Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editing / customizing the footer.... #17

Closed
4evermaat opened this issue Mar 22, 2016 · 3 comments
Closed

editing / customizing the footer.... #17

4evermaat opened this issue Mar 22, 2016 · 3 comments

Comments

@4evermaat
Copy link

I wanted to know how to edit the footer to make it look more like this page here in this screenshot:
directfx bottom navbar and site map

Notice how for the text links at the bottom of the page, they list each page individually in columns. Is that something that can be automated in gravstrap? Or do I have to update all the links manually when I add/delete a page on my website? It seems like I would implement a page module for this or some sort of reusable gravstrap section.

I looked in the /pages/common/common.md and I see some footer code there [g-footer-one name="footer" render=false],

gravstrap theme edit footer

but how does gravstrap know to parse some of the navigation links in the footer? I do not see which arguments control the navigation links in footer?

@4evermaat 4evermaat changed the title editing / customizing the footer and navbar.... editing / customizing the footer.... Mar 22, 2016
@giansi
Copy link
Owner

giansi commented Mar 23, 2016

You must add a new twig template to your theme to handle your new footer or, better, add a new shortcode to handle it. If you choose the second option, please consider to add it to Gravstrap and share with others. :-)

@giansi giansi closed this as completed Mar 23, 2016
@4evermaat
Copy link
Author

could you give me an example of each? (twig template and custom shortcode)? I couldn't find the twig template for gravstrap footer that deals with rendering the footer. I see the common.md in the user/pages/common folder.

But the way you wrote your footer, you didn't allow someone to edit it (I cannot remove the breadcrumbs at the bottom. I don't know if this was intentional.

I thought about writing a module component that could be used as a footer. But if the shortcode method is easier, and I can just drop it into any page I need to.....I'll do it.

Sorry if I'm such a bother. I'm not really a programmer. I can understand some code, but i can work from template and when I know which parameters I can change, how they affect the page, etc. I would have worked with the existing footer if I could edit the forced navigation. See screenshot:
gravestrap footer edit footer navigation
where do I go to edit that? I do not see any obvious switch in the common.md file.

@4evermaat
Copy link
Author

I see it now in the /plugins/gravstrap/templates/footer/footer_one.html.twig and /plugins/gravstrap/templates/modules/partials/footer_navigation.html.twig . Took me over 10 days to figure it out (I kept looking in the themes folder)!!! Water under the bridge.

I couldn't figure out what was rendering the footer and then I inspected the element very carefully in Chrome browser and it showed me the plugin that had the css. I found it.

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

No branches or pull requests

2 participants