Long post titles don’t move to next line

The issue is due to addition of following line in your child theme. There should be some line height to show header properly. .entry-header .entry-title { font-size: 1.6000rem; /* was 1.42857rem; */ font-weight: normal; line-height: 0; /* changed from 1.2 */ }

Custom css author role

If a user is not logged in then admin_head probably won’t run. So let’s just check their capabilities. function my_custom_admin_head() { if ( ! current_user_can( ‘have-fun’ )) : ?><style> #welcome-panel{display: none !important;} #wp-content-editor-tools{display: none !important;} </style> <?php endif; // cant’ have-fun } add_action( ‘admin_head’, ‘my_custom_admin_head’ );

After I change CSS not updating in the browser

If you add a version number in the wp_enqueue_script() call – fourth argument – it will append a query string to the css file reference and most (if not all) browsers will see that as a cache-breaker and force the asset to be requested again from the server. https://developer.wordpress.org/reference/functions/wp_enqueue_script/ If you are hard-coding the script … Read more

Use Google Fonts and unicodes

It works for me. Try setting the font-family within that block as well. .cta:after{ content: “\2192”; color: #fff; font-weight: lighter; font-family: ‘Alegreya’, serif; }

Apply custom css for user role

To enqueue CSS in WordPress you can use: wp_enqueue_scripts action for the frontend login_scripts action for the login page admin_scriptsaction for the admin side, as you already know To check user’s roles you should get the user object and check the roles property. current_user_can() is function intended to check capabilities, not roles. So, to add … Read more