Tag Info

Hot answers tagged

2

If you mean the WordPress Customizer: These changes are not saved to the style.css, but they come most likely to be found shortly before </head>. Probably you will find there something like <style> //definitions via Customizer </style>


2

It's not showing because the .insertAfter() and .show() functions are called on resize events only, while mobile devices do not resize. They already load the page with their mobile sized. Just make sure you also run the code on the ready event: <script type="text/javascript"> /* to show back the left side bar back when the LEFT side bar is moved ...


2

There is a filter called wp_prepare_themes_for_js in wp-admin/includes/theme.php in the wp_prepare_themes_for_js() function, which is called by wp-admin/themes.php to populate the theme set. That filter will allow you to remove themes from the list. Of course, you have to know the theme name. function kill_theme_wpse_188906($themes) { ...


1

The problem is not there in your @font-face it's actually in the functions.php where you enqueued the stylesheets. What I assume your parent theme is enqueuing stylesheets like below: <link rel='stylesheet' id='bootstrap-css' href='http://example.com/wp-content/themes/parenttheme/bootstrap.min.css' type='text/css' media='all' /> <link ...


1

I try this code and it solve my problem if ( is_child_theme() === false ) { // files moved } else { // do nothing } Thankx to @birgire


1

If you look at how the code works, you should notice that theme mods are saved in the *_options table under theme_mods_{theme_slug} with the theme slug being, as near as I can tell, the directory name containing the theme stylesheet, so: $ptheme = get_template_directory(); $theme_slug = basename($ptheme); $mods = get_option( "theme_mods_$theme_slug"); As ...


1

I am guessing a lot about how your themes work but, the child theme's functions.php runs before the parent theme's functions.php, so anything loaded by the parent's functions isn't going to be present for you to remove. You need to hook your function so that it runs later. add_action('after_setup_theme', 'remove_custom'); Though you would need to mess ...



Only top voted, non community-wiki answers of a minimum length are eligible