Category: Techniques

  • 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].

  • 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”

    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…

  • How To Edit CSS For Block Themes

    If you haven’t already, you’ll soon discover that block themes sometimes leave you needing to make CSS adjustments. A classic example is the title of this very website. You’ll see that the text is white, but it has a black shadow. How was that added? If you enter your domain name followed by /wp-admin/customize.php, in…