I want to change my post titles from h2 to H1

IT’s best to change the template used, rather than overwriting CSS. Make a Child Theme, then copy the single.php into your Child Theme folder. Modify the copied single.php to change the H1 tag to H2. Using a Child Theme ensures that your customizations aren’t overwritten with a theme update.

Change post featured image on hover

You can add a custom field to you team page, call it “second_picture”, or whatever you want, and add the code <div class=”box”> <div class=”rounded-circle” style=”background-image:url(‘<?php the_post_thumbnail_url(‘full’); ?>’)” id=”staff-pic”> <div class=”second-picture” style=”background-image:url(<?php the_field(‘second_picture’); ?>)”></div> </div> <h3 class=”team-name”><?php the_title(); ?></h3> <p class=”description text-center”><?php echo get_the_content(); ?></p> <div class=”social”><a href=”#”><i class=”fab fa-facebook”></i></a><a href=”#”><i class=”fab fa-twitter”></i></a><a href=”#”><i class=”fab … Read more

Can “ and “ tags be used in the HTML editor?

Mostly no, but you shouldn’t do that anyway. The exception, is if your user has the unfiltered_html capability, which is a dangerous power to have. Users that have this are admins on a single site install, or a super admin on a multisite install. But, there are major security downside to putting script and style … Read more

Dequeue a style file which is making website load slow!

function wp_dequeue_kirki_style() { wp_dequeue_style(‘kirki-styles’); } add_action(‘wp_enqueue_scripts’, ‘wp_dequeue_kirki_style’); Please make sure that you have handler name kirki-styles in the parent theme for the css file that you want to remove. Because wp_dequeue_style function used handler as parameter. You can check documentaion of dequeue function here => https://developer.wordpress.org/reference/functions/wp_dequeue_style/

If post by specific role different css to everyone

You can update the post classes depending on user role to include an additional selector which add your custom styling i.e function add_contributor_class_to_single_post( $classes ) { if ( is_single() ) { $post_id = get_queried_object_id(); $author_ID = get_post_field( ‘post_author’, $post_id ); $author_data = get_userdata( $author_ID ); if (in_array( ‘contributor’, $author_data->roles)) { // add post class array_push( … Read more

Customizing wordpress to match your site theme

Install wordpress. Get the style.css file from the default theme (at /wp-content/themes/twentyten/style.css). Open that file, you will see it is very well structured and commented. With just a few copy/paste from your current site’s css to this file you will start to see the changes. If after playing with the CSS you feel the need … Read more