Tag Info

Hot answers tagged

1

Have you tried is_front_page()? It should do what you're looking to do. Unless you've set up front-page.php with the Page Template commented header syntax that identifies the file is a Page Template, I don't think you can use the is_page_template() or get_page_template() functions. As for the category page, if you are loading category-foo.php, then aren't ...


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