Questions tagged [frontity]

14 questions
1
vote
1 answer

Frontity Woocommerce

I am new to the use of Frontity, but I do have a few questions, I hope this is the right place for it!. Can someone explain me how to : List products with Frontity. Show variable products with Frontity The use of REST API in Frontity.
1
vote
0 answers

localhost:3000 shows internal server error

I am new at using node.js and i am trying this new react framework called frontity for wordpress. Everything went great at first and "npx frontity dev" command worked fine and i was able to access the "localhost:3000" then while pointing my…
0
votes
0 answers

Why doesn't the "npm run dev" start my local host?

I am trying to host a local server of a Frontity project but for some reason the command npm run dev doesn't successfully host the project. Here the command line output: Here are my scripts from package.json: "scripts": { "dev": "frontity…
0
votes
0 answers

Why loadable creates different chunk modules for the same component?

I'm new in loadable components. Wonder why loadable creates different chunk modules for the same component? Is it normal? Because I feel like it affects performance of the site. import loadable from "@loadable/component"; const LoadableHeader =…
Vova
  • 750
  • 11
  • 26
0
votes
0 answers

Not able to publish the page

I'm having a lot of problems to push my Frontity website to Vercel. On my local machine was working yesterday, but now I receive this error: request to https://dashboard.xxx.com/wp-json/wp/v2/posts?_embed=true&page=1 failed, reason: write EPROTO…
Jordi
  • 41
  • 1
  • 5
0
votes
1 answer

On click set active tab into the middle of tabs using javascript or css

I am using tabs and I want to show active tab in the middle of the tabs using pure javascript without using document. Tabs listing: .tablist li:nth-of-type(1) { order: 3; } .tablist li:nth-of-type(2) { order: 2; } .tablist li:nth-of-type(3) {…
0
votes
1 answer

Error in VSC console, but works in Windows console

I have a Frontity project (React) that I pulled from Github. When I start with command npx frontity dev in windows terminal (powershell) it start the server and everything works as expected. However, when i try the same procedure in VSC terminal…
0
votes
1 answer

How to use React in Wordpress

I am creating Wordpress plugin. I am required to use React with it. How can I use it? I have already tried to use React JS library using a script tag but it did not work for.
kurious
  • 59
  • 8
0
votes
1 answer

Images being rendered as SVGs in Frontity React

I have an issue with Frontity React, where it loads up featured images fine and some other images, but quite a lot of image which are added to the page either from a plugin (such as foogallery)
Paul M
  • 115
  • 12
0
votes
2 answers

load the wordpress website on particular route of react app

i have hosted my react app on domain example.com when i hit example.com/blog i want to load my wordpress site. For that i have placed wordpress in folder named blog inside public folder of react app for that i have placed .htaccess file in public…
D p
  • 93
  • 8
0
votes
1 answer

Only 1 true state intro array React js

What's up ? I'm trying to reproduce the sliding button effect from frontity home page with ReactJS (NextJS). Sliding buttons from Frontity I managed to create the sliding button effect BUT I'm struggling with state management. I have all my objects…
0
votes
1 answer

Frontity - How to display more than 10 blogs on blog page?

I am trying to display all blog posts - over 100, but only 10 are being shown. i have tried to update the Settings > Reading in WP to show 100 posts, but it does not change the number of posts being shown through frontity. is there a default setting…
kb_
  • 177
  • 2
  • 21
0
votes
2 answers

npm ERR! code ENOLOCAL while installing frontity

C:\WINDOWS\system32>npx frontity create my-app && cd my-app npm ERR! code ENOLOCAL npm ERR! Could not install from "wolf\AppData\Roaming\npm-cache_npx\4608" as it does not contain a package.json file. npm ERR! A complete log of this run can be found…
Ajmal faiz
  • 111
  • 1
  • 6
-1
votes
1 answer

When using frontity, the source code is changed in the editor, and the browser displays the original content

I encountered a problem when using frontity, the code was updated, but the console did not respond, and the page in the browser would not change accordingly, too. I had to delete the node_modules directory and execute yarn to generate this…