wordpress doesnt add media.css file

/css/media.min.css?ver=4.8.1 is not indicative of a “min version”. The filename of this CSS file is LITERALLY: ‘media.min.css’. (Additionally the file is versioned with the ver parameter set to 4.8.1). So atetmpting to enqueue: wp_enqueue_style(‘media’, get_template_directory_uri().’/css/media.css’); Will certainly fail, and should in fact be: wp_enqueue_style(‘media’, get_template_directory_uri().’/css/media.min.css’);

CSS in child theme isn’t working properly

You’ll have to enter that code at the start of the functions.php file in your child theme to include the parent theme’s style.css file <?php add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ ); function my_theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); } visit this page for more information

user update profile for custom code

I can see $topselected= get_the_author_meta( ‘user_top’, $user->ID ); , here you are using “user_top” as the meta_key but while updating you are using “user_chapter” update_usermeta( $user_id, ‘user_chapters’, $_POST[‘user_chapters’] ); Whatever name you are providing in <select name=”user_top” id=”user_top”>, should be used in $_POST[”] So here you are using “user_top” as your select name, so it … Read more

How to customize the size of Featured Images or Post Thumbnails in WordPress?

Try This the_post_thumbnail(); // Without parameter ->; Thumbnail the_post_thumbnail( ‘thumbnail’ ); // Thumbnail (default 150px x 150px max) the_post_thumbnail( ‘medium’ ); // Medium resolution (default 300px x 300px max) the_post_thumbnail( ‘medium_large’ ); // Medium-large resolution (default 768px x no height limit max) the_post_thumbnail( ‘large’ ); // Large resolution (default 1024px x 1024px max) the_post_thumbnail( ‘full’ … Read more

Active Current Menu – Adding class to child theme

The default menu in WordPress already adds classnames for the current menu item, and if its a submenu, the parent will have a classname too as current-parent: li.current-menu-item{ //here your CSS for the current menu item } li.current_page_parent{ //here your CSS for parent menu item of the current menu item }