Please enable JavaScript.
Coggle requires JavaScript to display documents.
HTML tp WP Theme, Enqueue scripts and styles in funcrions.php, To connect…
HTML tp WP Theme
Enqueue scripts and styles in funcrions.php
CSS
Create /assets/css, js and transfer own files
Clean up standart css
Download clean theme from
underscores.me
wp_enqueue_style('name-main-style', get_template_directory_uri() . '/assets/css/style.css');
wp_enqueue_script( 'name-main', get_template_directory_uri() . '/assets/js/main.js', array(), 1.0, true ); // True for loading in footer, false - header
header.php
Connect menu with wp_nav_menu (standart in temp file)
Paste <header> from HTML
move all code afetr <body <?php body_class(); ?>> to new temp file
Install
Redux Framework
plugin for theme options
Plugins -> redux-framework -> sample -> sample-config.php
move this file to INC folder in your theme
Connect redux in functions.php
require get_template_directory() . '/inc/options-panel.php';
Enque global for Redux <?php global $redux_demo;?> in header.php
<?php echo $redux_demo['phone']; ?>
archive.php
index.php for archive. template-parts/content.php for each article in archive
Remove get_sidebar() from archive
Page templates
Create file home-page.php
To connect images use <?php echo get_template_directory_uri(); ?> before img path