I found out what the problem was.
I were using jQuery in the wrong way, which made the customizer fail.
This is how you should enqueue a script with jQuery:
function my_theme_scripts() {
wp_enqueue_script( 'my-great-script', get_template_directory_uri() . '/js/my-great-script.js', array( 'jquery' ), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_scripts' );
See more on this page.
Related Posts:
- Hooking a function onto the sidebar?
- Widgets not displaying in theme customizer
- dynamic_sidebar not rendering sidebar
- Widgets not working in Customizr but working in Appearance
- Display comment form of specific page in sidebar
- Add featured image to sidebar [closed]
- Is there possibility to Customize the present theme adding sidebars
- Sidebar Generator? :)
- How to exclude parent category but show child categories?
- Specific and Different Ads for each Post?
- Adding content to sidebars
- Twenty Ten child theme has post on an inner page. Cant get that page to use my desired template
- Template part vs Sidebar (differences)
- Change sidebar headers from H1?
- Backend menu sidebar collapsed by default every time? [duplicate]
- Get sidebars depending on page
- How to delete wordpress menu
- Display sidebar if blog
- unregister_sidebar() in stand-alone theme not working
- CSS Twentyeleven / Sidebar has to be changed IN the CSS Stylesheet. Sidebar on the left side
- Why does the TwentyTen Theme sidebar have a class called ‘xoxo’?
- Dynamic Sidebar for subcategory of a category
- Can’t see widget areas in my customizer
- How to add Sidebar and Full width option in post editor
- How are Dynamic Sidebar Widgets rendered
- how to exclude posts on current page from recent posts sidebar widget
- How to add a class when there’s no sidebar?
- Sidebar loop – Thematic Framework
- How to have dynamic sidebar content per post
- Post thumbnails in sidebar & footer?
- How to add an entry to the Page/Post Settings Sidebar? [duplicate]
- Sidebar on the wrong side of the page
- Adding Multiple Sidebars
- author list not linking to correct page
- sidebar parameters (before_widget, before_title) not Working
- Call dynamic sidebar by name not ID
- Sidebar widget not displaying after simple code update.
- Dynamic sidebar rendered in another place than i would like
- Common side bar for multiple websites
- How do I show breadcrumbs when sidebar is not applied?
- Sidebar only shows up on blog page
- How do you control sidebars when there’s no get_sidebar in templates?
- Find sidebar.php in WP 3.9.2
- Sidebar not appearing on page template with custom posts
- get_posts() in secondary sidebar messes up content in primary sidebar
- Get specific sidebars $wp_registered_sidebars [closed]
- Twenty Thirteen get_sidebar Question
- Function to add class to element?
- Is it ok to chop index.php and include files?
- WordPress – Allow dynamic text to be added into a sidebar upon page creation
- How to remove the ‘Archives’ title and list and the ‘Meta’ title
- How do i replace the sidebar to use pages instead of blogs?
- Custom sidebars – get_sidebar() problems
- Sidebar Stuck To First Post, Not Top Of Page
- Is there a way to display content from a post meta box in the sidebar?
- Header image is overlapping sidebar?
- is_user_logged_in function in a sidebar not working
- “Folding” links in the blogroll
- How to assign a sidebar to a WordPress page when none was there before
- How to make sidebar float right and site content left
- The WP home page corrupted after switching to new theme
- Problem adding sidebar to Underscores theme
- unordered list loop not showing up in sidebar
- Change Sidebar for rewritten page
- Change page layout
- Main content showing up below sidebar
- Add Social Media icon widget to customizer
- Need help with theme Business (Modern Themes): sidebar issue
- I’m hit with: undefined constant register_sidebar. Once in debug mode? [closed]
- Children Pages Displaying Only Intermittenty
- I’d like to add an fa icon before a link in my ‘recent post’ side bar [closed]
- Extra sidebar in Twenty fifteen
- Call Multiple Sidebars at once
- Echo there are no posts wp_get_archives
- echo widget contents
- Include inside sidebar
- How to change templates based on URL
- How to add banners in sidebar of my theme [duplicate]
- is_home() and is_front_page() not working in sidebar
- Change /add items in menu on the inner sidebar
- sidebar – widgets versus code – options
- Placing video content into a sidebar
- Only display on sidebar if only got value inserted on post
- How to display a sidebar only for blog?
- different contents and same sidebar approach?
- Sidebar not visible after changing to new domain
- Resizing Picture
- Sidebar not displaying on custom-page.php
- Searchresult sidebar change
- How to hide a Sidebar from other admins?
- How to create another sidebar to be shown on another page?
- Differentiate Between Parent & Child Categories
- How to change font in title of sidebar widget [closed]
- Persistent sidebar.php [closed]
- Archive Widget – Show selected Category Post title. Sorted by Year
- Sidebar not appearing
- Woo commerce Single Product Sidebar [closed]
- sidebar choice not saved for pages (but saved ok for posts/custom posts) [closed]
- Disappearing Widget Text area
- Sidebars panel in customizer