Wordpress Config

 ADD these lines after * @link https://wordpress.org/support/article/debugging-in-wordpress/

 */

define( 'WP_DEBUG', true );

define('WP_DEBUG_DISPLAY', false);

define('WP_DEBUG_LOG', true);

define('SCRIPT_DEBUG', true);


@. GOtO tools->wordpress for dummy data

run impoter and download file https://raw.githubusercontent.com/WPTT/theme-unit-test/master/themeunittestdata.wordpress.xml

 

create asstes/css in chlid theme

 <?php

function wporg_css_body_class( $classes ) {

    //if ( ! is_admin() ) {

        $classes[] = 'wporg-is-awesome';

    //}

    return $classes;

}

//add_filter( 'body_class', 'wporg_css_body_class',10,1 );

in function,php

add_action('wp_enqueue_scripts', 'understrap_remove_parent_styles', 11);

function understrap_remove_parent_styles(){

wp_dequeue_style( 'understrap-styles');

wp_deregister_style( 'understrap-styles');

wp_enqueue_style( 'understrap-child', get_stylesheet_directory_uri().'/assets/css/bootstrap.min.css');

}

Comments

Popular posts from this blog

Making Livewire Run on SHared Hosting