New user struggling with Frontity concepts

Hi there,

After reading the entire “get started” guide, and activating the Mars theme, I have some questions

  1. Why do we need to recreate the menu? Is there a way for Frontity to read the menu that is set up on the WordPress admin? If so, why isn’t this used.?

  2. Why does Frontity not honour the settings of choosing a page to display for the Home page? It just lists posts. How can I get that to change, and if possible, act according to the WordPress admin settings in Settings > Reading?

  3. Is the concept of overriding templates such as Index < Archive < Category or Single < Page < Template completely gone? How do I set up, for example page templates that can be chosen in the WordPress page editor?

  4. How do I choose to show a certain design on a certain page, such as the Home page? Is the best case to build this in Gutenberg?

As far as I can see there is no documentation for any of this; the docs are mostly at the abstract level. It would be good to have a guide for those coming over from the traditional WordPress theme modality to reorient ourselves.

Thank you for all the hard work, I’m excited to use it.

Hi,

Im also very new to frontity, but i do have some insight on question nr. 1.

It does not get the menu because the menu isn’t part of the rest api, the menu endpoint is hidden. However, in the latest episode of frontity talks, Michael goes thrugh how you can fetch the menu from the wordpress api.

As for question nr 2, you can set that in the frontity.settings.js

{
  "name": "@frontity/wp-source",
  "state": {
    "source": {
      url: "https://url.to.wordpress.page/",
      homepage: "/home-slug/"
    }
  }
},

Hope this helps.

1 Like

Thank you, that is helpful!

Is there documentation that describes no.2? I haven’t seen it.

It is indeed;

https://docs.frontity.org/api-reference-1/wordpress-source

1 Like

Thanks! Got it. I would have never have known.