Comments (9)
This registers the wp core wp-content/themes directory as an ADDITIONAL theme directory, so you have access to your themes in /content/themes as well as the themes that come with WP in /wp/wp-content/themes
These two lines in wp-config.php change the default content directory so you need to register the /wp/wp-content/themes one to keep core themes:
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/content' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/content' );
from wordpress-skeleton.
I'm aware that it's additional (see the title).
But nothing in that directory can be edited, because it's a git submodule.
from wordpress-skeleton.
This is so that the themes included with WordPress are available. Without this, a default installation will break due to the lack of twentytwelve/twentythirteen.
from wordpress-skeleton.
Didn't realize that the default WP themes would still be used with something like this.
Why else the custom /content
content directory ?
It's not like you can use this with an existing WP installation, so that you can keep using the themes which were already in use.
No one uses the default themes as is. All WP sites doing this would have the same images, icons, css, etc.
To me, this looks more for end users and not for theme developers. My misunderstanding.
I usually ignore the default WP themes by changing the default theme to the one I'm going to design+develop by adding the following to wp-config.php
. (I changed the directory to /content
so it matches this repo.)
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/content');
define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/content');
define('WP_DEFAULT_THEME', 'my-custom-theme-directory-name-here');
I guess this is not for me. Too bad.
from wordpress-skeleton.
You may not be using the bundled themes, but you may be using child themes that depend on them. If you don't want the bubdled themes available, just comment out that line.
from wordpress-skeleton.
That's a possibility.
Although I think, haven't tried it of course, that that would cause an uncommitted local change, and I would not be able to pull changes from this repo until I resolved this conflict.
from wordpress-skeleton.
It's not really intended for you to use this repo in perpetuity. I mean, adding plugins to your repo would also cause it to diverge. It's more of a WordPress repo "starter".
from wordpress-skeleton.
OK, I understand. It's not what I'm looking for. Too bad.
from wordpress-skeleton.
@RobertinoValue I ended up cloned this repo and then ignored the files & directories below. It's much more usable for my needs when I go to launch another site. Everyone has different needs so just make it do what makes sense for your project. You don't have to leave it exactly the way it came.
/config.php
/content/upgrade/*
/content/uploads/*
/content/themes/*
/content/plugins/*
from wordpress-skeleton.
Related Issues (20)
- Update to Wordpress 4.4.2
- wp_localize_script doesn't appear to work
- Cannot Access Uploads Directory HOT 2
- Help Starting HOT 2
- Woocommerce template overrides not working
- Differences from _s HOT 1
- Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain HOT 2
- Nginx [no multi site] HOT 3
- Can't Establish php database connection on MAMP HOT 1
- Changing symlinks for media files stored in /shared/ HOT 2
- Broken Customizer After Migration
- '/content' directory not found beside '/wp' directory (get_template_directory_uri) HOT 1
- normalize.css doesn't appear here. Why? HOT 1
- How to change language of site and admin dashboard? HOT 1
- Repeated 403 console error when changing siteurl
- Update WP Skeleton to 4.2 Please HOT 1
- Multisite note HOT 7
- Problem loading theme assets HOT 1
- Question: Multisite, local (XAMPP) install
- MAMP/LAMP Multisite issues with my imported DB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-skeleton.