How to Take Ownership of a Theme

The alternative to using a child theme is to make two adjustments to the current theme although technically only one is actually required. Update the theme name in the theme’s style.css file in the commented section at the top, sometimes referred to as the theme’s headers. Rename the theme’s main folder, ie. wp-content/themes/THIS-THEME-NAME #1 is … Read more

Infinite Scroll not working in own theme

You need either a content.php or content-<post format>.php OR use a render: add_theme_support( ‘infinite-scroll’, array( ‘container’ => ‘content’, ‘footer’ => false, ‘render’ => ‘render_function’, ‘wrapper’ => false ) ); function render_function() { get_template_part(‘loop’); } This implies you have a loop.php.

New template, where to place CSS?

Include CSS and JavaScipt in the functions.php. Create an empty PHP file, call it header.php, and yes wp_head() goes just before </head> not before <body> tag. <!DOCTYPE html> <html> <head> <title>Website</title> <link href=”https://wordpress.stackexchange.com/questions/222452/style.css” rel=”stylesheet” type=”text/css” /> <?php wp_head(); ?> </head> Create an empty PHP file, call it footer.php and place your footer there: <footer> <!– … Read more

Where is definied the theme location for the main menu in a WordPress template?

Menu locations are defined in functions.php You can read the codex for more information on how to define menu locations in functions.php Register Menus Firstly, in your theme’s functions.php, you need to write a function to register the names of your menus. (This is how they will appear in the Appearance -> Menus admin screen.) … Read more