Looking at theme-editor.php
code it calls get_themes()
(fills global $wp_themes
variable with themes, including full lists of theme files) and then simply picks first file out of files from current theme.
It jumps to CSS because PHP and CSS files are stored separately and when arrays merge CSS comes on top.
So you can just rename your file so it isn’t first in list.
More complex way would be to hook and run get_themes()
earlier and then manually rearrange files in $wp_themes
. I am not good with admin area, have trouble finding fitting hook to run it conditionally on editor page alone.
Related Posts:
- pass object/JSON to wp_localize_script
- What difference does it make if I use index.php as HTML wireframe versus writing each main template file as a full HTML document?
- What filters are applied to the_content function?
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- Where to post/upload the new theme for WordPress theme repository
- Is it possible to manipulate the list of page templates?
- redirect does not work in ajax function
- default favicon for a theme?
- Add a notice to users upon first login to the admin area
- get_template_directory_uri() and other URL tags not working in theme
- Can you filter posts by meta key with the getEntitityRecords selector?
- Context aware widgets. My work in progress
- How to determine which sidebar the widget has been added to, via widget admin?
- Plugging into the Media Library to upload images (NOT associated with any post)
- Help with “text domain”, comments_form in WordPress theme
- Remove “a href” from wp_list_comments()
- Get list of months with posts
- Using the theme options to change background
- How to list all images in uploads directory except those that are attached to any post
- Advanced theme training?
- Getting the wrong page ID
- Unhook action from child theme
- Does any theme support child theme?
- How do I save a wordpress theme’s files and install them on another site?
- Custom WordPress install – activate custom theme
- Media Uploader in custom path
- How to remove the header from all pages except home?
- Using AJAX in wordpress theme
- moving an admin submenu item to a top-level position
- Attach media to multiple posts
- show a post from a specific post format
- Is there any WordPress theme for Self Storagae just like Spacer [closed]
- Customizer: save setting/control content to post/page
- Underscore Based Theme File Permissions in Git
- How do I include pre-installed images in a theme?
- Wp_customize_image_control Use Add Media
- Trackbacks not displaying
- Widget Option is Missing
- Post Content Displaying Below ALL Shortcodes Content
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Register sidebar ‘before’ and ‘after’ html as div rather than li tags
- WordPress Template Part in iFrame
- Is it possible to have a theme that uses only one single page?
- JQuery undefined and Stylesheet loads in bottom along with js files
- Why tags are displayed bellow the content and not inside
- What’s the best way to create a new design for other pages?
- Consequences if using PHP include TEMPLATEPATH?
- Adding a gallery to my first theme
- Headless WordPress + Vue.js on the same server
- How do I conditionally defer scripts based on the page name?
- How to place POST TITLE any location inside the posts page
- not getting API setting saved confirmation message after update on option page
- Do I need to re-import Susy to work with it in a child theme? [closed]
- Valid SQL query not returning results
- WP_Query not getting all posts, just tagged posts
- how to hide home nav link in wordpress
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- Understrap-child conditional js script
- Why excerpt hook not working inside ajax function?
- Help with Core Mods
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- How to handle theme activation errors?
- Local variable name in setup_postdata()
- change background image on scroll
- Child theme menu not appearing in Twenty Seventeen
- Using wp_add_inline_style Inside a Template File
- how to edit woocommerce checkout page
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- Display current taxonomy slug in a post
- How to create multiple customizer controls in one control
- Setting a fluid content width
- How can I display and excerpt of all pages with a meta_key and meta_value on index.php?
- get_the_excerpt() removes all p tags in page!
- How to migrate the menu from the site on my own theme in WordPress?
- Why is including all your files within a theme folder important?
- Change default options on attachment page
- Pagination issue with Single.php
- Make theme editor to show all theme’s files
- Import/Export WordPress demo
- How customizable is a self-hosted WordPress blog compared to a Blogger blog?
- Why we do need wp_enqueue_script() function?
- Is it possible to use “wordpress.org Theme Handbook” look&feel as a theme in my own site? [closed]
- getting id of page
- How to make a sticky footer?
- Is it ok if I use this tag?
- What’s your workflow for converting a static HTML website to WordPress? [closed]
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- Dynamic nav menu with icons [closed]
- WordPress administration is gone after creating base theme
- Is there any filter or action hook to remove layout classes from appearing in my templates?
- TItle In Latest Post is not using H1 Tag [closed]
- Is via.placeholder.com a good site to auto-generate placeholder images?
- Should we escape the values of constants?
- When trying to run build script with gutenberg (with SVG import) – Error: Plugin name should be specified
- I am using update_option function to update theme options programatically but page needs to be refreshed many time for changes to reflect!
- Block to show posts from same category
- How can I enforce user to use Application password to generate JWT token? [closed]