-
Notifications
You must be signed in to change notification settings - Fork 861
localhost:3000 shows 2017 theme #1001
Comments
You may have a vhost or another process running on port 3000 which is serving a WP install. Have you tried changing ports? |
where can I change ports in gulpfile.js |
According to browsersync docs, you can add a different port: |
Ah great thanks, tried that and it changes the port number but still no joy. It's not that it fails to load, it starts trying to load but ends up spinning |
localhost right? Apache? so when you go to localhost it gives you the default apache info page? |
'vhosts files to run an apache server on a specific folder?' I haven't done anything like this, just following the instructions in the docs |
The only thing I can think of is to make sure FoundationPress is installed under the "wp-content/themes" folder of the working WP install. When you go to wp-admin (WP Dashboard), FoundationPress is available under themes, right? and you can activate it? Other than that, I can't see why your setup is not working |
yeah thats all in place but had to change themes using MAMP PRO because obviously I couldn't login in using BrowserSync, thanks anyway |
You can create any number of virtual hosts in mamp pro, so how did you set up the one that serves your WP? |
Just the same as any host in MAMP Pro. Create a new host pointing to the wp directory and create a database with it, open up the host and in the browser finish the installation of wordpress |
This is what I get when I run
|
This is my gulpfile.js entry at line 17
|
ok yeah it loads when i use the http://192.168.1.75:8080 but it still using 2017theme which is not even in the theme directory. The only theme in the theme directory is FoundationPress |
ahh, but your vhost is pointing to localhost. if clean2 is the directory, you should have a vhost in MAMP pro pointing to it, and you need to add in a new domain. Right now, localhost is just serving up the default mamp vhost, that's why you're not seeing the changes. So I'm on Ubuntu, I've got themesite.dev which is defined by a vhost file that points to the |
Success. Of course... it's pointing to local host because I told it to, which set up on MAMP PRO is just a fresh install of wp with 2017 theme... So i just change the gulpfile.js to point to 'clean2' . and it works. Got there in the end thanks for your help @linuxbastard. |
Closing this. Nice help @linuxbastard! (sweet username too!) |
Hi, I have a fresh install of wordpress then cloned the repository and install with npm, gone into the wp-admin using MAMP PRO as a host and changed the theme to FoundationPress.
ok no style so I use 'npm install'
When I visit the site from here I get the FoundationPress theme, great
I want to use the browser sync so changed the url in gulpfile.js to 'localhost' and 'npm run watch' but when the localhost:3000 window pops up I get the 2017 theme?
So I trashed the 2017 theme thinking this will force it to show FoundationTheme, but now it's still showing the 2017 theme which is kind of weird
Any ideas?
Thanks
Andrew
Sierra 10.12.5
node v6.10.3
foundation-sites#6.3.1
The text was updated successfully, but these errors were encountered: