You can change your current theme to storefront and check whether the scripts and styles are properly enquequed.
use this format to enqueque style and scripts and inspect the code for debugging
class yourPluginName {
public function __construct() {
add_action('wp_enqueue_scripts', array($this, 'enqueue'));
}
public function enqueue() {
wp_enqueue_script("jquery");
wp_enqueue_script('my-js', plugins_url('/script.js', __File__));
wp_enqueue_style('my-theme', plugins_url('/style.css', __File__));
}
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- Dynamic template serving, change theme_root using add_filter from current theme
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Loading template files from a subfolder in my theme?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Can I obtain differents links for different installed theme?
- Theme not showing after uploading
- WordPress ignoring specified template for front page. Why?
- Can I apply a WP theme to a specific custom page template?
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- Change Theme from Plugin based on query_vars
- How to add template to theme in WP
- Added a new template file to a theme – get Call to undefined function error
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- Child theme Page Template not loading
- Creating new templates in child themes breaks layout
- WordPress is not able to change themes
- Investigating complex themes still slow even with WP caching
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- I get the following message The uploaded file could not be moved to /home/reascom/public_html/wp-content/uploads/2012/07 [closed]
- Published site reverts without changes to theme
- Search form not finding content in template page
- display comment form for specific post id
- Selected template is not respected for home page in WordPress
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- Need help with making a website where user can add products
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- What’s a good way to unenqueue all scripts for a single template page?
- Using the same database on another Subdomain
- Trying to fix a website that was built with WordPress and then taken off of it
- FTP + Unable to locate WordPress content directory (wp-content)
- Uploading new version of theme fails, folder already exists
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- Multiple sub directories for theme template pages
- How to remove the tripadvisor logo from the wordpress theme?
- Is there any way to modify images from a theme using the web interface?
- Please help me clear my confusions about WordPress
- WordPress 2022 template, how to see the blocks added in post template on post edit?
- Can I use non-wordpress themes in WordPress?
- WordPress keeps switching back to empty template
- Removing a widget via theme editor
- How do I bring a page template into a new theme with separate styling?
- 12 column grid layout
- Incorrect Theme and Upload URLs After Migration
- Uploaded WordPress theme not finding pages and css
- Theme Dev | Convert Template to Theme
- Theme stops media uploader from working
- Revamping a WordPress mirror site – and I don’t know where to start!
- What is the template file for topic layouts in bbPress?
- Add Media + Quick Edit buttons not working
- Will this js code work in a page template?
- How to find out which template the HTML content comes from?
- Create a child Theme or custom Theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- wordpress template page Usage [duplicate]
- Overwrite template-tags.php in child theme
- What happens to bespoke page template references on theme change?
- How to add sidebar to homepage programmatically?
- Can’t upload the theme
- Every newly created page links to the same deleted page
- Get header/footer list for a theme
- How to clone a theme template from within WordPress? [closed]
- Does WordPress maintain revisions for index.html template?
- what use have double styles in index.html?
- add image size still doesn’t work even after regenerating thumbnails
- Best location for theme translation files
- When does WordPress wrap inline scripts in CDATA?
- Switch to other theme at URL
- Static page not working
- Error defining a gutenberg block in a theme
- Theme, WordPress Version, MySQL Version, PHP Version Update affected files and folders
- Can “Classic Editor” plugin help to replicate the old website / theme development experience from c. 2011?
- How to display footer menus in wordpress
- Debugging in WordPress at Theme installation [duplicate]
- understanding theme hierarchy
- Posts as filtered list – expandable
- How to remove current theme customizations
- Jquery Theme Roller to WordPress
- wordpress-theme 2017: featured image behaviour: where to set the height of the featured image?
- Trying to create a child theme with plugin
- Own Theme custom CSS does not display in editor but works in page
- CSS/JS is not working in multi lang installation
- Error while downloading WordPress themes
- Satoshi WordPress Theme – Portfolio SetUp Issues
- theme 2016 – customize css – nothing happens
- How to make a page extend full screen [closed]
- Should you directly edit Template Parts and Templates from themes?
- Absolute and relative paths
- What is the point of using the front-page.php template? [closed]
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins
- Why won’t local-site theme update on iPadOS Safari?
- Show theme images based on the visitor’s browser
- WordPress How To create Word document from theme and run it on new order created
- How can I add a new Styles option in WordPress 2024 theme?
- Child theme removes the “id=” from main theme
- Problems with the PluginDocumentSettingPanel SlotFill in Gutenberg