why won’t my custom css load with the enqueue method or any other method?
why won’t my custom css load with the enqueue method or any other method?
why won’t my custom css load with the enqueue method or any other method?
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.
well, I went for a different approach, in this case with radiobuttons. It is working and it is 95% the result desired. <?php $cats = array(array(‘first’, ‘sub-first’, ‘sub-sub-first’), array(‘second’, ‘sub-second’), array(‘third’, ‘sub-third’, ‘sub-sub-third’)); ?> <label>Categorias</label> <?php foreach($cats as $cat): if (isset($cat[0])): ?> <div class=”div1″> <input type=”radio” id=”<?php echo $cat[0] ?>” name=”age” value=”30″> <label for=”<?php echo … Read more
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’); });
Using php code inside style tag
Style WooCommerce Product Search Widget
Hide the default page title in the template and use a Gutenberg heading block instead. It should have a color control in the sidebar. .page .entry-header { display: none; }
In the code snippet you posted, it appears that your site’s title will be wrapped in an <h1> tag on the home page (that’s what the if ( is_front_page() && is_home() ) code is checking for), and in a <p> tag in all other cases (eg, a single blog post’s view).
Can’t find a tag to style