How to enqueue stylesheets in child-theme functions.php?
get_template_directory_uri always refers to the parent theme. get_stylesheet_directory_uri refers to the currently active theme, which in this case is the child theme.
get_template_directory_uri always refers to the parent theme. get_stylesheet_directory_uri refers to the currently active theme, which in this case is the child theme.
Try this: function enqueue_child_theme_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_uri() . ‘?v=’ . filemtime( get_stylesheet_directory() . ‘/style.css’ ) ); }
Put this function to ‘functions.php’ in theme directory to remove style.css while wordpress loading your styles. add_action(‘wp_enqueue_scripts’, function() { wp_dequeue_style(‘put-your-sytle-css-handle-name’); });
Can’t find a tag to style
It sounds like you need the main body of the page to always fill the height of the viewport even when the content is shorter. Find out the height of the header first so you can calculate the remaining height of the viewport. .site-content { min-height: calc(100vh – [insert header height here] ); }
Navbar bg to overflow to section below (updated)
astra theme costum css not working in wordpress 5.6
Maybe you can use CSS to make more space between the image and the title, with a margin to the image and also overflow: hidden to the image.
broken internal JavaScript and CSS files
Save custom option in CSS file