EvanAgee / vuejs-wordpress-theme-starter

A WordPress theme with the guts ripped out and replaced with Vue.
https://vuewp.com/
1.6k stars 281 forks source link

The theme shows up with no page content. #25

Closed meera closed 6 years ago

meera commented 6 years ago

I could use a hint to get this theme working with WordPress.

I see header menu 'Link and Disabled' and footer 'This is the footer'. However, I do not see the page content.

Not sure why I do not see page content. Wordpress is installed in a subdirectory so my wordpress url is http://localhost:8888/mywebsitefoldername

I tried to change API_BASE_PATH to point to /mywebsitefoldername/wp-json/wp/v2/

In Chrome Developer Console, I see http://localhost:8888/mywebsitefoldername/wp-json/wp/v2/pages?per_page=10 returns 200 with data.

kingkyle commented 6 years ago

Well since you are running it locally.. i think you need to run "npm run watch" and change the path "/" to "/mywebsitefoldername" , you can find it in the index.js file located in routes folder

EvanAgee commented 6 years ago

Yes, what @kingkyle said, did you try running npm run watch?

webprogrammingsolutions commented 6 years ago

I'm having the same issue running on localhost with MAMP. Brand new install, no plugins, only starter theme selected.

http://localhost/wp/ Set API_BASE_PATH to /wp/wp-json/wp/v2/ $ npm run watch

Site loads header and footer, no errors reported. But no page content is loaded. It's like the router is just not loading the Home.vue as it should.

Please help! Really want to use this.

screen shot 2018-07-27 at 9 20 44 pm

EvanAgee commented 6 years ago

Please re-check this issue. Today's release fixes several issues.