flyntwp / flynt

Component based WordPress starter theme, powered by ACF Pro and Timber, optimized for a11y and fast page load results.
https://flyntwp.com
MIT License
734 stars 84 forks source link

All Components are not showing in backend editor #302

Closed jmodanwal closed 4 years ago

jmodanwal commented 4 years ago

Hi I have installed the theme but I can see there are total 9 components showing into editor. image

I can see there are 21 components files into theme but only 9 are rendering.

Please help me ASAP.

Thanks

eddiepantoja commented 4 years ago

Portions of the theme such as search, nav, and footer are components. Those components would not be in the page editor. I think the nine that you are seeing is the page editor is correct.

jmodanwal commented 4 years ago

Yes, That 9 components are in page editor. Please tell me how to access rest of components in theme. Can I have any documentation for this ? Please share.

Thanks

steffenbew commented 4 years ago

Hi @jmodanwal, in Flynt, almost anything is a component, but not all are made to be added to a page.

Some components are statically added to a template, like the main navigation, or the blog post header. Please see the templates/single.twig file for examples of statically rendered components.

The components you're seeing in the page editor are flexible content layouts, which can be added dynamically to a page. For components to show up in the Add Component dropdown, their field layouts need to be added to a field group file: /inc/fieldGroups/pageComponents.php.

I hope that helps with understanding the Flynt component architecture.

jmodanwal commented 4 years ago

Yes, I got it. Thanks a lot.

steffenbew commented 4 years ago

Hi @jmodanwal, happy I could help. I just published a tutorial to get started with Flynt: The Beginner’s Guide to Developing a Custom WordPress Theme With Flynt. Hope it'll be valuable to you, or anyone else working with Flynt the first time.