To answer your questions:
the wp-config.php is wordpress setting file. how to alter my custom theme?
you don’t need to alter your theme, its simply telling you to turn debug to true within wp-config.php and review your theme, to see if it creating any warnings or errors.
put this line define('WP_DEBUG', true);
in your wp-config.php and play around with your site, see if you get any warnings or errors and correct them.
the following is my themes warmHome_setup() function. how to alter it? many thanks.
simply add add_action('after_setup_theme','warmHome_setup');
to your functions.php file
For example:
function warmHome_setup() {
// all your setup functionality goes here
}
add_action( 'after_setup_theme', 'warmHome_setup');
Related Posts:
- Theme Review: post thumbnail, header image, content width
- what’s meaning of it when submit a theme?
- Where to post/upload the new theme for WordPress theme repository
- Can I upload WordPress-react theme in Wp theme repository
- How to escape html generate by a loop
- Do I need to include a textdomain if my theme doesn’t support translation?
- Is it possible to use “wordpress.org Theme Handbook” look&feel as a theme in my own site? [closed]
- Remove nonindex meta tag
- Why is wp_head() creating a top margin at the top of my theme header?
- How To Add New Option Types To Option Tree?
- How to limit wordpress menu depth in admin panel
- How can I set image sizes and still have responsive images using the srcset attribute?
- Possible to “Attach” images to multiple posts without inserting or uploading twice?
- Trigger Customizer saving process with Javascript only
- Remove settings if theme is deleted?
- Adding customizer styles with wp_add_inline_style
- How to add menu support to a theme?
- Adding widgets programatically: how to avoid collisions?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Efficient WordPress Development Workflow Help?
- Replace #site-title with resizable image in Twenty Twelve? [closed]
- Installing WordPress Theme Unit Data
- How can I remove the Static Front Page option from the Customizer
- Settings API enable default settings on theme install?
- Fatal error: Maximum execution time of 60 seconds exceeded in H:\wamp\www\custom\wp-includes\class-wp-http-curl.php
- How to allow admins to create a sidebar from the admin
- Change date number to another language/script?
- Setting a Default ‘Theme Location’ When Creating a Menu
- How to keep my custom theme changes after updating genesis child theme
- Custom php page in WordPress theme?
- Check if password protected post is visible
- Second menu not showing
- Custom Template for more than 1 Tag
- Same theme name issue with wordpress repository theme
- Compact pingback list with favicons
- Show video as part of the post?
- How to add theme support?
- Parse error: syntax error, unexpected T_ENDWHILE in
- Multiple Page Templates & CSS
- Divi Child Theme not appearing in “Themes” [closed]
- I need to know how to structure my WordPress theme
- Featured Images are not able to be set
- Where can i design and modify a new mail template for sending emails to users when commenting?
- Single-level menu option? Another way?
- Limitations when modifying wp_title with a filter
- Pass variable to hook. Its possible?
- Font Awesome 5 Free – far working but fas is not? [closed]
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- How to remove header image in Twenty Eleven theme?
- How to create a fixed header and scrolling content area
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- Have the homepage look different to index.php without a static page
- is_home and is_frontpage always true
- WordPress linking
- wp.media issue with selected image
- Why does admin-ajax load slow and what are ways to speed it up?
- How to style bootstrap container in wordpress theme?
- Wamp Server error on running wordpress theme on localhost. How do I fix this error? [closed]
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- What are the allowable Tags values in a theme file header?
- $_POSTing to and modifying the WP search results page
- Confused by the behaviour of “front page” / “home” templates
- Following/tracing page construction through theme PHP
- How to Grab first Image from some Chosen Categories
- Get themes’s images path in WordPress Multisite
- Get video from the post on homepage
- altering search terms
- Creating a theme update notification api [duplicate]
- Custom menu: Link names
- Inconsistent bloginfo information
- get_the_terms() returning wrong results inside of loop
- Category-specific loop not working
- get_avatar() is not working in my custom theme
- How to diagnose wp-env environment problem
- When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!
- Updatable theme developing
- SIte logo is not displaying
- makeing a terms of use page that is part of the theme
- How to make menus, footer, sidebars multi language
- Unable to delete option
- overlay post title over post’s featured image
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- Hook in parent theme Menu function
- How to add custom nav_menu_css_class to certain menu only?
- How to avoid Ajax in wordpress theme in making mulitple request?
- Import from HubSpot COS into WordPress 4?
- WordPress 3.5 + Foundation 5 not working on IE9
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Simple loop with shortcode rendering problem
- Want to include ad code after related post
- Conditional tags issue for multiple is_page() conditions in sidebar.php
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- Allowed memory size of (…) exhausted
- Twenty sixteen – full height
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- What is the point of using the front-page.php template? [closed]