Override theme style rule in Gutenberg

.entry-content a:hover is more specific than .wp-block-button__link:hover. According to the rules of specificity, the first selector contains 2 class selectors (.entry-content and :hover), and 1 type selector (a), for a specificity score of 0,0,2,1. The second selector, on the other hand, contains 2 class selectors (.wp-block-button__link and :hover), and no type selectors, for a score … Read more

Append style tag in head while shortcode runs

I also get this script tag shown in my shortcode output alongside my html that shortcode returns. How can I not have this script tag shown in my shortcode output. Never use echo statement in a shortcode. A shortcode should only return something to display on front-end. As per WordPress Codex : Note that the … Read more

Navigation menu not visible (contrast issue) on home page

If you inspect the element, you’ll see that header has a different background color than other pages which is transparent. Your nav elements color is also white and that is why you can’t see the menus on home page but actually the menu is there. Just change the header background color to #000 as you … Read more

Add styles to wordpress admin on the Page List

If you want to go with PHP solution, then the post_class filter hook (codex) would allow you to do that – see the example below. You can paste that to your functions.php. Just be aware that hiding the post from posts list doesn’t make it restricted from access, users can still use the post’s edit … Read more

Changing navigation strip color with CSS

In file named style.css on line 1235 .mobile-navbar { height: 44px; background-color: red; } and on line 3824 .header-bottom { position: relative; height: 50px; background-color: red; }