-
PHP In Your Posts and Pages
With the addition of the free “Insert PHP Code Snippet” plugin by xyzscripts.com, you can put this code in your functions.php file, then you can add php code directly into Text widgets. This will work with classic themes and block themes such as Twenty Twenty-Two. To insert PHP, select XYZ PHP Code (which is not…
-
PHP In Your Widgets, Classic
In classic WordPress themes, you can put this code in your functions.php file, then you can add php code directly into Text widgets. function php_in_widgets($html){ if(strpos($html,”<“.”?php”)!==false){ ob_start(); eval(“?”.”>”.$html); $html=ob_get_contents(); ob_end_clean(); } return $html; } add_filter(‘widget_text’,’php_in_widgets’,100); For example: Note that you’ll want to be sure to use the [Text] tab, not [Visual].
-
How to Get Rid of the Storefront Purple Box
In the Storefront theme, you’ll see a purple box momentarily displayed when menu items and some other elements are selected. To remove the box, use this CSS code: a:focus, button:focus, .button.alt:focus, input:focus, textarea:focus, input[type=”button”]:focus, input[type=”reset”]:focus, input[type=”submit”]:focus, input[type=”email”]:focus, input[type=”tel”]:focus, input[type=”url”]:focus, input[type=”password”]:focus, input[type=”search”]:focus { outline-color: transparent;}
-
Round Images
Image blocks have an ability display round images. It’s a big, easily identified setting, but most people don’t use it most of the time. Of course overuse of round images would be too much of a good thing. Combining rounded images with ‘float’ also known as ‘align left’ or ‘align right’ can have a very…
-
How To Make a “Fancy Image”
Which do you like better? Or If you liked the first one, you’re all set. If you like the ‘snapshot’ style, then you’ll find it is very easy to implement in classic WordPress. You can add these lines to a CSS file: .fancyimg { border-radius:15px; box-shadow:8px 8px 8px silver; } Then you can add the…