If you’re using a site with a CMS, you probably already have a default favicon that you’ll want to change. To do this, you need to search for the favicon.ico line in the source code, and you will see in which folder the current favicon is loaded. The easiest method …
Read More »How to display a shortcode in a WordPress theme
Shortcodes make our life a lot easier, they are often generated by plugins and all we have to do is display the shortcode in the WordPress theme. Use code like this: <?php echo do_shortcode( '[shortcode]' );?> Where instead of shortcode write your shortcode name, and do not forget about the …
Read More »How to get value from ACF plugin field
The ACF plugin is needed to create and display additional fields for articles. For example, we need to add the color field to articles and display it in the template. The procedure is standard: go to Plugins – Add new – search for ACF (Advanced Custom Fields), install and activate. …
Read More »Shadow around an image or block
Perhaps in this article there will be different options for the shadow with examples. But for now, I’m posting the most used option for me: box-shadow: 0 0 10px rgba(0,0,0,0.5);
Read More »If the link contains the word
The case: If a word occurs in the URL, then you need to display some text. For example, if the URL contains “hahaha”, then on the page you need to display the text “description of the text hahaha”. PHP solution: <?php if(strpos($_SERVER['REQUEST_URI'], 'hahaha') !== false){ echo "description of the text …
Read More »How to display Breadcrumb NavXT in WordPress theme
In this article, I do not want to describe the detailed process of installing the Breadcrumb NavXT plugin, but if someone really needs it: Go to the WordPress panel in the Plugins section – Add New. Search for Breadcrumb NavXT, install and activate it. This plugin will not be automatically …
Read More »How to take a screenshot on a Macbook
Most often, I use the Screenfly Chrome extension for screenshots if I need to save a screenshot of the page locally, or the Joxy extension if I need to send a screenshot to someone. But sometimes I have to take screenshots using the Macbook itself, and I persistently forget the …
Read More »How to find all screenshots on your Macbook
By default, on a Mac, screenshots taken with Shift Command 4 are saved to the desktop. Very often they are renamed there, very often copied to other folders and renamed. The Mac has a great way to find all the screenshots ever taken on that computer. Open Finder, In the …
Read More »Rounded Rectangle Tool not showing in Adobe Illustrator 2019
In the video tutorials the teachers say – now click on the “Rectangle tool” button and select the “Rounded Rectangle Tool”. You pause the lesson, go back to your Adobe Illustrator interface and click on this button, and the “Rounded Rectangle Tool” is not visible. You return to the video …
Read More »“Parse error functions.php on line 1064” when installing WordPress
The error that occurred when installing a fresh version of WordPress on a new hosting: Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /wp-includes/functions.php on line 1064 The solution turned out to be extremely simple: the PHP 5.4 version was activated on the hosting, when the …
Read More »