Categories
CMS Mastering Development Wordpress

After adding widget the style is messing up

I add a widget area to a wordpress theme but the style is somehow not matching with html here is the image before adding widget after adding widget widget area functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_scripts’,’gt_setup’); //Adding theme support function gt_init(){ add_theme_support( ‘post-thumbnails’ […]

Categories
CMS Mastering Development Wordpress

After adding widget the style is messing up

I add a widget area to a wordpress theme but the style is somehow not matching with html here is the image before adding widget after adding widget widget area functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_scripts’,’gt_setup’); //Adding theme support function gt_init(){ add_theme_support( ‘post-thumbnails’ […]

Categories
CMS Mastering Development Wordpress

After adding widget the style is messing up

I add a widget area to a wordpress theme but the style is somehow not matching with html here is the image before adding widget after adding widget widget area functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_scripts’,’gt_setup’); //Adding theme support function gt_init(){ add_theme_support( ‘post-thumbnails’ […]

Categories
CMS Mastering Development Wordpress

After adding widget the style is messing up

I add a widget area to a wordpress theme but the style is somehow not matching with html here is the image before adding widget after adding widget functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_scripts’,’gt_setup’); //Adding theme support function gt_init(){ add_theme_support( ‘post-thumbnails’ ); add_theme_support(‘title-tag’); […]

Categories
CMS Mastering Development Wordpress

WordPress wp_enqueue_style and wp_enqueue_script not working

I was following a wp theme developement tutorial but somehow my wp_enqueue_style and wp_enqueue_script not working here is my code functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_script’,’gt_setup’); ?> i have added within head in header.php and before body in footer.php here is my style.css […]