The easiest way to move your theme folder is only via constant; include the wp-content folder.
You can set a constant for the plugin folder and wp-content folder. Then is your plugins and themes in separete url, also in the include in the source of the frontend.
like this example for my dev installs:
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-content' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content' );
// Custom plugin directory
define( 'WP_PLUGIN_DIR', dirname( __FILE__ ) . '/wp-plugins' );
define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-plugins' );
// Custom mu plugin directory
define( 'WPMU_PLUGIN_DIR', dirname( __FILE__ ) . '/wpmu-plugins' );
define( 'WPMU_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wpmu-plugins' );
Related Posts:
- How do you permanently remove default rewrite rules from the wp_options table?
- How can I create a page with a specific URL?
- How to rewrite the custom url in wordpress?
- meta tags doesnt fetch data from permalinks
- Page get parameter doesn’t work with is_single() function
- How to rewrite wordpress search to work on specific category
- How to Add Shortcode to html img code?
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- Create Custom URL structure for specific Post category using Post ID instead of post name
- Custom route and extract data from slashes and parameter
- reWrite wp-content url to point on my cdn
- Add #primary at the end of navlink permalinks on single posts
- How to change form action of wp-login page with a function
- Route wordpress with template
- Rewrite rules and the permalink
- Edit meta fields from within template
- Problem with add_rewrite_tag
- How to add a meta information to the URL?
- WordPress is adding pagination for all pages not only for blog page, How to remove pagination for all pages except blog/posts page?
- How to display custom field in woocommerce orders in admin panel?
- What is this code in my theme’s functions.php? if (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’])
- Modify Admin Bar Link
- How to override admin-bar style
- Woocommerce add to simple product attribute programmatically [closed]
- WP 4.4. responsive loads normal image after loading the responsive image
- How can I tell if I’m on a login page? [duplicate]
- Get Category and Excerpt From wp_get_recent_posts
- mysql custom wp query
- Order get_users() by last login date. Is it possible?
- Display random text from a file with the WP built-in AJAX API
- Error after editing functions.php
- How do I properly register bootstrap JavaScript into WordPress functions.php?
- Function to Download External Images to My Site
- Manipulate Output of wp_list_something: select menu instead of li’s
- How to call a function on particular page like ‘contact-us’ from function.php of child theme
- Detect Safari desktop browser and include the detection in a shortcode
- Is It wrong to use oop approach on functions.php?
- how to fix Warning: Use of undefined constant _ – assumed ‘_’ (this will throw an Error in a future version of PHP)
- restore_current_blog required after switch_to_blog, if I use that in a function?
- ‘is’ functions and ‘get_query_var’ not working
- How Can I Expand the WordPress Customize window without any Plugin?
- “is_new_day()” alternative for years?
- How to hide a plugin metabox for non admins when a user adds a new post
- Getting Featured Image Caption to Only Show if Populated
- Where do I add html code to the menu div?
- How do I create page navigation linking to each H2 within the page? [closed]
- Add function to every post?
- Allow Post Author to be 0 on Update
- How do I hide or remove ‘Category’ from wordpress breadcrumbs
- admin-ajax.php + load-scripts.php hanging for minutes
- Display ‘BuddyPress Follow’ follow button to non-logged in users [closed]
- Post meta not updating
- append to existing parent theme function
- Get category URL for current post
- How can I get the post id from within functions.php
- Check if Page Slug Exists, then display that Page’s Title
- Why doesn’t is_page(id) work in functions.php?
- I have problems with loading javascripts
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- Function to alphabetically sort custom post types creating duplicates
- Dropline menus — seperators between children only?
- Echoing function into WordPress NextGen gallery
- does wp function the_content(); accept another tag inside
- How to parse a shortcode within a shortcode?
- Variables not showing in short code
- Prevent loading of functions
- WP Customizer API loaded into functions.php
- Get term slug by term id and then explode it
- Shortcode question
- call_user_func_array() expects parameter 1 to be a valid callback, function
- the_widget() inside functions.php
- define css class in functions.php
- Adding tables to the WordPress Editor
- Add Login and logout buttons to top menu bar
- implementing a centralized content “show-do-not-show” toggle?
- Load templates, pass arguments, and render output from functions.php
- How to load a css file depending on the current role
- How to add HTML into error message
- Add a word after the post url if it is within a specific category
- Security when outputing wp_oembed_get code
- Problems adding a new field to product in cart
- Function for Sticky Post on Categories causes issues with 404 behavior
- Get value of pre-populated Gravity forms field as variable in my function
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Graphic before title – Specific Category
- What to do to have access to WordPress functions
- Adding a meta box fields to child theme options page
- Changing the color of post title [closed]
- How to print redirected query string variables to the page?
- Create html from function
- Admin Panel errors because of functions.php
- WordPress not performing direct update
- Using Output from one Function and calling it into another
- How to add a class and title attribute to the link generated by next/previous post
- “Headers already sent” while trying to add a CSS file to my login page?
- Remove theme, change theme button and WP version on “Right Now” admin dashboard?
- How to resize image from import image url?
- How to overwrite image if it already exists – WordPress, Gravity form
- Change TinyMCE undeline outpout
- Advanced Custom Fields in WP_Query: Clickable Text in List Format