stylesheet in header or functions?

wp_enqueue_style has a 5th parameter that represents the media attribute. https://developer.wordpress.org/reference/functions/wp_enqueue_style/ You could do the following to load this correctly: wp_enqueue_style( ‘stylecss’, get_stylesheet_uri(), array(), false, ‘screen’ ); Hope it helps!

Set 3 iframes in a row

The problem is that you are using the_excerpt(). This function prints out the excerpt immediately, it doesn’t return a string. From the core: /** * Display the post excerpt. * * @since 0.71 */ function the_excerpt() { /** * Filters the displayed post excerpt. * * @since 0.71 * * @see get_the_excerpt() * * @param … Read more

Odd / Even posts add class minus first post

You can do this in multiple ways, but you will need something commom to all posts, exemple: <div class=”post”></div> <div class=”post”></div> <div class=”post”></div> <div class=”post”></div> <div class=”post”></div> then in your css: .post:not(:first-child) { // add the rules of the class you wanted to add } Just select all elements except the first-child of posts with … Read more

Edit External CSS

You have alot of mixed content warnings, be sure to change your scripts and images to call https. For example if you can find the reference the following URL in your theme http://api-idx.diversesolutions.com/Styles/Libraries/juicebox/theme.css Replace it with: https://api-idx.diversesolutions.com/Styles/Libraries/juicebox/theme.css which will work because the provider has a valid SSL certificate. But I would highly recommend physically searching … Read more

height should be set to auto to avoid pixelation in the post thumbnail function

You can use a filter to remove height and width attributes from images, as explained in this CSS Tricks. Place the following in your themes functions.php file. add_filter( ‘post_thumbnail_html’, ‘remove_width_attribute’, 10 ); add_filter( ‘image_send_to_editor’, ‘remove_width_attribute’, 10 ); function remove_width_attribute( $html ) { $html = preg_replace( ‘/(width|height)=”\d*”\s/’, “”, $html ); return $html; }

Child theme stylesheet not always overriding “index”

wp_enqueue_style( $parent_style, get_stylesheet_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ), wp_get_theme()->get(‘Version’) ); Look closer, specifically at the URLs you passed to enqueue style: parent: get_stylesheet_directory_uri() . ‘/style.css’ child: get_stylesheet_directory_uri() . ‘/style.css’ They’re identical, they’re the same file, that’s the problem. Your child themes stylesheet isn’t overriding the parent, because the parent … Read more

How to Style Primary Menu with Active Class

It looks like you might be confusing the :active CSS pseudo class and an actual .active class. The pseudo class represents an element that is being activated by the user. It is not the active page. If you want to use the active class on the current page, you can use the nav_menu_css_class filter to … Read more