Turns out the problem was with WP_CONTENT_URL
, defined inside wp-config.php:
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/lab/WordPress-Skeleton/content' );
It seems that $_SERVER['HTTP_HOST']
is returning an incomplete path (only localhost
without the folder).
Since I’m using version control and using a local-config.php to define some local dev variables (like database credentials), I also placed this on it:
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/lab/WordPress-Skeleton/content' );
and on wp-config.php I added this check:
if ( !defined( 'WP_CONTENT_URL' ) )
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/content' );
Related Posts:
- theme path in javascript file
- Is it possible to have a Theme with built-in physical page files?
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- Bestway To Define Theme and Plugin path and url
- Form to Add Posts to Custom Post Type
- How do I add settings to the Background Options Page?
- Import media to online WordPress from local development
- What is the right way to include a wp-admin file in your theme?
- WordPress twentytwenty theme inline css overriding css body
- What is the problem if I use CDN in my WordPress parent theme(built using bootstrap)?
- Override Current Theme Setting in wp_config.php
- Active theme responds to theme change request to alert user
- LOST in WP Template Hireachy
- Theme showing incorrect update
- modify a output of a widget
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Enabling Default Widgets in a Custom Theme
- changing Specific section background image in wordpress
- WP Gutenberg custom block – generate theme colors from SASS and use them in the inspector and php callback
- Which is the simplest theme for WordPress to use it as your base?
- There’s an image named g.gif somewhere in my WordPress site
- How to highlight the current page in the nav menu?
- How to support Lazy Loading Assets in a WordPress Theme?
- Convert PHP readfile to WP_Filesystem
- Wysiwyg editor for P2 theme
- Sub folder CSS that’s read by Admin panel
- Toggle Sidebar Display
- Dequeue a style file which is making website load slow!
- How to customize save function event?
- WordPress page templates in a directory
- Do I need normalize.css when developing my own WordPress-theme?
- How to float an image in Gutenberg
- Limit Loop to 5 Posts?
- Table of Contents Before first heading
- Theme-wide custom post template
- Bootstrap card columns change images size
- comment form args are not translatable (customized comment form)
- Zoom on custom theme without child
- Changing a slider to a grid [closed]
- What do with the index.php … [duplicate]
- How to add Space between sidebar and footer widget in WordPress theme [closed]
- Custom Navigation build using wp_nav_menu and walker
- Question regarding WP multisite feature
- Call to undefined function add_menu_page() on theme activation
- “Theme without sidebar.php is deprecated”
- The Content is not Wraping in tag
- Is it acceptable for a WordPress theme to not accept widgets?
- Should all references to a text domain be to my current theme?
- WordPress Settings API not saving options
- my excerpts lack the ‘more’ link
- Simple child theme modification but links are broken
- Making a WordPress theme based on twentyten
- Is functions.php in themes applied to all templates?
- Doing context-aware previews in the WordPress Customizer
- how do i develop a global nav and local nav to be wordpress dynamic?
- Why Tags don’t appear in my page?
- First post full width without Sidebar
- multiple html/css files for wordpress theme?
- How to make a theme unable to be used on a multisite network?
- best practices for updating wordpress theme
- Multi Site Setup, Child Themes, Getting Style Sheet Directory
- Add image URL automatically to custom field?
- if (has_custom_menu())?
- Exclude parent categories from the_category() within the loop
- How do I pass the category object to a function when is_archive() is true?
- Making a horizontal flyout menu from WordPress category listing
- How to use Canonical URL meta tag to avoid duplicate content issues with WP home pages
- getBoundingClientRect() showing different values on load vs scroll
- Ensure SQL changes carry over
- How can I set multi archive page template on same time for only one custom post type?
- Exclude categories from wp query not working
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How to get custom logo with REST API instead of get_theme_mod();
- How can I change this SVG shape that’s generated?
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- Can I set rest API endpoints from within a theme?
- using themename_the_custom_logo() in template-tags?
- remove_action(‘genesis_header’,’genesis_do_header’) hook not working
- WordPress doesn’t load css, image and js files after moving local installation folder
- Customizer Image-Picker Preview Not Working
- How to get url image page the right way?
- Mobile view logo background colour in wordpress
- Breaking Categories Up into Individual Divs
- Strip HTML tags on custom code from the_content
- page.php is not called when I load a Page
- wpdb->insert adds too many rows
- Main Menu Theme Different Output Print
- How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?
- WordPress loop not working on blog.php page
- Option to show/hide widget depending on is_home?
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- IS there any reason not to include javascript in my own post’s embeds?
- How to create more templates to the same theme?
- How do I middle-align my header menu items in WordPress [closed]
- How to add Dummy content when active wordpress theme without xml import?
- Bootstrap 4 mobile menu not working for WordPress Development
- How to make it so I can “use” template parts in (classic/full) site editor
- How do I send out an update for my custom wordpress theme?
- custom wordpress theme blog page always not showing the last two pages of the articles
- Cart button not working on mobile version [closed]